Skip to content

Instantly share code, notes, and snippets.

View vpontis's full-sized avatar
🌊

Victor Pontis vpontis

🌊
View GitHub Profile
@vpontis
vpontis / copy.py
Last active January 11, 2024 18:59
Copy to clipboard from iPython on Mac OS X
"""
Add copy to clipboard from IPython!
To install, just copy it to your profile/startup directory, typically:
~/.ipython/profile_default/startup/
Example usage:
%copy hello world
# will store "hello world"
@vpontis
vpontis / lets_rev_testing.py
Created December 3, 2013 03:16
Solution code for letsrevolutionizetesting.com
from httplib import HTTPConnection
import json
if __name__ == '__main__':
base_url = '/challenge.json'
url = base_url
count = 0
conn = HTTPConnection('www.letsrevolutionizetesting.com')
while count < 100:
conn.request("GET", url)