Skip to content

Instantly share code, notes, and snippets.

View konklone's full-sized avatar

Eric Mill konklone

View GitHub Profile
Minstrel: 1
Bard: 1
Troubadour: 1
Jongleur: 1
@konklone
konklone / workshop-notes.md
Created February 19, 2014 16:03
notes from 2/17 workshop
@konklone
konklone / 1-steps.md
Last active August 29, 2015 13:56
[arbitrary, nested] json to csv

download this JSON of 2 bills with various nested arrays/fields, from the Sunlight Congress API:

curl "https://congress.api.sunlightfoundation.com/bills?apikey=sunlight9&per_page=2" > 2-bills.json

tell csvkit's in2csv to parse it, with an instruction of top-level key:

cat 2-bills.json | in2csv -f json -k results > 3-bills.csv
@konklone
konklone / odd-2014-intro-to-open-data-workshop.md
Last active August 29, 2015 13:56
intro to open data, open data day dc 2014

Intro to Open Data

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

URL of this document: bit.ly/odd-intro

You will need

  • A laptop, connected to WiFi (GUEST/lugid2ogea)
  • Recent version of Firefox or Chrome
@konklone
konklone / github.rb
Created March 8, 2014 17:24
scratch pad for when I was creating issues in contact-congress for every MoC
#!/usr/bin/env ruby
require "rubygems"
require "octokit"
require "congress"
# pass in sunlight, username, password as ENV variables
Congress.key = ENV['sunlight']
client = Octokit::Client.new(login: ENV['username'], password: ENV['password'])
@konklone
konklone / bench.rb
Created March 8, 2014 17:26
scratch benchmarking script for looking at Scout's SSL performance
#!/usr/bin/env ruby
# require 'curb'
require 'net/http'
path = ARGV[0]
n = ARGV[1].to_i
nn = ARGV[2].to_i
@konklone
konklone / end-of-air-bud
Created April 18, 2014 02:43
The End of Air Bud: Rabies
The End of Air Bud: Rabies
It's the year 2024, and Air Bud is being honored at an international
ceremony in Barcelona, where the 2024 Summer Olympics are about to
take place. Air Bud is taking on his final challenge before
retirement: the rings. Air Bud's newest owner, 4-year old orphan
Joshie, has just gotten over the death of his parents and has latched
on to Air Bud as a paternal substitute. Air Bud's powerful foreleg
muscles nearly rip through his jersey as he effortlessly executes the
astounding Iron Cross, followed by a Double Crucifix.
@konklone
konklone / 1-current-state.md
Last active August 29, 2015 14:00
General Mill's old terms, including their binding arbitration language, as obtained from Google cache on the afternoon of 2014-04-20

General Mills used the below Terms of Service from Apr 16-19, as the NYT reported and followed up on, in which General Mills claimed:

"...the policy would not and does not preclude a consumer from pursuing a claim. It merely determines a forum for pursuing a claim. And arbitration is a straightforward and efficient way to resolve such disputes."

On Apr 19, General Mills reversed their terms, which are now here, and wrote about their reversal:

We’ll just add that we never imagined this reaction. Similar terms are common in all sorts of consumer contracts, and arbitration clauses don’t cause anyone to waive a valid legal claim.