Skip to content

Instantly share code, notes, and snippets.

View mhermans's full-sized avatar

Maarten Hermans mhermans

View GitHub Profile
@mhermans
mhermans / rayrender_hiva.r
Last active October 11, 2019 11:13
generate R rayrender scene with HIVA logo
devtools::install_github('tylermorganwall/rayrender')
library(rayrender)
# generate rayrender scene with HIVA logo
generate_ground(depth=-1000, spheresize = 100000000, material = diffuse(color="#529fd3")) %>%
# H
add_object(cube(x = 0, y = 0, z = -600,
xwidth = 50, ywidth = 400, zwidth = 50, angle = c(0, 0, 0),
material = diffuse())) %>%
https://github.com/Zendaug/Mplus-Tools
https://github.com/istellar/LCA2xl
https://github.com/danielbkatz/MplusLCA/
https://github.com/martscht/MplusComparisons
https://github.com/anchorlytics/anchorMplus
https://github.com/danielbkatz/MPlus-LCA-auto
https://github.com/paul-buerkner/thurstonianIRT
https://www.tandfonline.com/doi/abs/10.1080/13645579.2019.1632026?journalCode=tsrm20
@mhermans
mhermans / brother_dcp7070dw_config
Created June 20, 2019 20:33
Brother DCP7070DW configuration on Debian Linux
apt-get install brscan4
brsaneconfig4 -q
Devices on network
0 DCP-7070DW "DCP-7070DW" I:192.168.1.102
brsaneconfig4 -a name=brother model=DCP-7070DW ip=192.168.1.102
brscan-skey -l
library(eurostat)
eu_nuts0 <- eurostat::get_eurostat_geospatial(resolution = "60", nuts_level = "0")
ggplot(eu_nuts0) + geom_sf()
qtm(eu_nuts0)
ggplot(eu_nuts0, aes(fill = id)) +
geom_sf() +
coord_sf(xlim = c(2500000, 6000000), ylim =c(1500000, 5300000), crs = 3035)
@mhermans
mhermans / gist:4959057
Last active September 5, 2018 19:49
schema -> turtle, Edamam recipe
# Source: getschema.org/microdataextractor?url=http://www.edamam.com/recipe/twentieth-century-cocktail-d0ecdc3a25d659e50177c42b3a3bc150&out=n3
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix schema: <http://schema.org/>.
<_:gs0>
rdf:type <http://schema.org/Recipe>;
schema:name "Twentieth Century Cocktail";
schema:url <http://www.saveur.com/article/Recipes/Classic-20th-Century-Cocktail>;
@mhermans
mhermans / neo4j_icij
Last active July 30, 2017 20:35
Graphing our way through the ICIJ offshore jurisdiction data
= Graphing our way through the ICIJ offshore jurisdiction data
:neo4j-version: 2.0.0
:author: Maarten Hermans
:twitter: @hermansm
'''
== Introduction
In 2013 the http://www.icij.org[International Consortium of Investigative Journalism] (ICIJ) released a subset of the leaked dataset on offshore jurisdictions to the public. This dataset contains ownership information about companies created in 10 offshore jurisdictions including the British Virgin Islands, the Cook Islands and Singapore. It covers nearly 30 years until 2010.
@mhermans
mhermans / snippet_trend_generate_smooth.r
Created June 3, 2017 10:21
R snippet: generate exaple trend data and fit loess smooth
library(dplyr)
library(ggplot2)
set.seed(1234)
d.trend <- data.frame(
year = seq(as.Date("1911/1/1"), as.Date("2010/1/1"), "years"),
female = seq(1,100)*runif(100,0,1),
male = seq(1,100)*runif(100,0,1))
d.trend$total = d.trend$male + d.trend$female
@mhermans
mhermans / destination_germany_analysis.ipynb
Last active May 1, 2017 19:09
Germany travel destination analysis
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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.