Skip to content

Instantly share code, notes, and snippets.

@jeremiak
jeremiak / congressional-representation-by-population-1793-2010.csv
Created July 27, 2018 03:29
congressional-representation-by-population
Years Source Avg. Constituents per rep Country population Population % per rep
1793–1803 1790 Census 34,436 3,929,214 0.8764093786
1803–1813 1800 Census 34,609 5,236,631 0.6609020189
1813–1823 1810 Census 36,377 7,239,881 0.5024530099
1823–1833 1820 Census 42,124 9,638,453 0.4370410895
1833–1843 1830 Census 49,712 12,866,020 0.3863821135
1843–1853 1840 Census 71,338 17,069,453 0.4179278621
1853–1863 1850 Census 93,020 23,191,876 0.4010887261
1863–1873 1860 Census 122,614 31,443,321 0.3899524481
1873–1883 1870 Census 130,533 38,558,371 0.3385334925
{
"status":"OK",
"copyright":" Copyright (c) 2018 Pro Publica Inc. All Rights Reserved.",
"results":[
{
"congress": "115",
"chamber": "House",
"num_results": 450,
District Land area (mi²) Land area (km²)
Alaska At-large 571951.26 1481353.76
Montana At-large 145552.44 376980.82
Wyoming At-large 97100.4 251490.04
South Dakota At-large 75884.64 196541.22
New Mexico 2nd 71739.49 185805.46
Oregon 2nd 69442.78 179856.98
North Dakota At-large 68975.93 178647.66
Nebraska 3rd 67435.41 174657.89
Texas 23rd 58059.18 150373.43
@jeremiak
jeremiak / table-1-crime-in-the-us-1994-2013.csv
Last active April 9, 2017 23:13
sample output from jeremiak/open-cius
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 20 columns, instead of 17. in line 5.
Year,Population,Violent crime,Violent crime rate,Murder and nonnegligent manslaughter,Murder and nonnegligent manslaughter rate,Rape (legacy definition),Rape (legacy definition) rate,Robbery,Robbery rate,Aggrevated assault,Aggrevated assault rate,Property crime,Property crime rate,Burglary,Burglary rate,Larceny-theft,Larceny-theft rate,Motor vehicle theft,Motor vehicle theft rate
1994,260327021,1857670,713.6,23326,9,102216,39.3,618949,237.8,1113179,427.6,12131873,4660.2,2712774,1042.1,7879812,3026.9,1539287,591.3
1995,262803276,1798792,684.5,21606,8.2,97470,37.1,580509,220.9,1099207,418.3,12063935,4590.5,2593784,987,7997710,3043.2,1472441,560.3
1996,265228572,1688540,636.6,19645,7.4,96252,36.3,535594,201.9,1037049,391,11805323,4451,2506400,945,7904685,2980.3,1394238,525.7
1997,267783607,1636096,611,18208,6.8,96153,35.9,498534,186.2,1023201,382.1,11558475,4316.3,2460526,918.8,7743760,2891.8,1354189,505.7
1998,270248003,1533887,567.6,16974,6.3,93144,34.5,447186,165.5,976583,361.4,10951827,4052.5,2332735,863.2,7
@jeremiak
jeremiak / bread.md
Last active October 10, 2021 12:25
An easy recipe (50% hydration) for making sourdough bread from a starter

Sourdough from scratch

Starter feeding regime

Generally, feeding a starter is pretty simple:

  1. Remove a little more than half
  2. Add flour and water
  3. Stir
  4. Cover and set somewhere
@jeremiak
jeremiak / federalist-state-sketch.json
Last active June 12, 2016 08:51
Sketch of what a single state tree for Federalist might look like
{
"currentView": {
"id": "pages/media/setttngs/logs",
"siteId": 0
},
"currentPage": {
"site": 0,
"new": false,
"draft": false,
"locked": false,
@jeremiak
jeremiak / results.txt
Created June 6, 2016 19:47
npm run lint:security on 18f/openopps-platform/master
> openopps-platform@0.9.3 lint:security openopps-platform
> eslint -c .eslintsecurityrc .
openopps-platform/Gruntfile.js
126:11 warning The function write can be unsafe scanjs-rules/call_write
openopps-platform/api/controllers/SearchController.js
192:9 warning Assignment to location can be unsafe scanjs-rules/assign_to_location
@jeremiak
jeremiak / keybase.md
Created May 29, 2015 05:10
Keybase proof

Keybase proof

I hereby claim:

  • I am jeremiak on github.
  • I am jeremiak (https://keybase.io/jeremiak) on keybase.
  • I have a public key whose fingerprint is 7B93 C904 5E4F B721 3E5E 2271 525B 1E06 4DDF 9D89

To claim this, I am signing this object:

@jeremiak
jeremiak / navbar.html
Created August 20, 2014 17:55
this seems like I'm going the wrong direction for separation of concerns
@!(title, style)
<div class="container">
@{
styles = style.split(' ')
}
@if (styles.indexOf('back') != -1) {
<span class="back">
<div class="chevron left"></div>
<span class="back-label">Back</span>
@jeremiak
jeremiak / gist:a6e803640992a797e637
Created July 9, 2014 21:56
return the return of the return
var $ = require('jquery')
var Home = require('./models/home')
function homeFromJSON(json) {
var json = JSON.parse(json)
var data = {
id: json.id,
quote: 'string',
address: json.address,