Skip to content

Instantly share code, notes, and snippets.

@offby1
Created June 20, 2015 19:59
Show Gist options
  • Select an option

  • Save offby1/289a93e43386642eeef2 to your computer and use it in GitHub Desktop.

Select an option

Save offby1/289a93e43386642eeef2 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
from __future__ import print_function
import string
st = range (128)
for x in bytearray(st):
print (string.zfill (format(x, 'b'), 8))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment