search
archives
- February 2011 (1)
- August 2010 (2)
- January 2010 (5)
- September 2009 (1)
meta
Monthly Archives: August 2010
remember to test bash aliases
My linux vm reminded me of the importance of testing bash aliases before adding them to the .bash_aliases file. This was the mistake: alias local=’git checkout local’ The next time I opened a terminal, I received this wonderful message: bash: … Continue reading
you can escape spaces when using ruby’s %w operator
Discovered something cool about ruby’s %w operator the other day. You can escape spaces in it. %w{there will be four\ elements} evaluates to: [‘there’, ‘will’, ‘be’, ‘four elements’] Just a little neat tidbit I haven’t seen in any examples.