Joined June 2012
·
Posted to
vim: Open multiple files into splits in 1 command
over 1 year
ago
Ctrl+w s splits a window horizontally too!
Posted to
Ruby: Convert a string to an array of characters
over 1 year
ago
That would include spaces, the scan only returns what matches the regex. Nice find!
Posted to
Deleting remote branches
over 1 year
ago
what you're doing is using git's ability to not have a 1 to 1 push requirement.
You can do:
git push origin experimental_branch:master
and that will push your experimental branch to the master branch.
git push origin :master
is pushing "nothing" to master thereby deleting it.
Achievements
584 Karma
106,029 Total ProTip Views

Altruist
Increase developer well-being by sharing at least 20 open source projects

Bear
Have at least one original repo where Objective-C is the dominant language

Kona
Have at least one original repo where CoffeeScript is the dominant language

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

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

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

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

Mongoose
Have at least one original repo where Ruby is the dominant language
"This is the bee's knees".chars also includes spaces. Using #scan does not include them.