Skip to content

Instantly share code, notes, and snippets.

View reinvantveer's full-sized avatar

Rein van 't Veer reinvantveer

View GitHub Profile
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix dct: <http://purl.org/dc/terms/>.
@prefix ns1: <http://www.w3.org/2004/02/skos/core#>.
@prefix ns2: <http://purl.org/dc/terms/>.
@prefix ns3: <http://www.w3.org/ns/shacl#>.
@prefix n69: <https://www.rijksoverheid.nl/documenten/kamerstukken/2011/01/10/>.
@prefix n72: <https://www.kadaster.nl/documents/32706/37743/bag+handreiking+aansluiten/>.
@prefix n73: <https://www.kadaster.nl/documents/20838/87954/BAG+processenhandboek+2013/>.
@reinvantveer
reinvantveer / vm-resize-hard-disk.md
Last active June 28, 2020 14:13 — forked from christopher-hopper/vm-resize-hard-disk.md
Resize a Hard Disk for a Virtual Machine provisioned using Vagrant from a Linux base box to run using VirutalBox.

Resize a Hard Disk for a Virtual Machine

Our Virtual Machines are provisioned using Vagrant from a Linux base box to run using VirutalBox. If the Hard Disk space runs out and you cannot remove files to free-up space, you can resize the Hard Disk using some VirtualBox and Linux commands.

Some assumptions

The following steps assume you've got a set-up like mine, where:

@reinvantveer
reinvantveer / featurevalidator.js
Last active November 9, 2015 12:13
JavaScript Topology Suite wrapper functions to validate GeoJSON features
'use strict';
var jsts = require('jsts');
var geometryFactory = new jsts.geom.GeometryFactory();
var reader = new jsts.io.GeoJSONReader();
// Proper attribution:
// adapted from http://stackoverflow.com/questions/25017463/google-maps-polygons-self-intersecting-detection
var findSelfIntersects = function(geoJSONPolygon) {
var jstsGeometry = reader.read(geoJSONPolygon.geometry);
@reinvantveer
reinvantveer / niet-valide-atlas-verstedelijking
Created March 12, 2015 16:36
Niet-valide geometrieen atlas van de verstedelijking
select * from steden where ST_isValid(the_geom) = false;
101;"0106000020E610000001000000010300000007000000D400000066025A22C24E1740AF5DACD4DF974A40DC10FE3BC24E1740E7A23A11E1974A404CE76B27D54E17403D1F0C44E2974A400AFD025DEB4E17405A7CDE58E5974A405E5B4098EB4E17409B48F633E8974A40D725D334B54E17404C37A6ABE9974A40073C5FA3734E1740623581ABE8974A40D890E43F764E1740E0191C05E7974A404ED820B0AC4E17405530B42BE6974A408A25D791B74E1740CFE266F5E4974A4032FDB115AF4E1740939BF9DEE1974A40169AA0BEBC4E174036EADE11E1974A4066025A22C24E1740AF5DACD4DF974A403521B87E3F4B17404EE1B503CE974A401BE4929BFF4A17402D19CFEAE1974A40324993FADE4A17404DDCC8E6E0974A400291B87A264B17404D6FAF23CA974A40A7E9CA28624A17405CD9C9F5C6974A40548B52EA5C4A174024DF4606CA974A404BDDC9359B491740A925AE1CCA974A4076F0AD986C49174047F79DD5C5974A406066505F0A4917400C525C6FC3974A40D1FD5ACAC848174082255C3AC2974A40347F3EF9BD481740E5C2AE43C4974A409C400CEC974817408B314F13C4974A40259F6DAD97481740AECC7403C1974A4039AF6B816E481740D6CC3308C1974A4010C869A81F481740E3A4C3A7C0974A403DF56DB8EB471