Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am RyanS on github.
  • I am musicmanryan (https://keybase.io/musicmanryan) on keybase.
  • I have a public key whose fingerprint is 8345 306C 8EB6 D35C A7D8 23A1 A209 2340 2208 2D9C

To claim this, I am signing this object:

View keybase.md

Keybase proof

I hereby claim:

  • I am ryans on github.
  • I am musicmanryan (https://keybase.io/musicmanryan) on keybase.
  • I have a public key ASBqvCx3Pmz4psrOnFofoJJajYjXR7j3u8_6ddZMjErlcQo

To claim this, I am signing this object:

@RyanS
RyanS / gist:6065777
Created Jul 23, 2013
jshint pre-commit hook
View gist:6065777
#!/bin/bash
# Pre-commit Git hook to run JSHint on JavaScript files.
#
# If you absolutely must commit without testing,
# use: git commit --no-verify
filenames=($(git diff --cached --name-only HEAD))
which jshint &> /dev/null
if [ $? -ne 0 ];
View gist:1371201
var script = document.createElement('script');
script.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js";
document.body.appendChild(script);
script.addEventListener('load', function (e) {
console.log(jQuery);
});
View closure_test.js
var Admonitor = Admonitor || {};
/**
* @constructor
*/
Admonitor = function(options) {
this.time1 = (new Date()).getTime();
var adFeedbackLinkContainers = this.getAdmonitorDivs();