Created
September 13, 2011 07:58
-
-
Save froderik/1213377 to your computer and use it in GitHub Desktop.
tiny pomodoro clock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
puts "\ntime is up" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment