Skip to content

Instantly share code, notes, and snippets.

@averrin
Created January 30, 2015 17:22
Show Gist options
  • Save averrin/1f09e1148bdd33d1560b to your computer and use it in GitHub Desktop.
Save averrin/1f09e1148bdd33d1560b to your computer and use it in GitHub Desktop.
Magic encoder
a = ["adsfgsdfg", "q45r3465365", "aer2r32q", "asdasdasd", "6666"]
def encode(s):
class Magic(object):
def __eq__(self, other):
return True
s = Magic()
return s
print(encode(a[0]) == a[1])
print(encode(a[1]) == a[2])
print(encode(a[3]) == a[4])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment