Skip to content

Instantly share code, notes, and snippets.

View hannakalinowska's full-sized avatar

Hanna Kalinowska hannakalinowska

View GitHub Profile
@hannakalinowska
hannakalinowska / hot-dogs
Created March 22, 2012 10:57
Hot dogs?
curl http://www.eat.st/kings-cross/kings-cross-calendar.php 2>&1 | grep -oP "Big Apple Hot Dogs|eat.st at King's Boulevard on `date -v+1d +"%e(?:st|nd|rd|th) %h %Y"`" | head -n 1 | sed -E 's/Big Apple Hot Dogs/YES!/' | sed -E 's/eat.st.+/No :\(/'
@hannakalinowska
hannakalinowska / gist:1218952
Last active September 27, 2015 05:28
Vim Cheatsheet
R Enter Insert mode, replacing characters rather than inserting
<C-o> Temporarily get out of Insert mode
~ Switch case of the character under the cursor and move the cursor to the right. If a [count] is given, do that many characters.
~{motion} switch case of {motion} text.
{Visual}~ Switch case of highlighted text
"- Last “small” delete
". Last inserted text
"/ Last search
class User
has_many :jobs
end
it 'has a job' do
user.should have(1).job
end
@hannakalinowska
hannakalinowska / gist:1111468
Created July 28, 2011 12:43
Simplest Pomodoro timer
$ sleep 1500 && growlnotify -s -m 'Time is up!' && say 'Time is up'