Skip to content

Instantly share code, notes, and snippets.

Avatar

Drew Miller xer0x

View GitHub Profile
@xer0x
xer0x / hack.sh
Created Apr 23, 2012 — forked from erikh/hack.sh
OSX For Hackers
View hack.sh
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@xer0x
xer0x / build.js
Created Feb 9, 2012 — forked from jrburke/build.js
Doing multiple almond builds with a nodejs script, example
View build.js
//Download jquery.js and place it in the build, do not use require-jquery.js
//in the build, since each of the build layers just needs almond and not the
//full require.js file.
//This file is run in nodejs to do the build: node build.js
//Load the requirejs optimizer
var requirejs = require('./r.js');
//Set up basic config, include config that is
//common to all the requirejs.optimize() calls.
View fake.txt
Okay, nobody ever actually said that Tweet.
But, Tux is a great penguin.
@xer0x
xer0x / olark.js
Created Oct 26, 2011
olark javascript
View olark.js
// Original snippet
function inspectObject(object) {
for (key in object) {
console.log("the attribute " + key + " is equal to " + object[key]);
}
}
var widget = new Widget();
inspectObject(widget);
You can’t perform that action at this time.