Skip to content
This repository has been archived by the owner on Nov 1, 2017. It is now read-only.

Commit

Permalink
raffle.py
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Feb 24, 2011
1 parent b4bf267 commit d235fe9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions raffle.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# pip install github2
from github2.client import Github

from random import choice

github = Github()
repos = github.repos.network('github/pycon2011')

print "And the winners are..."
print "*drumroll*"
print "%s and %s!" % ( choice(repos)['owner'], choice(repos)['owner'] )

1 comment on commit d235fe9

@michaelgrosner
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while choice(repos)['owner'] != 'michaelgrosner':
continue

We have a winner!

Please sign in to comment.