Skip to content

Instantly share code, notes, and snippets.

@canweriotnow
Created November 1, 2011 12:37
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 canweriotnow/1330427 to your computer and use it in GitHub Desktop.
Save canweriotnow/1330427 to your computer and use it in GitHub Desktop.
A quine and a wabbit walk into a bar...
#!/usr/bin/env ruby
file = File.read(__FILE__)
name = "quinebunny-#{Time.now.to_s.gsub(/\s/, '')}.rb"
io = File.new(name, 'w')
io.write(file)
io.close
%x(ruby #{name})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment