Skip to content

Instantly share code, notes, and snippets.

View emamd's full-sized avatar

Armand Emamdjomeh emamd

  • The Washington Post
  • Washington, DC
View GitHub Profile
emamd /
Last active March 9, 2021 19:46
Getting started with mapshaper

Getting started with mapshaper

Mapshaper is a javascript library for editing GIS data formats including GeoJSON, TopoJSON, Shapefiles and others. It's easier to install and can replace some of the functionality of ogr2ogr, allowing for integration into node-based workflows.

There's also an online gui at you can use.

Mapshaper command reference

Some practical examples

emamd / simple-threejs.html
Created January 10, 2018 03:09
A simple three.js scene
<title>My first three.js app</title>
body { margin: 0; }
canvas { width: 100%; height: 100% }
<!-- This will be correct if you used npm to install three -->
emamd /
Last active September 9, 2016 20:26
VR projects by the L.A. Times
emamd /
Last active November 7, 2017 00:27
VR Links and resources
# Convert movie frames to jpgs
ffmpeg -i {{MOVIE_FILE}} -r 5 -qscale 0 '{{OUTPUT_FILENAME}}-%03d.jpg'
# Convert jpgs to gif
convert -delay 10 -loop 0 -layers Optimize +map frames/*.jpg frames/{{OUTPUT_FILENAME}}.gif
emamd / 0_reuse_code.js
Last active August 29, 2015 14:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
emamd / sublime_settings.txt
Last active April 9, 2016 19:37
Sublime Settings
"color_inactive_tabs": true,
"color_scheme": "Packages/Theme - Afterglow/Afterglow.tmTheme",
"font_size": 10,
"tab_size": 4,
"tabs_medium": true,