Picking a winner

At the end of our episode The Master Algorithm we asked listeners to submit a resume to us to build a corpus for an upcoming project. We\'re working on an analysis of all the submissions and our result will be sent just to those that contributed a resume.

We are still accepting submissions and plan to have the entire thing automated in time. We are giving away two copies of "The Master Algorithm" by Pedros Domingos to submitters that got their PDF to us before the deadline. During an upcoming Data Skeptic Live event, I\'ll be running the code below to announce the winner.

Naturally, I\'m aware of privacy concerns, so I\'ll be sharing an MD5 hash of the winner\'s email. You can use the code below to check if you\'re the winner! I\'ll also be contacting the winners directly.

import json
import random
import hashlib
lst = json.load(open('resume_emails.json', 'r'))
len(lst)
random.shuffle(lst)
def get_md5(s):
    s = s.encode('utf-8')
    m = hashlib.md5()
    m.update(s)
    return m.hexdigest()
list(map(lambda x: get_md5(x), lst[0:2]))