- demo for finding grid from image - don't mind the chinese in alert, checkout the green and red bits on the canvas
- grid editing interface - manually adjust how you want to extract cells into individual images
- captcha input - click the green button to refresh
- aggregated viewer
- aggregated csv
- temporal/amount viz
- 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]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------- | |
Project setup | |
-------------------------- | |
clone repo | |
brew install python3 | |
mkvirtualenv --python=/usr/local/bin/python3 foia-core | |
cd ~/Project/code/foia/foia-core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"amendments": [ | |
{ | |
"actions": [ | |
{ | |
"text": "Amendment SA 4843 proposed by Senator Bingaman for Senator Rockefeller.", | |
"acted_at": "2010-12-17T12:00:00Z", | |
"type": "action" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
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
- A laptop, with a working connection to the public Internet.
- A recent version of Firefox or Chrome.
OlderNewer