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
emamd / mapshaper-getting-started.md
Last active October 22, 2024 21:50
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 mapshaper.org you can use.

Mapshaper command reference

Some practical examples

@emamd
emamd / simple-threejs.html
Created January 10, 2018 03:09
A simple three.js scene
<html>
<head>
<title>My first three.js app</title>
<style>
body { margin: 0; }
canvas { width: 100%; height: 100% }
</style>
</head>
<body>
<!-- This will be correct if you used npm to install three -->
@emamd
emamd / vr_links.md
Last active November 7, 2017 00:27
VR Links and resources
@emamd
emamd / latimes_vr_projects.md
Last active September 9, 2016 20:26
VR projects by the L.A. Times
@emamd
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,
"ignored_packages":
[
"Vintage"
],
"tab_size": 4,
"tabs_medium": true,
# 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
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