NOTE: This post now lives (and kept up to date) on my blog: http://hakunin.com/rails3-load-paths
Do nothing. All files in this dir are eager loaded in production and lazy loaded in development by default.
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| require 'benchmark' | |
| TIMES = 1_000_000 | |
| string = ' some weird string with spaces in it ' | |
| Benchmark.bmbm do |x| | |
| x.report("gsub + regexp") do | |
| TIMES.times do |t| | |
| string.gsub(/\s+/,'-') | |
| end |
NOTE: This post now lives (and kept up to date) on my blog: http://hakunin.com/rails3-load-paths
Do nothing. All files in this dir are eager loaded in production and lazy loaded in development by default.
| # First install tmux | |
| brew install tmux | |
| # For mouse support (for switching panes and windows) | |
| # Only needed if you are using Terminal.app (iTerm has mouse support) | |
| Install http://www.culater.net/software/SIMBL/SIMBL.php | |
| Then install https://bitheap.org/mouseterm/ | |
| # More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ |