Convert Ruby 1.8 to 1.9 hash syntax
In vim, for an entire file:
:%s/:\([^ ]*\)\(\s*\)=>/\1:/gIn the shell, for an entire project:
perl -pi -e 's/:([\w\d_]+)(\s*)=>/\1:/g' **/*.rbNow, instead of those old-school hashes like this:
get '/', :agent => MOBILE_BROWSERS doYou’ll have new-school hashes like this:
get '/', agent: MOBILE_BROWSERS do
Interesting look at the issue.
I think this is common among non computer science grads who end up as programmers (such as me)
Using spaced repetition systems to learn and retain technical knowledge.
The core of Janki Method is the use of a spaced repetition flashcard system, Anki, programmed by the brilliant Damien Elmes.
Worth checking out for coders.
(via Hacker Says Texas Town Used Three Character Password To Secure Internet Facing SCADA System)
Yes, that stupid…
(via redteams)
Some non mainstream yet pretty hardcore languages. Check it out.
Undisclosed
This undisclosed project is being held at an undisclosed building on an undisclosed location.