Skip to content

Instantly share code, notes, and snippets.

@gausby
Created February 18, 2011 20:24
Show Gist options
  • Select an option

  • Save gausby/834340 to your computer and use it in GitHub Desktop.

Select an option

Save gausby/834340 to your computer and use it in GitHub Desktop.
A stupid string to binary converter.
(function(w,r,i){r=[];for(i in w)r.push(w.charCodeAt(i).toString(2));return r.join(' ');}('hello, world'))
@gausby
Copy link
Author

gausby commented Feb 18, 2011

NB: This code does not generate true octets.

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