Link to these notes: bit.ly/intro-to-apis-notes
Link to workshop handout: bit.ly/intro-to-apis
Intro
var refreshRate = 100; var particleLimit = 15; | |
var snake = { | |
x: (window.innerWidth * Math.random()) - window.pageXOffset, | |
y: (window.innerHeight * Math.random()) - window.pageYOffset, | |
dx: Math.ceil(Math.random() * 30) - 15, | |
dy: Math.ceil(Math.random() * 30) - 15, | |
atan2: Math.atan2(this.dx, this.dy) + (Math.PI / 2), body: [], | |
update: function () { | |
if (this.x < 0) { this.x = 0; this.dx = -this.dx;} | |
else if (this.x > window.innerWidth) { this.x = window.innerWidth; this.dx = -this.dx; } |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/37.0.2062.94 Chrome/37.0.2062.94 Safari/537.36 | |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36 | |
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko | |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0 | |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/600.8.9 (KHTML, like Gecko) Version/8.0.8 Safari/600.8.9 | |
Mozilla/5.0 (iPad; CPU OS 8_4_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12H321 Safari/600.1.4 | |
Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36 | |
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36 | |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10240 | |
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:40.0) |
Bytes: 409 | |
Certificate: | |
Data: | |
Version: 3 (0x2) | |
Serial Number: 1 (0x1) | |
Signature Algorithm: ecdsa-with-SHA256 | |
Issuer: C=US, O=Eggman, OU=Root CA 1 | |
Validity | |
Not Before: Jan 1 00:00:01 2004 GMT | |
Not After : Dec 31 23:59:59 2028 GMT |
-------------------------- | |
Project setup | |
-------------------------- | |
clone repo | |
brew install python3 | |
mkvirtualenv --python=/usr/local/bin/python3 foia-core | |
cd ~/Project/code/foia/foia-core |
Link to these notes: bit.ly/intro-to-apis-notes
Link to workshop handout: bit.ly/intro-to-apis
Intro
An introduction to working with URLs, JSON, APIs, and open data -- without writing any code.
URL of this document: bit.ly/intro-to-apis
I wasn't first to get the key. Nor was I second, third, or even fourth. I'm probably not even the | |
10th to get it (ok, looks like I was the 8th.) But I'm happy that I was able to prove to myself | |
that I too could do it. | |
First, I have to admit I was a skeptic. Like the handful of other dissenters, I had initially | |
believed that it would be highly improbable under normal conditions to obtain the private key | |
through exploiting Heartbleed. So this was my motivation for participating in Cloudflare's | |
challenge. I had extracted a lot of other things with Heartbleed, but I hadn't actually set out to | |
extract private keys. So I wanted to see first-hand if it was possible or not. |
var a = 0.0; | |
var t = 0; | |
var drawHeart = function() { | |
if(a < Math.PI / 2 || a > Math.PI * 3/2) | |
a += 0.20; // for old ghost values: 0.35; | |
else | |
a += 0.10; // for old ghost values: 0.25; // the top part is more detailed | |
if(a >= Math.PI * 2) | |
a = 0; |