Skip to content

Instantly share code, notes, and snippets.

View smit1678's full-sized avatar
💭
🇮🇩

Nate Smith smit1678

💭
🇮🇩
View GitHub Profile
#!/bin/bash
# Uses Mapbox Wellknown https://github.com/mapbox/wellknown
# npm install -g wellknown
echo "POLYGON ((31.9204 -3.0145,31.9373 -3.0144,31.9372 -2.9977, 31.9206 -2.9977, 31.9204 -3.0145))" | wellknown > katoro.geojson
echo "POLYGON (( 31.9369 3.27183, 31.9595 3.27187, 31.9594 3.29441, 31.9368 3.29454,31.9369 3.27183))" | wellknown > dzaipi.geojson
echo "POLYGON ((29.6354 -4.8831, 29.6523 -4.8832, 29.6522 -4.8664, 29.6354 -4.8664 , 29.6354 -4.8831))" | wellknown > kigoma.geojson
@smit1678
smit1678 / index.html
Last active September 14, 2016 13:42
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Marker navigation from a marker menu</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.mapbox.com/mapbox.js/v2.4.0/mapbox.js'></script>
<link href='https://api.mapbox.com/mapbox.js/v2.4.0/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 43 columns, instead of 32 in line 1.
DATE-MODIFED,NAME,lat,lon,GEOM,SOURCE PRIMARY,SOURCE SECONDARY,RAW_DATA_ARCHIEVE_URL,PHYSICAL_ADDRESS,CONTACT_NUMBER,NATURE_OF_FACILITY1,NATURE_OF_FACILITY2,NATURE_OF_FACILITY,SCOPE_OF_SERVICE1,SCOPE_OF_SERVICE2,SCOPE_OF_SERVICE3,SCOPE_OF_SERVICE4,SCOPE_OF_SERVICE5,SCOPE_OF_SERVICE6,SCOPE_OF_SERVICE,OPERATION,INPATIENT_SERVICE1,INPATIENT_SERVICE2,INPATIENT_SERVICE,ANCILLIARY_SERVICES1,ANCILLIARY_SERVICES2,ANCILLIARY_SERVICES3,ANCILLIARY_SERVICES4,ANCILLIARY_SERVICES5,ANCILLIARY_SERVICES,ACTIVITIES1,ACTIVITIES2,ACTIVITIES3,ACTIVITIES4,ACTIVITIES5,ACTIVITIES6,ACTIVITIES7,ACTIVITIES,admin_staff,health_staff,STAFF,OWNERSHIP,OSM Node ID
2011-06-29T15:09:37Z,St. Sára Salkahazy Rutovu Hospital,-3.8811538,29.844847,-3.8811538 29.844847,OSM,Ministry of Public Health,http://www.fbpsanteburundi.bi/data/entity/82.html,MUZENGA BIBATE RN7,N/A,,Second referral hospital or General hospital,,,,,,Children / pediatrics,,,,,," full time beds, part time beds",,,,,None,",,,,None",Medicine and medical specialties,Surgery and surgi
gistup
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>External map layers</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.mapbox.com/mapbox.js/v2.2.3/mapbox.js'></script>
<link href='https://api.mapbox.com/mapbox.js/v2.2.3/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }

Devseed Office

Our office is located at 1714 14th St NW, Rear Entrance. Rear entrance is key; we're located in the alley behind 14th St. From the corner of 14th and R St, head west towards 15th St. Take the first alley on the right. We're about halfway down in the blue building with glass garage doors and a Mapbox sign out front.

date total
1/2/14 1
1/20/14 1
1/21/14 1
1/24/14 1
1/25/14 2
1/29/14 1
2/1/14 1
2/2/14 1
2/3/14 2
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Choropleth</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox.js/v2.0.0/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v2.0.0/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Choropleth</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox.js/v2.0.0/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v2.0.0/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
@smit1678
smit1678 / 0_reuse_code.js
Created July 15, 2014 13:16
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