Skip to content

Instantly share code, notes, and snippets.

@d0ppler
Created April 16, 2015 10:57
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*') }

Sorry, something went wrong.

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