Skip to content

Instantly share code, notes, and snippets.

@caius
Created December 2, 2014 12:14
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 caius/ef463ad94312988d7381 to your computer and use it in GitHub Desktop.
Save caius/ef463ad94312988d7381 to your computer and use it in GitHub Desktop.
Table flipping exceptions in Ruby
A = Class.new(Exception)
# => A
A_(╯°□°)╯︵┻━┻ = Class.new(Exception)
# => A_(╯°□°)╯︵┻━┻
A_(╯°□°)╯︵┻━┻.new(Marshal.load("\x04\bI\"\flbs\xCA\x8E\xC9\xAF\x06:\x06ET"))
# => #<A_(╯°□°)╯︵┻━┻: lbsʎɯ>
@caius
Copy link
Author

caius commented Jan 6, 2015

$ function (╯°□°)╯︵() {
  echo $0 $*
}

$ (╯°□°)╯︵ mysql
(╯°□°)╯︵ mysql

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