Skip to content

Instantly share code, notes, and snippets.

View konklone's full-sized avatar

Eric Mill konklone

View GitHub Profile
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
@jackiekazil
jackiekazil / foia-core-setup
Last active August 29, 2015 14:05
foia-core setup
--------------------------
Project setup
--------------------------
clone repo
brew install python3
mkvirtualenv --python=/usr/local/bin/python3 foia-core
cd ~/Project/code/foia/foia-core
@konklone
konklone / intro-to-apis-notes.md
Last active March 4, 2016 07:00
Notes for Intro to APIs workshop for Open Data Day, March 4-5, 2016

1.1 Keyboard Access

  • An interactive element or function cannot be accessed or activated by keyboard [21(a), B1]
  • A keyboard trap is found [21(a), B1]
  • Non-standard or alternative keyboard commands are required for access but are not documented [21(a), B1]
  • Information revealed by mouse over (TITLE) is not available to keyboard-only users (i.e., there is no equivalent screen text or visual context) [21(a), B1]
  • At any time, there is no visual indication of the current focus (loss of focus) [21(c), B2]
  • The visual focus appears on the wrong element [21(c), B2]
  • The visual focus does not remain within a modal dialog box until closed [21(c), B4]
  • The visual focus does not move to revealed content and no description of the content change is provided [31(a), 31(b), B4]
  • The tab order is not logical [31(a), 31(b), B3]
@konklone
konklone / apis-workshop.md
Last active May 2, 2016 05:35
Notes for an "Intro to APIs" workshop.

Intro to APIs - March 4-5, 2016

An introduction to working with URLs, JSON, APIs, and open data -- without writing any code.

URL of this document: bit.ly/intro-to-apis

You will need

  • A laptop, with a working connection to the public Internet.
  • A recent version of Firefox or Chrome.
@clkao
clkao / README.md
Last active August 29, 2015 14:02
g0v.tw campaign finance digitization project
@epixoip
epixoip / cloudflare_challenge
Last active December 2, 2023 11:53
How I obtained the private key for www.cloudflarechallenge.com
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.
@RnbwNoise
RnbwNoise / heart.js
Last active December 26, 2022 07:21
A program for drawing a heart at isitchristmas.com: https://twitter.com/konklone/status/416399871231275008/
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;