Skip to content

Instantly share code, notes, and snippets.

@dokipen
Created February 10, 2012 15:59
Show Gist options
  • Select an option

  • Save dokipen/1790465 to your computer and use it in GitHub Desktop.

Select an option

Save dokipen/1790465 to your computer and use it in GitHub Desktop.
import requests
import sys
for i in range(1,10000):
response = requests.post('http://apply.embed.ly/1', data={'answer': str(i)})
if response.status_code == 302:
print i
sys.exit(0)
@sentientmachine

Copy link
Copy Markdown

This does not uphold the spirit of the test! Trial and error is good for dating, not for coding.

@dokipen

dokipen commented Feb 10, 2012

Copy link
Copy Markdown
Author

I'm allowed some lenience since I wrote the problem :P I was mainly trying to give my coworkers a good laugh.

@sidchilling

Copy link
Copy Markdown

Ha ha ha... nice one :)

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