Skip to content

Instantly share code, notes, and snippets.

View froderik's full-sized avatar

Fredrik Rubensson froderik

View GitHub Profile
@froderik
froderik / pomo.rb
Created September 13, 2011 07:58
tiny pomodoro clock
#!/usr/bin/ruby
STDOUT.sync = true #makes print flush
now = Time.new
twentyfive = now + 25*60
puts "pomodoro ends #{twentyfive}"
while now < twentyfive do
sleep 1
now = Time.new
print "."
end