- Go to Github, sign up for an account: https://github.com
- "Watch" this repo: https://github.com/our/email
- To ask for help: https://github.com/our/email/issues
Minstrel: 1 | |
Bard: 1 | |
Troubadour: 1 | |
Jongleur: 1 |
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
An introduction to working with URLs, JSON, APIs, and open data -- without writing any code.
URL of this document: bit.ly/odd-intro
- A laptop, connected to WiFi (GUEST/lugid2ogea)
- Recent version of Firefox or Chrome
#!/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']) |
#!/usr/bin/env ruby | |
# require 'curb' | |
require 'net/http' | |
path = ARGV[0] | |
n = ARGV[1].to_i | |
nn = ARGV[2].to_i |
Tabs to open for my talk at DC Hack and Tell 7, March 18, 2014.
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. |
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.