Skip to content

Instantly share code, notes, and snippets.

View joshkatz's full-sized avatar

Josh Katz joshkatz

  • The New York Times
  • New York, NY
View GitHub Profile
@joshkatz
joshkatz / .block
Created July 10, 2019 23:01 — forked from almccon/.block
So you want a bigger Alaska?
license: gpl-3.0
@joshkatz
joshkatz / .block
Created March 1, 2019 18:32 — forked from gka/.block
summer-heat
license: mit
@joshkatz
joshkatz / sotu.R
Created January 31, 2018 15:49
State of the Union WPM chart
needs(rvest, tidyverse, zoo)
df <- c('minutes', 'words') %>%
map(function(var) {
doc <- var %>%
sprintf(fmt = 'http://www.presidency.ucsb.edu/sou_%s.php') %>%
read_html()
doc %>%
html_node('table tr:nth-of-type(2) table') %>%
html_table(fill = T) %>%