Skip to content

Instantly share code, notes, and snippets.

@toothrot
Created January 29, 2009 07:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toothrot/54431 to your computer and use it in GitHub Desktop.
Save toothrot/54431 to your computer and use it in GitHub Desktop.
Shoes.app do
@s0 = stack do
background red
100.times do
para "yay"
end
end
@s = stack do
style(:attach => Window, :top => height - 100)
background lightblue
para app.width
para app.height
end
@height = 0
every(1) do
unless app.height == @height
@s.clear do
background lightblue
style(:top => height-100)
para app.width
para app.height
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment