Skip to content

Instantly share code, notes, and snippets.

@exit99
Last active March 1, 2016 19:35
Show Gist options
  • Save exit99/bf3a78fc72003d20faac to your computer and use it in GitHub Desktop.
Save exit99/bf3a78fc72003d20faac to your computer and use it in GitHub Desktop.
Automating Dave's Job
import time
import urllib2
from datetime import datetime
def do_dave():
while 10 < datetime.now().hour < 15:
time.sleep(5)
urllib2.urlopen('http://www.reddit.com/')
if __name__ == '__main__':
do_dave()
@yousafk
Copy link

yousafk commented Nov 17, 2014

hm. cool lol

@cetanu
Copy link

cetanu commented Nov 17, 2014

Oh sick! Thanks dude, I can automate my own job now too!

@manugarri
Copy link

Dave is being promoted now.

@sentientmachine
Copy link

Tough to fire dead wood in this entitlement economy. You can't fire me, I'm entitled.

@sunzhongwei
Copy link

nice job

@HealingTek
Copy link

Dave's not here.

@mauricioabreu
Copy link

lololol very nice!

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