Skip to content

Instantly share code, notes, and snippets.

Adam Spooner adamjspooner

Block or report user

Report or block adamjspooner

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am adamjspooner on github.
  • I am spojo3 (https://keybase.io/spojo3) on keybase.
  • I have a public key ASAy0Jr4qKuNDqt7XSVaq2HyfN0kUgjuomC5PoMH6HUO3Ao

To claim this, I am signing this object:

@adamjspooner
adamjspooner / 0_reuse_code.js
Created Jun 9, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View keybase.md

Keybase proof

I hereby claim:

  • I am adamjspooner on github.
  • I am adamjspooner (https://keybase.io/adamjspooner) on keybase.
  • I have a public key whose fingerprint is 9E60 7BFF 4501 A04B 9A22 2977 6359 9586 14FB 86FC

To claim this, I am signing this object:

View gist:3438869
var my_array = [];
if (my_array instanceof Array) {
console.log('Congrats, you have an array!');
}
@adamjspooner
adamjspooner / gist:1665152
Created Jan 23, 2012
Duck punching JavaScript's Number for toString() typos.
View gist:1665152
Number.prototype.yoString = function() {
return 'Yo, ' + this + '!';
};
var num = 3;
console.log(num.yoString());
@adamjspooner
adamjspooner / gist:1370040
Created Nov 16, 2011
Casting an NSString to an int
View gist:1370040
NSString *string = [[NSString alloc] initWithString:@"Ladies Love Cool James"];
NSLog(@"%@", string);
NSLog(@"%d", (int)string); // the string's value
NSLog(@"%d", (int)&string); // the string's pointer
View Rakefile
require 'rake/clean'
STYLUS = FileList['./**/*.styl']
COFFEE = FileList['./**/*.coffee']
CSS = STYLUS.ext('css')
JS = COFFEE.ext('js')
CLOBBER.include(CSS, JS)
@adamjspooner
adamjspooner / _config.yml
Created May 24, 2011
A Jekyll plugin to convert .styl to .css.
View _config.yml
stylus:
compress: true
path: ./path/to/styl
You can’t perform that action at this time.