Skip to content

Instantly share code, notes, and snippets.

View esisa's full-sized avatar

Espen Oldeman Lund esisa

View GitHub Profile
/**
Simple script to transform coordinates from WGS84 Geographic to UTM Zone 33N.
Based on Holsen.js, which in turn is based on "Holsens småprogrammer"
License: MIT
Written by: Atle F. Sveen
**/
var toUtm33 = (function () {
'use strict';
#!/bin/bash
# Settings: edit these as needed
PROJECT_NAME="test"
OUTPUT_DIRECTORY="~/Documents/MapBox/export/"
# first change into TileMill code directory
cd /Applications/TileMill.app/Contents/Resources/
# hint: use http://bboxfinder.com/ to get bounds in lon/lat
@akhenakh
akhenakh / gist:3376839
Created August 17, 2012 07:57
negative float for flask
from werkzeug.routing import NumberConverter, ValidationError
class NegativeFloatConverter(NumberConverter):
regex = r'\-?\d+\.\d+'
num_convert = float
def __init__(self, map, min=None, max=None):
NumberConverter.__init__(self, map, 0, min, max)
app.url_map.converters['float'] = NegativeFloatConverter