Skip to content

Instantly share code, notes, and snippets.

View konklone's full-sized avatar

Eric Mill konklone

View GitHub Profile
@clkao
clkao / README.md
Last active August 29, 2015 14:02
g0v.tw campaign finance digitization project

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]
@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
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
@konklone
konklone / 51-android.rules
Created October 26, 2010 02:52
Android USB rules for Ubuntu Maverick/Natty with Nexus One and Galaxy Tab 10.1
# Meant for /etc/udev/rules.d/51-android.rules
# Google [*not* HTC] (i.e. Nexus One)
SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666"
# Samsung (i.e. Galaxy Tab)
SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666"
@konklone
konklone / amendment.json
Created January 10, 2011 22:57
Real Time Congress API collection examples.
{
"amendments": [
{
"actions": [
{
"text": "Amendment SA 4843 proposed by Senator Bingaman for Senator Rockefeller.",
"acted_at": "2010-12-17T12:00:00Z",
"type": "action"
},
{
@twneale
twneale / gpolocator.py
Created January 23, 2012 05:34
Getting GPO Locator data into a more usable form
# -*- coding: utf-8 -*-
'''
Usage:
>>> f = open('usc08.10')
>>> x = getlines(f)
>>> x.next()
GPOLocatorLine(code='F', arg='5800', data=u'\r\n')
>>> print x.next().data
TITLE 8–ALIENS AND NATIONALITY
@SyntaxColoring
SyntaxColoring / Sine.js
Last active January 1, 2016 10:19
Trace a sine wave with your flag on isitchristmas.com.
var theta = 0.0;
window.setInterval(function() {
theta += Math.PI/10;
if (theta >= Math.PI*4) theta = 0.0;
var event = {clientX: theta*100, clientY: (Math.sin(theta)+1.5)*100, button: 2};
me.angle = Math.cos(theta)*180/Math.PI;
setRotate(me.flag, me.angle);
emit('scroll', {id: me.id, angle: me.angle});
document.onmousemove(event);
document.onmousedown(event);
@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
@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.