Aaron Patterson
https://speakerdeck.com/u/tenderlove/p/aloha-ruby-conference-2012
Zach Holman
Aaron Patterson
https://speakerdeck.com/u/tenderlove/p/aloha-ruby-conference-2012
Zach Holman
| function median(values) { | |
| values.sort( function(a,b) {return a - b;} ); | |
| var half = Math.floor(values.length/2); | |
| if(values.length % 2) | |
| return values[half]; | |
| else | |
| return (values[half-1] + values[half]) / 2.0; |
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |