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
| # Original blog post about Rubinius performance on the alioth mandelbrot benchmark: | |
| # http://rfc2616.wordpress.com/2010/10/16/rubinius-vs-the-benchmark-from-hell/ | |
| # | |
| # Problems with assumptions in the blog post: | |
| # * The C <-> Ruby comparison is apples to oranges because the Ruby code | |
| # is written to use blocks rather than loops. That imposes the overhead | |
| # of additional execution contexts per pixel. | |
| # * The output is written a byte at a time, which requires a fairly deep | |
| # chain of methods before the byte is handed off to the OS. | |
| # * The work is done in the script body. Unless the implementation has |
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
| 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 |
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
| # modules work! :) If we define_method on a module and include it, it works the same. | |
| class A | |
| include World | |
| end | |
| module World | |
| def hello | |
| puts "World" | |
| end |
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
| module ApplicationHelper | |
| # Access Levels | |
| ACCESS_LEVELS = { :private => 0, :friends => 1, :public => 2 } | |
| # Access levels i18n translation | |
| def access_levels | |
| ACCESS_LEVELS.collect{|k,v| [I18n.t("access." + k.to_s), v]} | |
| end | |
| end |
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
| ּ_בּ | |
| בּ_בּ | |
| טּ_טּ | |
| כּ‗כּ | |
| לּ_לּ | |
| מּ_מּ | |
| סּ_סּ | |
| תּ_תּ | |
| ٩(×̯×)۶ | |
| ٩(̾●̮̮̃̾•̃̾)۶ |
NewerOlder