Skip to content

Instantly share code, notes, and snippets.

View smit1678's full-sized avatar
💭
🇮🇩

Nate Smith smit1678

💭
🇮🇩
View GitHub Profile
@smit1678
smit1678 / index.html
Last active August 29, 2015 13:56
Global Access Map
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Custom Legend</title>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox.js/v1.6.1/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v1.6.1/mapbox.css' rel='stylesheet' />
@smit1678
smit1678 / index.html
Last active August 29, 2015 13:56
Global Access Map
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Custom Legend</title>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox.js/v1.6.1/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v1.6.1/mapbox.css' rel='stylesheet' />
## Steps to format and mount a new ebs
lsblk
sudo file -s /dev/device
sudo mkfs -t ext4 /dev/device_name
sudo mkdir mount_point
sudo mount device_name mount_point
apt-get update
apt-get install git -y
apt-get install unzip aria2 zip -y
apt-get install s3cmd -y
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Swipe Layers</title>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox.js/v1.6.2/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v1.6.2/mapbox.css' rel='stylesheet' />
#!/bin/bash
set -e
# Apt / NPM installs
add-apt-repository -y ppa:developmentseed/mapbox
apt-get update && apt-get -y upgrade
apt-get -y install libmapnik nodejs tilemill
apt-get -y --force-yes install ruby git libssl-dev
apt-get install -y unzip aria2 zip
@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
<!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; }
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