Skip to content

Instantly share code, notes, and snippets.

@godfat
Created April 1, 2009 12:02
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 godfat/88659 to your computer and use it in GitHub Desktop.
Save godfat/88659 to your computer and use it in GitHub Desktop.
puts($stdin.read.split(/=/).reject{|a|a=="\n"}.map{|a|a=~/^[0-9A-Z]{2}/?[a[0..1],a[2..-1]]:a}.flatten.reject(&:empty?).map{|a|a=~/^[0-9A-Z]{2}$/?a.to_i(16):a.unpack('c*')}.flatten.pack('c*'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment