Skip to content

Instantly share code, notes, and snippets.

@mame
Created June 14, 2013 17:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mame/5783723 to your computer and use it in GitHub Desktop.
Save mame/5783723 to your computer and use it in GitHub Desktop.
eval s=%q(require"gtk2"
x=y=30
s="eval s=%q(#{s})"
GLib::Timeout.add(50) {
x,c=x+30,s.slice!(0,1)
if c.ord==10
x,y=30,y+30
elsif c.ord!=32
w=Gtk::Window.new
w.set_decorated(false)
w.set_default_size(20,20)
w.add(Gtk::Label.new(c))
w.move(x,y)
w.show_all
end
s!=""
}
Gtk.main())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment