Joined May 2011
·
Posted to
Search/Replace old Ruby hash syntax with the new 1.9+ in vim
over 1 year
ago
@samnang ehm, I know it works because I've used it for my own needs :-)
Posted to
Ruby implicit coercion
over 1 year
ago
Nice tip! It's also possible to use this syntax:
@entries.inject(:+)
no need to pass the first value (0 in this case), because it's already used by default.
Achievements
201 Karma
6,033 Total ProTip Views
Honey Badger
Have at least one original Node.js-specific repo
Forked 20
Have an established project that's been forked at least 20 times
Beaver 3
Have at least three original repo where go is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Beaver
Have at least one original repo where go is the dominant language
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Cub
Have at least one original jQuery or Prototype open source repo
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Mongoose
Have at least one original repo where Ruby is the dominant language
Thanks for the link. To be honest, I wrote this tip several days before that Readme was updated with those instructions. Moreover, I've used the non-lazy way ;-)