Skip to content

Instantly share code, notes, and snippets.

@wboykinm
wboykinm / zcta_accuracy.csv
Last active July 7, 2017 20:56
Fraction of residential addresses in each state where ZIP Code disagrees with ZIP Code Tabulation Area (ZCTA)
state disagreement
AK 0.010694866
AL 0.018366074
AR 0.018639233
AZ 0.01110696
CA 0.007925225
CO 0.008944289
CT 0.008035614
DC 0.029248933
DE 0.014817887
Zoom Tile size at equator (km) Resolution at equator (m)
0 22568 88155
1 11284 44078
2 7656 29904
3 4577 17881
4 2443 9544
5 1244 4861
6 625 2442
7 313 1223
@subfuzion
subfuzion / curl.md
Last active May 9, 2024 18:17
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

console.log('Loading event');
var AWS = require('aws-sdk');
var dynamodb = new AWS.DynamoDB();
exports.handler = function(event, context) {
console.log("Request received:\n", JSON.stringify(event));
console.log("Context received:\n", JSON.stringify(context));
var tableName = "OurBlogDemo";
var datetime = new Date().getTime().toString();
@samuelestabrook
samuelestabrook / no_crash_spatial_join.py
Last active August 29, 2015 14:26
Open source stable spatial join for big data
# open source spatial join script
# fiona and shapely scripting adapted from ThomasG77's comment from:
# http://gis.stackexchange.com/questions/119374/intersect-shapefiles-using-shapely
#
# import libraries
import fiona, rtree, os, shapefile
from shapely.geometry import shape, mapping
from os.path import isfile
@emilyeros
emilyeros / tracing_khayelitsha.md
Last active September 14, 2015 19:12
OSM Tracing Guide for Khayelitsha, South Africa

#OSM Tracing Guide for Khayelitsha, South Africa

Khayelitsha is a slum in Cape Town, South Africa, where the American Red Cross and its partners will be piloting a solar-powered fire sensor system. Fires regularly occur in urban slums like Khayelitsha, often resulting from indoor stove use, trash burning, faulty wires and residents trying to keep warm. Evacuation can be very difficult, making fires a very dangerous event.

The results of this mapping will guide fire sensor program decisions/planning and will be used by firefighters during their response operations.

This tracing guide focuses on the most important features in the area: buildings and roads.

##Getting started

@dalekunce
dalekunce / mac_gis_setup.md
Last active July 29, 2023 22:18
Yosemite GIS Machine Setup

Mac OS X GIS Setup

OS X Preferences


# Expand save panel by default
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true

This is my default career advice for people starting out in geo/GIS, especially remote sensing, adapted from a response to a letter in 2013.

I'm currently about to start a Geography degree at the University of [Redacted] at [Redacted] with a focus in GIS, and I've been finding that I have an interest in working with imagery. Obviously I should take Remote Sensing and other similar classes, but I'm the type of person who likes to self learn as well. So my question is this: What recommendations would you give to a student who is interested in working with imagery? Are there any self study paths that you could recommend?

I learned on my own and on the job, and there are a lot of important topics in GIS that I don’t know anything about, so I can’t give comprehensive advice. I haven’t arrived anywhere; I’m just ten minutes ahead in the convoy we’re both in. Take these recommendations critically.

Find interesting people. You’ll learn a lot more from a great professor (or mentor, or friend, or conference) o