Skip to content

Instantly share code, notes, and snippets.

@jakubjedelsky
Created May 26, 2011 12:46

Revisions

  1. Jakub Jedelsky created this gist May 26, 2011.
    20 changes: 20 additions & 0 deletions booooring.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    #!/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])