Skip to content

Instantly share code, notes, and snippets.

@manpages
Created August 10, 2015 10:11
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 manpages/ead27b5b301a0057afb8 to your computer and use it in GitHub Desktop.
Save manpages/ead27b5b301a0057afb8 to your computer and use it in GitHub Desktop.
Get your bitmask!
if __name__ == "__main__":
zzz = (s.run("""
select distinct powerScore from scores
"""))[1]
z = 0
for x in zzz:
print(bin(z))
y = int(x[0]) #here goes the poweScore mask for a submission
z = z | y
print(bin(z))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment