Skip to content

Instantly share code, notes, and snippets.

@supermomonga
Created September 12, 2013 14:51
Show Gist options
  • Select an option

  • Save supermomonga/6538773 to your computer and use it in GitHub Desktop.

Select an option

Save supermomonga/6538773 to your computer and use it in GitHub Desktop.
# coding: utf-8
# This code works with Ruby2.0
puts %w(Hello World).tap{ |hw|
bytes = hw.join.bytes.to_a
a, b = bytes.pop, bytes.pop
c = b - a
c += c + c+ c
@d = c.chr
}.join @d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment