observe the nerds

Feb 12

pergoogle:

“Parabola,” Google Image search by Rob Walker,January 22, 2012

pergoogle:

“Parabola,” Google Image search by Rob Walker,January 22, 2012

Convert Ruby 1.8 to 1.9 hash syntax

thoughtbot:

In vim, for an entire file:

:%s/:\([^ ]*\)\(\s*\)=>/\1:/g

In the shell, for an entire project:

perl -pi -e 's/:([\w\d_]+)(\s*)=>/\1:/g' **/*.rb

Now, instead of those old-school hashes like this:

get '/', :agent => MOBILE_BROWSERS do

You’ll have new-school hashes like this:

get '/', agent: MOBILE_BROWSERS do

(Source: thoughtbot)

“thats a nice calculator”

“i have to skip gym to study for my physics test”

“man i totally bombed my math test, my dad’s gonna kill me"
-what grade did you get-
“87%”

50 % of what i hear consists of the name “pokemon” 
gotta catch em’ all

50 % of what i hear consists of the name “pokemon” 

gotta catch em’ all