Skip to content

Instantly share code, notes, and snippets.

@mistersourcerer
mistersourcerer / gist:3316290
Created August 10, 2012 18:12 — forked from guilhermesilveira/gist:3315116
heroku does not love me anymore
rm -rf xpto
rails _3.2.8_ new xpto -d postgresql --skip-bundle
cd xpto
bundle install
git init
git add .
git commit -m "first commit"
@mistersourcerer
mistersourcerer / _.js
Created April 13, 2012 17:30 — forked from guilhermesilveira/gist:2378419
abusing _ scala in javascript
Array.prototype.map = function(f) {
return this.fold([], function(current, el) {
return [f(current)].concat(el);
});
}
Number.prototype.sum = function(val) {
return this + val;
}