Skip to content

Instantly share code, notes, and snippets.

  • Pablo J. Boczkowski is a professor in the School of Communication at Northwestern University.
  • Umbreen Bhatti is the director of the KQED Lab, the northern California public media organization’s innovation lab.
  • Yvonne Leow is president of the Asian American Journalists Association.
  • Jennifer Coogan is chief content officer of Newsela.
  • Nikki Usher is an assistant professor at the George Washington University’s School of Media and Public Affairs.
  • Hossein Derakhshan is a journalist and analyst, and coauthor of Information Disorder: Toward an interdisciplinary framework for research and policy making.
  • Millie Tran is global growth editor at The New York Times. Stine Bauer Dahlberg is managing director, brand at The New York Times.
  • Raju Narisetti is CEO of Gizmodo Media Group.
  • Lam Thuy Vo is a data reporter at BuzzFeed News.
  • Amie Ferris-Rotman is Foreign Policy’s Moscow correspondent and founder of Sahar Speaks.
@cjdd3b
cjdd3b / hp-data-sample.json
Created June 8, 2018 19:39
Sample Strib homepage tracker JSON.
[
{
"html_raw":"<div class=\"tease is-lead \">\n<h3><a class=\"tease-headline\" data-content-id=\"484959641\" data-linkname=\"Accused football players sue U over sexual misconduct case\" data-linktype=\"headline\" data-modulename=\"homepage left\" data-moduletype=\"zone1-well-left\" data-position=\"0-1-lead\" href=\"http://www.startribune.com/accused-football-players-sue-university-of-minnesota-over-sexual-misconduct-case/484959641/\">Accused football players sue U over sexual misconduct case</a></h3>\n<div class=\"tease-timestamp js-timestamp \" data-st-timestamp=\"2018-06-08T18:21:57.000Z\">\n\n 1:21pm\n </div>\n<div class=\"tease-summary \">The lawsuit against the University of Minnesota seeks unspecified damages for \"being falsely cast as sex offenders.\"</div>\n<div class=\"tease-related\">\n<ul class=\"tease-list\">\n<li class=\"tease-list-item related-icn-article\">\n<a class=\"tease-list-item-link\" data-linkname=\"Report: U followed rules in football suspensions, cites 'break
@cjdd3b
cjdd3b / make_mn_precincts.sh
Created July 19, 2018 16:44
Make a Minnesota precinct map with 2014 turnout data
wget ftp://ftp.gisdata.mn.gov/pub/gdrs/data/pub/us_mn_state_sos/bdry_votingdistricts/shp_bdry_votingdistricts.zip && \
unzip shp_bdry_votingdistricts.zip && \
shp2json bdry_votingdistricts.shp | \
ndjson-join --left 'd.properties.COUNTYCODE + d.properties.PCTCODE' 'd.county_id + d.precinct_num' <(ndjson-split 'd.features') <(csv2json -n precincts_2014.txt -r ";") | \
ndjson-map 'Object.assign(d[0].properties, d[1]), d[0]' | \
ndjson-reduce 'p.features.push(d), p' '{type: "FeatureCollection", features: []}' | \
geoproject 'd3.geoIdentity().reflectY(true).fitSize([960, 960], d)' | \
geo2topo precincts=- | \
toposimplify -f -p 0.05 | \
topoquantize 1e5 > ./mn-precincts-albers-d3.json && \