Skip to content

Instantly share code, notes, and snippets.

@manveru
Created September 20, 2010 09:04
Show Gist options
  • Save manveru/587639 to your computer and use it in GitHub Desktop.
Save manveru/587639 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
$stdout.sync = true
while now = Time.now
# now = Time.at 60 * 30
print "De tijd is nu: #{now.strftime("%H:%M:%S")}"
if now.min + now.sec == 0
print " ", "." * now.hour
elsif now.min == 30
print " ."
end
sleep 1
print "\r"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment