Skip to content

Instantly share code, notes, and snippets.

View mhermans's full-sized avatar

Maarten Hermans mhermans

View GitHub Profile
@mhermans
mhermans / geopunt_gecode_example.ipynb
Last active June 2, 2016 19:02
Geocode addresses in Flanders&Brussels with free geocoder provided by the Flemish Government: http://loc.geopunt.be/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mhermans
mhermans / Eurofound_sector_autonomy_intensity_2014.csv
Created February 24, 2016 19:56
Eurfound (2014) data from scatterplot of per sector job autonomy and work intensity
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
work_intensity;job_autonomy;sector_label
25;71;Activities of households as employers
33;72;Agriculture
31;67;Other service activities
29;66;Social work activities
28;63;Education
36;63;Public administration
34;59;Residential activities
36;57;Retail
42;57;Accomodation
@mhermans
mhermans / Dockerfile
Created December 17, 2015 20:24
rgisgeo docker file
# R image with dev libs & packages for GIS
# =========================================
FROM rocker/hadleyverse
MAINTAINER "Maarten Hermans" [email protected]
# apt-get packages
# ----------------
RUN apt-get update && apt-get install -y --no-install-recommends \
@mhermans
mhermans / start_python.md
Last active March 20, 2017 04:49
A very opinionated Python getting-started guide

A very opinionated Python getting-started guide

Setup your Python packages environment

  • Install globally pip, package manager for Python packages.

Cadeautips Kerstmis 2016 - Hermans

Boeken

  • Brepoels, J. (2015, ed. 2) Wat zoudt gij zonder 't werkvolk zijn? De geschiedenis van de Belgische arbeidersbeweging 1830-2015. Van Halewyck. (link). ~30eu
  • Deferme, J. (2007) Uit de ketens van de vrijheid. Het debat over de sociale politiek in België, 1886-1914. UP Leuven. (link). ~25eu
  • Streeck, W. (2015) Gekochte tijd. De uitgestelde crisis van het democratisch kapitalisme. Leesmagazijn (link). ~25eu

Varia

@mhermans
mhermans / Dockerfile
Created November 15, 2015 23:10
Dockerfile for GPX-hiking visualisation blogpost
# R image with dev libs & packages for GIS
# =========================================
FROM rocker/hadleyverse
MAINTAINER "Maarten Hermans" [email protected]
# apt-get packages
# ----------------
RUN apt-get update && apt-get install -y --no-install-recommends \
Beste
Via dit email adres was u in het verleden geregisteerd voor de Sociodata-berichtendienst van de Vereniging voor Sociologie.
Deze dienst is recent terug opgestart. U kan zich _hier registreren_ indien u deze berichten graag opnieuw wenst te ontvangen.
Is dit niet langer het geval, of u bent onder een ander email adres geregistreerd, dan kan u deze email negeren. We sturen dan nog een herinnering, en schrappen vervolgens dit email adres van de Sociodata-mailinglijst.
mvg,
@mhermans
mhermans / zotero_box_match.py
Last active August 29, 2015 14:19
Python script to match Zotero group library metadata with Box-hosted ebook files
from boxsdk import Client, OAuth2 # https://github.com/box/box-python-sdk
from boxsdk.exception import BoxAPIException
from pyzotero import zotero # https://github.com/urschrei/pyzotero
import os.path
"""
This script scans a Box input-folder and a Zotero group-library, and matches the ebook PDF's
in the Box-folder with the metadata in the Zotero-library.
Matches are based on the SHA1 file checksum, which Box calculates and tracks automatically
@mhermans
mhermans / networkvis_hairballs.md
Last active June 2, 2016 19:03
Network visualisations: alternatives to hairball
@mhermans
mhermans / 20150227_rstudio_demoserver.md
Last active August 29, 2015 14:16
setup rstudio demo server

Add swap (walkthrough):

sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo swapon -s

start up docker: