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.

Revisions

  1. jyap808 created this gist Aug 17, 2015.
    34 changes: 34 additions & 0 deletions jumbucks_fantasy_football_draft_order.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    #!/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