Skip to content

Instantly share code, notes, and snippets.

@fela
Created July 4, 2013 15:26
Show Gist options
  • Save fela/5928612 to your computer and use it in GitHub Desktop.
Save fela/5928612 to your computer and use it in GitHub Desktop.
The output of this script is equal to the script itself.
#!/usr/bin/env ruby
x=<<'X'
#!/usr/bin/env ruby
x=<<'X'
x+="X\n"
x=x.split("\n")
x=x[0..1]+x[0..7]+x[2..-2]
puts x.join("\n")
X
x+="X\n"
x=x.split("\n")
x=x[0..1]+x[0..7]+x[2..-2]
puts x.join("\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment