Skip to content

Instantly share code, notes, and snippets.

View slattery's full-sized avatar

Mike Slattery slattery

View GitHub Profile
@slattery
slattery / README.md
Last active March 6, 2020 17:30
topojson with regions, subregions, and countries from 50m natural earth source

Source: https://raw.githubusercontent.com/nvkelso/natural-earth-vector/master/geojson/ne_50m_admin_0_countries.geojson Clues: https://medium.com/@mbostock/command-line-cartography-part-2-c3a82c5c0f3 Commands:

ndjson-split 'd.features' \
 < ne_50m_admin_0_countries.geojson \
 | ndjson-filter 'd.properties.ISO_A3 !== "ATA"' \
 | ndjson-filter 'd.properties = {ISO_A3: d.properties.ISO_A3, ISO_N3: d.properties.ISO_N3, REGION_UN: d.properties.REGION_UN, SUBREGION: d.properties.SUBREGION, NAME: d.properties.GEOUNIT, REGION_WB: d.properties.REGION_WB, CONTINENT: d.properties.CONTINENT }' \
 | geo2topo -n countries=- \
@slattery
slattery / embedded-file-viewer.md
Created February 7, 2020 14:37 — forked from tzmartin/embedded-file-viewer.md
Embedded File Viewer: Google Drive, OneDrive

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')

http://view.officeapps.live.com/op/view.aspx?src=[OFFICE_FILE_URL]

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[OFFICE_FILE_URL]' width='px' height='px' frameborder='0'>
</iframe>

OneDrive Embed Links

@slattery
slattery / README.md
Last active May 13, 2019 20:36
pantheon-drops8ex-noci.mk
@slattery
slattery / .block
Last active April 16, 2019 13:32 — forked from HarryStevens/.block
World Tour
license: gpl-3.0
@slattery
slattery / .block
Created April 5, 2019 22:51 — forked from dianaow/.block
Vega-lite: Stacked bar chart of US Army Infantry Casualties of Vietnam War
license: mit
@slattery
slattery / miz_spokes_lc.json
Last active March 22, 2019 15:02
mizstruct
{
"nodes": [
{"group": 0, "id": "Climate Change and Sustainability", "radius": 15},
{"group": 0, "id": "Conservation", "radius": 3},
{"group": 0, "id": "Environmental Communications", "radius": 6},
{"group": 0, "id": "Environmental Policy, Policy Analysis, and Economics"},
{"group": 0, "id": "Forest Ecology and Management", "radius": 10},
{"group": 0, "id": "Urban Science and Practice", "radius": 6},
{"group":1, "id":"Center for Business and the Environment at Yale"},
{"group":1, "id":"Global Institute of Sustainable Forestry"},
@slattery
slattery / .block
Last active March 22, 2019 14:51 — forked from XavierGimenez/.block
Grouping nodes in a Force-Directed Graph (many flavored)
license: gpl-3.0
height: 600
{
"nodes": [
{"group": "Topic", "id": "Climate Change and Sustainability", "radius": 15},
{"group": "Topic", "id": "Conservation", "radius": 3},
{"group": "Topic", "id": "Environmental Communications", "radius": 6},
{"group": "Topic", "id": "Environmental Policy, Policy Analysis, and Economics"},
{"group": "Topic", "id": "Forest Ecology and Management", "radius": 10},
{"group": "Topic", "id": "Urban Science and Practice", "radius": 6},
{"group":"Spoke", "id":"Center for Business and the Environment at Yale"},
{"group":"Spoke", "id":"Global Institute of Sustainable Forestry"},
@slattery
slattery / .block
Created March 14, 2019 20:34 — forked from nstets/.block
ischool-geo-viz-template
license: mit
@slattery
slattery / README.md
Created March 14, 2019 20:31 — forked from danswick/README.md
CSV on a GL map!

Using @tmcw's csv2geojson to add points from a CSV to a Mapbox GL JS map.