Skip to content

Instantly share code, notes, and snippets.

@perliedman
Created May 8, 2014 21:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save perliedman/67d290984d85fd0ecdb8 to your computer and use it in GitHub Desktop.
Save perliedman/67d290984d85fd0ecdb8 to your computer and use it in GitHub Desktop.
def unhash(h):
s = ''
letters = 'acdegilmnoprstuw'
while h > 7:
v = h % 37
s = letters[v] + s
h /= 37
return s
if __name__ == '__main__':
from sys import argv
print unhash(int(argv[1]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment