Skip to content

Instantly share code, notes, and snippets.

View vpontis's full-sized avatar
🌊

Victor Pontis vpontis

🌊
View GitHub Profile
@vpontis
vpontis / strobe_light.htm
Created April 27, 2019 21:09
Strobe Light
<html><head>
<title>Strobe</title>
<script>
function toggleBgColor()
{
document.bgColor = document.bgColor == '#ffffff' ? '#000000' : '#ffffff';
setTimeout('toggleBgColor()', 75); //in milliseconds
}
</script>
@vpontis
vpontis / copy.py
Last active November 12, 2025 16:17
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)