Skip to content

Instantly share code, notes, and snippets.

View esjewett's full-sized avatar

Ethan Jewett esjewett

View GitHub Profile

Keybase proof

I hereby claim:

  • I am esjewett on github.
  • I am esjewett (https://keybase.io/esjewett) on keybase.
  • I have a public key ASDfTKLgwSyTB94Z33LIaxmxj0HRKty1PR2fz1rAXj_ZKwo

To claim this, I am signing this object:

@esjewett
esjewett / R Packages by Task.palladio.json
Last active March 9, 2017 17:48
Palladio visualization of the R packages CSV in @bearloga's https://github.com/bearloga/taskviewr/
{"version":"1.2.8","files":[{"url":"https://rawgit.com/bearloga/taskviewr/master/www/packages.csv","loadFromURL":true,"label":"R Packages by Task View","id":0,"autoFields":[],"fields":[{"key":"view","description":"view","cardinality":34,"type":"text","blanks":0,"uniques":[],"uniqueKey":false,"special":[],"unassignedSpecialChars":[],"countBy":false,"errors":[],"descriptiveField":"generated","$$hashKey":"object:116"},{"key":"package","description":"package","cardinality":2665,"type":"text","blanks":0,"uniques":[],"uniqueKey":false,"special":[],"unassignedSpecialChars":[],"countBy":false,"errors":[],"descriptiveField":"generated","$$hashKey":"object:117"},{"key":"title","description":"title","cardinality":2657,"type":"text","blanks":0,"uniques":[],"uniqueKey":false,"special":["-","/",",",":",";","_"],"unassignedSpecialChars":["-","/",",",":",";","_"],"countBy":false,"errors":[],"descriptiveField":"generated","$$hashKey":"object:118"},{"key":"license","description":"license","cardinality":81,"type":"text","blanks
@esjewett
esjewett / Migration by state, age, education.R
Last active December 1, 2016 23:27
Generating a visualization of migration of those under 40, by age, state, and whether or not they have a college degree (as opposed to less or more education) - Data citation: IPUMS-USA, University of Minnesota, www.ipums.org.
df_full <- read.csv("~/git_repos/mig_analysis/usa_00006.csv", header=T)
# At what age to people migrate to/from each state?
age_state_of_migrate_to <- filter(df_full, MIGPLAC1 != 0 & MIGPLAC1 <= 56) %>%
mutate(edu = EDUCD == 101) %>%
group_by(AGE, STATEFIP, edu) %>%
summarise(to_count = n())
age_state_of_migrate_from <- filter(df_full, MIGPLAC1 != 0 & MIGPLAC1 <= 56) %>%
mutate(edu = EDUCD == 101) %>%
group_by(AGE, MIGPLAC1, edu) %>%
@esjewett
esjewett / .block
Last active November 9, 2016 22:49
d3-force many body fix
license: mit
@esjewett
esjewett / .block
Last active November 9, 2016 22:49
d3-force collide fix
license: mit
@esjewett
esjewett / .block
Last active November 9, 2016 22:37
d3-force collide fix
license: mit
@esjewett
esjewett / .block
Last active November 9, 2016 22:32
fresh block
license: mit
@esjewett
esjewett / US_cities.csv
Last active July 19, 2016 21:45
Tab delimited US Cities from Geonames export
We can't make this file beautiful and searchable because it's too large.
City,Latitude,Longitude,State
Amchitka,51.56722,178.8775,AK
Sunik (historical),52.43333,173.6,AK
Attu,52.9375,173.2375,AK
Ugiatok (historical),52.41667,173.58333,AK
Siksatok (historical),52.43333,173.6,AK
Navy Town,52.84083,173.17556,AK
Ugtikun (historical),52.41667,173.58333,AK
Ugtumuk (historical),52.41667,173.58333,AK
Ukashik (historical),52.41667,173.58333,AK
@esjewett
esjewett / README.md
Last active February 15, 2019 14:04
Input lag demo
@esjewett
esjewett / README.md
Last active April 2, 2016 15:40
dc dataTable sorting example