Skip to content

Instantly share code, notes, and snippets.

@damienklinnert
damienklinnert / ownstep.js
Created July 11, 2012 19:55
basic Step implementation
// this should work and give us 1 to 5
var Step = function (steps) {
// this only works with arrays, @todo better check
if (typeof steps !== 'object') {
return;
}
var currentStep = 0, lastStep = steps.length;
#!/bin/bash
# vars
SANDBOX_DIR=sandbox
if [[ `which ldd` ]]; then
DEPENDENCY_TOOL=ldd
else
DEPENDENCY_TOOL='otool -L'
fi
syntax on
set autoindent
set smartindent
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set nu
call pathogen#infect()
filetype plugin indent on
@damienklinnert
damienklinnert / gist:2718189
Created May 17, 2012 11:07
wikipedia game bookmarklet
<a href="javascript:(function(){
script = document.createElement( 'script' );
script.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js';
script.onload=releasetheKraken;
document.body.appendChild(script);
function releasetheKraken () {