This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import createAudioContext from 'ios-safe-audio-context'; | |
export async function createAudioContextContainer() { | |
// createAudioContext (this could be some other implementation/polyfill, | |
// so long as it returns an audioContext): | |
const audioContext = createAudioContext(); | |
const audioSources = []; | |
const analyserNode = audioContext.createAnalyser(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Color = require('color') | |
var Isomer = require('isomer') | |
var Simplex = require('perlin-simplex') | |
var Point = Isomer.Point | |
var Shape = Isomer.Shape | |
var simplex = new Simplex() | |
var baseColor = Color('#0096B0') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Webpack's poorly-documented EnvironmentPlugin | |
// | |
// Read more here: https://github.com/webpack/webpack/blob/master/lib/EnvironmentPlugin.js | |
var webpack = require('webpack'); | |
module.exports = { | |
plugins: [ | |
new webpack.EnvironmentPlugin([ | |
'NODE_ENV' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# git-grep configuration – `man git-grep | cat && open https://git-scm.com/docs/git-grep` | |
## turn off pager; print results directly to stdout instead: | |
git config --global pager.grep false | |
## enable line numbers by default: | |
git config --global grep.lineNumber true | |
## you can't set --ignore-case in git config. | |
## so instead, add the `-i` flag (short for`--ignore-case`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Run A Web Server Here Via <pre style="display: inline-block; background-color: #ddd; padding: 0.5em; border-radius: 5px;">python -m SimpleHTTPServer 9999</pre><h1> | |
Outer Frame. Hello! | |
<br/> | |
<iframe id="our-frame" style="width: 100%;"></iframe> | |
<script src="script.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --- constrain to larger if no other users --- | |
set -g aggressive-resize on | |
# --- faster repeats --- | |
set-option -g repeat-time 0 | |
# --- unset rbenv_version: --- | |
set-environment -gu RBENV_VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:nnoremap <F6> :%s/™\|®//gc<CR> |