Skip to content

Instantly share code, notes, and snippets.

@gsathya
Created July 28, 2011 17:54
Show Gist options
  • Save gsathya/1112103 to your computer and use it in GitHub Desktop.
Save gsathya/1112103 to your computer and use it in GitHub Desktop.
Beats Time
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