This file contains hidden or 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
| 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" |
This file contains hidden or 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
| Array.prototype.map = function(f) { | |
| return this.fold([], function(current, el) { | |
| return [f(current)].concat(el); | |
| }); | |
| } | |
| Number.prototype.sum = function(val) { | |
| return this + val; | |
| } |