Skip to content

Instantly share code, notes, and snippets.

View rooftopsparrow's full-sized avatar

Jonathan Nicholson rooftopsparrow

  • Denver, CO
  • 08:07 (UTC -06:00)
View GitHub Profile
@rooftopsparrow
rooftopsparrow / keybase.md
Created April 3, 2018 04:32
Keybase identity proof

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@rooftopsparrow
rooftopsparrow / 0_reuse_code.js
Created November 30, 2016 07:02
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@rooftopsparrow
rooftopsparrow / README.md
Last active September 10, 2015 02:29
Testing of installing gists via npm

gist-test

Usage

npm install gist:rooftopsparrow/bafc056df885c4c2fbf0
node -e "require('gist-test')"
# hello from gist
@rooftopsparrow
rooftopsparrow / setup.sh
Last active January 2, 2016 15:29
OSX EMFILE issue with gulp
# After finished just run `gulp`
mkdir gulptest && cd gulptest
mkdir js
cat <<EOF > js/test.js
function foo() {
console.log("bar");
}
EOF
for n in {001..242}; do
cp js/test.js js/test-$n.js
@rooftopsparrow
rooftopsparrow / test.js
Created August 14, 2013 14:40
Test for multi write problem
var nosqlite = require('nosqlite');
connection = new nosqlite.Connection();
db = connection.database('test');
if(!db.existsSync()){
db.createSync();
}
@rooftopsparrow
rooftopsparrow / gist:2956428
Created June 19, 2012 20:42
Telling TextMate to ignore <script type="text/template"> tags as javascript and instead highlight as html.

TextMate by default will highlight anything in a <script> tag as javascript. But for Backbone.js and other javascript MVC frameworks, the script tag is used as a template container. So this will remove javascript highlighting and use html highlighting instead for any <script type="text/template"> tag.

Replace this line in the Bundle Editor for HTML language:

begin = '(?:^\s+)?(<)((?i:script))\b(?![^>]*/>)';

with this line: