Skip to content

Instantly share code, notes, and snippets.

View marivas's full-sized avatar

Manuel Rivas marivas

View GitHub Profile
@marivas
marivas / cons.js
Last active December 14, 2015 02:19
var cons = function(a, b) {
return function(f) {
return f(a,b);
}
}
var car = function(f) {
return f(function(a, b) { return a; })
}
@marivas
marivas / gist:3046479
Created July 4, 2012 09:58
closure compile
python ../closure-library/closure/bin/calcdeps.py --path ../closure-library --path ../closure-templates/javascript/soyutils_usegoog.js --path hello.soy.js --input hello.js --compiler_jar ../closure-compiler/build/compiler.jar --output_mode compiled --compiler_flags="--compilation_level=ADVANCED_OPTIMIZATIONS" > hello-compiled.js
python ../closure-library/closure/bin/calcdeps.py --dep ../closure-library --path ../closure-templates/javascript --path hello.soy.js --path hello.js --output_mode deps > hello-deps.js