Skip to content

Instantly share code, notes, and snippets.

@alex-laties
Created December 16, 2013 01:54
Show Gist options
  • Save alex-laties/7981272 to your computer and use it in GitHub Desktop.
Save alex-laties/7981272 to your computer and use it in GitHub Desktop.
def decode_byte(b):
b = ord(b)
b = chr(((b & 3) << 6) + (b >> 2))
return b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment