Skip to content

Instantly share code, notes, and snippets.

@jakubjedelsky
Created May 26, 2011 12:46
Show Gist options
  • Save jakubjedelsky/993061 to your computer and use it in GitHub Desktop.
Save jakubjedelsky/993061 to your computer and use it in GitHub Desktop.
I am so bored!!1
#!/usr/bin/env python
#
# I am so bored!!1
#
import webbrowser, random
timeeaters = [
'www.google.com',
'www.facebook.com',
'www.twitter.com',
'www.google.com/reader',
'www.linkedin.com',
'news.ycombinator.com',
'delicious.com',
'youtube.com',
'vimeo.com',
]
roulette = random.randint(0, len(timeeaters)-1)
webbrowser.open('http://%s' % timeeaters[roulette])
@jakubjedelsky
Copy link
Author

Or we can call it "Procrastination" script..

@starenka
Copy link

starenka commented Aug 3, 2011

Jednodussi je pouzit choice:

one = random.choice(timeeaters)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment