Skip to content

Instantly share code, notes, and snippets.

@jyap808
Created August 17, 2015 03:52
Show Gist options
  • Save jyap808/9f60e1e1dbc9b9a389e6 to your computer and use it in GitHub Desktop.
Save jyap808/9f60e1e1dbc9b9a389e6 to your computer and use it in GitHub Desktop.
Jumbucks Fantasy Football Draft Order 2015
#!/usr/bin/python
import hashlib
names = []
names.append('Bombaklots')
names.append('Broncomania')
names.append('MtGox Frappuccinos')
names.append('SaintSlayers')
names.append('The Prodigious Lemurs')
names.append('BTC4LyfeUntilSomethingBetter')
names.append('The RZRnoughts')
names.append('Stake-N-Bake')
names.append('Mandalorians')
names.append('Mutha Jumbucka')
names.append('fantasyfootballcoin')
names.append('Ketamine Milkshakes')
names_dict = {}
# Jumbucks block 545313
block_hash = 'fea0f42ea1322c1bdf2a278e08843898c07ed534bbcf811bd807d0da310df1be'
for name in names:
name_hex = hashlib.sha256("%s%s" % (name, block_hash)).hexdigest()
name_number = int(name_hex, 16)
names_dict[name] = name_number
count = 1
for name in sorted(names_dict, key=names_dict.get):
print count, name
count += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment