This file contains hidden or 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
// Overwrite key bindings by placing them into your key bindings file. | |
[ | |
{ | |
"key": "escape escape", | |
"command": "workbench.action.exitZenMode", | |
"when": "inZenMode" | |
}, | |
{ | |
"key": "shift+escape", | |
"command": "closeReferenceSearchEditor", |
This file contains hidden or 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
-- eval the functions below first, then you can do this: | |
midiInstrument $ (|+| note "45") $ mel m9 5 "0*8" | |
-- above, plays the first 5 notes of a m9 arpeggio, over a pattern of eighth notes, | |
-- starting at MIDI note #45 | |
-- the "mel" function below relies on a "scramble" function which I don't | |
-- really like. I'm not good enough at haskell to know to how pick | |
-- random values out of the scale/arpeggio. |
This file contains hidden or 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
/* | |
Tidal <-> Arduino | |
send rhythmic patterns to custom hardware | |
assumes three leds connected to Arduino on Digital Pins: | |
13 red | |
12 yellow | |
11 green |
This file contains hidden or 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
/* Catmull-Rom interpolating splines in ES6 | |
---- | |
authors: Nicholas Kyriakides (2017) & Unknown | |
from: "A class of local interpolating splines" | |
Catmull, Edwin; Rom, Raphael | University of Utah, 1974 | |
Barnhill, Robert E.; Riesenfeld, Richard F. (eds.). | |
Computer Aided Geometric Design. | |
@summary |
#!/usr/bin/env bash
# Assuming OS X Yosemite 10.10.4
# Install XCode and command line tools
# See https://itunes.apple.com/us/app/xcode/id497799835?mt=12#
# See https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcode-select.1.html
xcode-select --install
This file contains hidden or 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
{ | |
"env": { | |
"browser": true, | |
"node": true, | |
"es6": true | |
}, | |
"plugins": ["react"], | |
"ecmaFeatures": { |
While this gist has been shared and followed for years, I regret not giving more background. It was originally a gist for the engineering org I was in, not a "general suggestion" for any React app.
Typically I avoid folders altogether. Heck, I even avoid new files. If I can build an app with one 2000 line file I will. New files and folders are a pain.
This file contains hidden or 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
function makeStyle(defaults, tagName) { | |
tagName = tagName || 'div'; | |
var Style = React.createClass({ | |
getDefaultProps: function() { | |
return assign({}, defaults); | |
}, | |
render: function() { | |
var style = assign({}, this.props); | |
delete style.children; |
NewerOlder