Skip to content

Instantly share code, notes, and snippets.

View nvkelso's full-sized avatar

Nathaniel V. KELSO nvkelso

View GitHub Profile
@ache051
ache051 / combine_mbtiles.py
Created December 15, 2020 22:58
Combine MBTiles
#-------------------------------------------------------------------------------
# Name: combine_mbtiles.py
# Purpose: Processes multiple sqlite .mbtiles files into single file (or by level? or by degree grids?)
#
# Author: joshn. Modified by ache015
#
# Created: 18/11/2014
#
# Last Modified: 10/11/2018
#-------------------------------------------------------------------------------
@dannguyen
dannguyen / README.md
Last active November 20, 2017 14:52
Example of using Mapzen Search API with prioritization for geocoding
@urschrei
urschrei / moved.md
Last active August 29, 2015 14:26
Comparing Mapzen's OSRM and Valhalla routing engine results for bicycle journeys in London
@rupey
rupey / mandelbrot.sql
Last active December 7, 2020 05:38
Mandelbrot plot in postgres
WITH RECURSIVE
x(i) AS ( VALUES (0)
UNION ALL SELECT i + 1
FROM x
WHERE i < 101),
Z(Ix, Iy, Cx, Cy, X, Y, I) AS (
SELECT
Ix,
Iy,
X :: FLOAT,
# coding=utf-8
''' Guess at ISO-3166-2 admin 1 codes for Natural Earth data.
Uses subdivision names from Ola Holmström’s iso-3166-2:
https://github.com/olahol/iso-3166-2.js/blob/master/data.csv
ne_10m_admin_1_states_provinces.csv is a direct CSV
export of Natural Earth admin-1 data as of Nov 8, 2012:
https://github.com/nvkelso/natural-earth-vector/tree/c97860331/10m_cultural
@mvexel
mvexel / maproulette-tutorial.md
Last active December 2, 2016 15:34
maproulette-tutorial.md

MapRoulette Challenge Tutorial (ßeta)

This tutorial is for MapRoulette 1 which is no longer active. Please see the MapRoulette 2 wiki for up to date documentation.

You have played MapRoulette. You have seen some of the fun challenges. If you are reading this, you are probably thinking: 'I have a great idea for the next MapRoulette challenge!'

maproulette

Great! That is exactly what I am here to explain step by step. So let's get started!

@shawnbot
shawnbot / index.md
Last active August 23, 2023 10:18
Testing web pages with Xcode's iOS Simulator

Finding the Simulator

You can test with the iOS Simulator that comes with Xcode. Navigate to the Xcode app in the Finder, right click and select "Show Package Contents":

screen shot 2013-05-06 at 12 04 27 pm

Then navigate to Contents > Applications, and open the shortcut to "iPhone Simulator" (it may be called "iOS Simulator" depending on which version of Xcode you're running):

screen shot 2013-05-06 at 12 05 45 pm

@ccstone
ccstone / BBEdit-TextWrangler_RegEx_Cheat_Sheet.txt
Last active October 26, 2024 06:05
BBEdit-TextWrangler Regular Expression Cheat-Sheet
————————————————————————————————————————————————————————————————————————————————————————————————————
BBEdit / BBEdit-Lite / TextWrangler Regular Expression Guide Modified: 2018/08/10 01:19
————————————————————————————————————————————————————————————————————————————————————————————————————
NOTES:
The PCRE engine (Perl Compatible Regular Expressions) is what BBEdit and TextWrangler use.
Items I'm unsure of are marked '# PCRE?'. The list while fairly comprehensive is not complete.
@hrwgc
hrwgc / README.md
Last active September 4, 2023 11:15
VIIRS Nighttime Lights 2012 processing
@migurski
migurski / dissolver.py
Created January 31, 2013 16:32
Dissolve small & residential roads into urban areas.
from sys import stderr
from osgeo import ogr
from time import time
from math import sqrt
def not_big(feature):
highway = feature.GetFieldAsString(feature.GetFieldIndex('type'))
return highway in ('residential', 'unclassified', 'road', 'minor')