Joined February 2013
·
Posted to
Update Ruby syntax on a Rails project (1.9.3 to 2.0.0)
over 1 year
ago
not apply in this case {:foo? => bar}
little change in command to fix this
$ find . -name \*.rb -exec perl -p -i -e 's/([^:]):(\w+?*)\s*=>/\1\2:/g' {} \;
Posted to
Vim - Regex to change hash rockets to new hash syntax in Ruby
over 1 year
ago
@woto i understood, i updated the tip to ignore this cases
thkz (:
Posted to
Vim - Regex to change hash rockets to new hash syntax in Ruby
over 1 year
ago
@woto {:'a' => 'b'} === {:a => 'b'} === {a: 'b'}
Posted to
Vim - Regex to change hash rockets to new hash syntax in Ruby
over 1 year
ago
@thenickcox thkz, i agree with this title is so much clearer :)
Posted to
Debian-like - Creating a list of all installed packages
over 1 year
ago
@oelmekki oh, thanks for the suggestion i changed the title of protip
Posted to
Debian-like - Creating a list of all installed packages
over 1 year
ago
@oelmekki dpkg
is the software at the base of the Debian package management system, what linux distro you use? (:
Posted to
Debian-like - Creating a list of all installed packages
over 1 year
ago
@drabiter you can save your settings backing up the directory /etc
Posted to
Git - Deleting remote branch
over 1 year
ago
@ashutoshraina no, what I said is right, this action was included since version 1.5.0 look here https://github.com/gitster/git/blob/master/Documentation/RelNotes/1.5.0.txt#L172-L174
Achievements
481 Karma
119,032 Total ProTip Views

Charity
Fork and commit to someone's open source project in need

Forked
Have a project valued enough to be forked by someone else

Mongoose 3
Have at least three original repos where Ruby is the dominant language

Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos

Mongoose
Have at least one original repo where Ruby is the dominant language

Raven
Have at least one original repo where some form of shell script is the dominant language
@kikito I think this solves