Skip to content

Instantly share code, notes, and snippets.

@d0ppler
Created April 16, 2015 10:57
Show Gist options
  • Save d0ppler/c7d1ffa9f00752baf41b to your computer and use it in GitHub Desktop.
Save d0ppler/c7d1ffa9f00752baf41b to your computer and use it in GitHub Desktop.
unpack
input = gets.chomp.split( '' )
puts input.unpack('B*')
@roobert
Copy link

roobert commented Apr 16, 2015

input = gets.chomp.split('')
input.each { |x| puts x.unpack('B*') }

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