Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

raffle.py

  • Loading branch information...
commit d235fe95c47508b4c1b11c3c1a6beab2e3a93cb7 1 parent b4bf267
@defunkt defunkt authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 raffle.py
View
11 raffle.py
@@ -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

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

We have a winner!

Please sign in to comment.
Something went wrong with that request. Please try again.