Skip to content

Instantly share code, notes, and snippets.

@romuloceccon
Created March 15, 2017 13:01
Show Gist options
  • Select an option

  • Save romuloceccon/935741396c907ee3faa0bf830433468d to your computer and use it in GitHub Desktop.

Select an option

Save romuloceccon/935741396c907ee3faa0bf830433468d to your computer and use it in GitHub Desktop.
182 printable unicode code points to be used in a base-32768 encoder
def is_printable(x):
return \
x >= 0x25 and x <= 0x2a or \
x >= 0x2c and x <= 0x3c or \
x >= 0x3e and x <= 0x7e or \
x >= 0xa1 and x <= 0xac or \
x >= 0xae and x <= 0xff
s = [chr(x) for x in range(256) if is_printable(x)]
print(''.join(s))
print(len(s))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment