This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ngIt($injector) { | |
return function(text, fn) { | |
it(text, function(done) { | |
var $rootScope = $injector.get('$rootScope') | |
, fin | |
, finished = function(err) { | |
fin = true; | |
done(err); | |
}; | |
fn(finished); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macro $enum { | |
case $name:ident {$val:ident (,) ...} => { | |
var $name = {$($val: null) (,) ...}; | |
for (var k in $name) { | |
$name[k] = k; | |
} | |
Object.freeze($name); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
git diff-index --check --cached $against -- && \ | |
rm -rf out && \ | |
git stash save --keep-index 'pre-commit unstaged changes' && \ | |
lein clojurescript fresh test && \ | |
git stash pop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
PORT=9000 | |
OUT_DIR='out' | |
while getopts ":f:p:d:" opt; do | |
case $opt in | |
f) | |
HTML="$OPTARG" | |
;; |
NewerOlder