Skip to content

Instantly share code, notes, and snippets.

@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 / scripted-tilemill-export.sh
Last active April 12, 2017 09:25
Bash script to batch export Tilemill projects
#!/bin/bash
#This script generates one export for each year of a Tilemill project to mbtiles format
#Instructions:
#Run using 'bash tilemill-export.sh [project-name]'
#For more info: http://flipside.org/notes/scripted-tilemill-export
#Assumptions
# - stylesheet = style.mss
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 / 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.
@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 / ogp-summit-proposal.md
Last active July 28, 2016 14:24
OGP summit - format for session proposals

What type of session would you like to propose?
More information about the formats is up on this Google Doc
Please send just one proposal per application.

  • Keynote
  • Workshop
  • Speed Geeking / Networking
  • Hackathon
  • Sprint
  • Round table
  • PechaKucha
#!/bin/bash
# Favicon and Apple Touch Icon Generator
#
# This bash script takes an image as a parameter, and uses ImageMagick to convert it to several
# other formats used on modern websites. The following copies are generated:
#
# * apple-touch-icon-144x144-precomposed.png
# * apple-touch-icon-114x114-precomposed.png
# * apple-touch-icon-57x57-precomposed.png
@olafveerman
olafveerman / if-colors
Created April 5, 2013 16:35
Colors IF
@0: #ffffd7;
@1: #F1C40F;
@2: #F39C12;
@3: #E67E22;
@4: #D35400;
@5: #E74C3C;
@6: #C0392B;
@7: #942C21;