Skip to content

Instantly share code, notes, and snippets.

View smit1678's full-sized avatar
💭
🇮🇩

Nate Smith smit1678

💭
🇮🇩
View GitHub Profile
### Software
- sublime text http://www.sublimetext.com/
- screen sharing tool (skitch or monosnap): http://monosnap.com/
- open office: https://www.libreoffice.org/
- qgis: http://www.qgis.org/en/site/
- open refine: http://openrefine.org/
- tabula: http://tabula.nerdpower.org/
- Inkscape: http://www.inkscape.org/en/
- gimp: http://www.gimp.org/
- mapbox studio: https://www.mapbox.com/mapbox-studio/#darwin
#!/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
<!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' />
apt-get update
apt-get install git -y
apt-get install unzip aria2 zip -y
apt-get install s3cmd -y
## 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
@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' />
class ThreadXML(threading.Thread):
def __init__(self, queue):
threading.Thread.__init__(self)
self.queue = queue
def run(self):
while True:
#grabs file from queue
fn = self.queue.get()
#grabs file and processes
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>GeoJSON Marker from URL</title>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<script src='//api.tiles.mapbox.com/mapbox.js/v1.4.2/mapbox.js'></script>
<link href='//api.tiles.mapbox.com/mapbox.js/v1.4.2/mapbox.css' rel='stylesheet' />
.marker-cluster-small {
background-color: rgba(181, 226, 140, 0.6);
}
.marker-cluster-small div {
background-color: rgba(110, 204, 57, 0.6);
}
.marker-cluster-medium {
background-color: rgba(241, 211, 87, 0.6);
}