Skip to content

Instantly share code, notes, and snippets.

@chad
Created July 14, 2010 04:55
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 chad/475046 to your computer and use it in GitHub Desktop.
Save chad/475046 to your computer and use it in GitHub Desktop.
%w|rubygems sinatra|.each{|_|require _}
%w|gem load|.each{|_| send _, 'kitty'}
(k=Kitty).send *%w(define_method print) do |*a| a.join end
get "/" do content_type "text/plain" and k.new.random_kitty end
# gem install kitty
# ruby kitty_server.rb &
# curl http://localhost:4567
@chad
Copy link
Author

chad commented Jul 14, 2010

So much nonsense flying around. I felt left out. Here's some nonsense.

@aemadrid
Copy link

Love it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment