Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
# Diff two OSM changesets and output a list with
# node id's that are only in the original changeset
import re
def getIDs(f):
s = set()
for line in f:
@olafveerman
olafveerman / generate-bbox.js
Last active August 2, 2016 18:25
countries.json = a geojson with data from Natural Earth
'use strict';
const turf = require('turf');
const countries = require('./countries.json')
let bboxs = countries.features.map(function(feature) {
if (feature.properties.ISO_A2 !== '-99') {
return {
iso: feature.properties.ISO_A2,
name: feature.properties.ADMIN,
@olafveerman
olafveerman / pt-P0_05.topojson
Last active February 17, 2017 14:43
toposimplify -P 0.05
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@olafveerman
olafveerman / portugal-P0_005.topojson
Last active April 14, 2017 14:51
Comparing TopoJSON simplification of Portuguese administrative boundaries
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@olafveerman
olafveerman / sprint-calendar.md
Created May 30, 2017 17:29
DS Sprint Schedule - 2017
sprint from to
1 01/02/2017 01/13/2017
2 01/16/2017 01/27/2017
3 01/30/2017 02/10/2017
4 02/13/2017 02/24/2017
5 02/27/2017 03/10/2017
6 03/13/2017 03/24/2017
7 03/27/2017 04/07/2017
WARNING: [Bourbon] [Deprecation] `keyframes` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
Backtrace:
	node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss:10, in mixin `-bourbon-deprecate`
	node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss:17, in mixin `-bourbon-deprecate-for-prefixing`
	node_modules/bourbon/app/assets/stylesheets/css3/_keyframes.scss:3, in mixin `keyframes`
	node_modules/ui-seed/assets/styles/ui-seed/core/_animations.scss:9

WARNING: [Bourbon] [Deprecation] `transform` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
Backtrace:
@olafveerman
olafveerman / ram-workshop.md
Last active August 1, 2017 14:07
Notes for the RAM workshop