Created
July 28, 2011 17:54
-
-
Save gsathya/1112103 to your computer and use it in GitHub Desktop.
Beats Time
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
Shoes.app :width => 300, :height => 100 do | |
def calc_time | |
t = Time.new.utc.to_i%86400 | |
t = t.to_s | |
t = "@ "+t[0..2]+" : "+t[3..5] | |
end | |
background "#BE8" | |
stack do | |
@title = title "New Internet Time!", | |
:align => "center", | |
:size => 15 | |
@time = para calc_time, | |
:align => "center", | |
:size => 13 | |
every 1 do | |
@time.replace(calc_time) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment