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 / 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 / mc_full_signup.html
Created March 18, 2017 07:32
Mailchimp signup forms HTML-code
<!-- Begin MailChimp Signup Form -->
<link href="//cdn-images.mailchimp.com/embedcode/classic-10_7.css" rel="stylesheet" type="text/css">
<style type="text/css">
#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }
/* Add your own MailChimp form style overrides in your site stylesheet or in this style block.
We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
</style>
<div id="mc_embed_signup">
<form action="//acv-kuleuven.us15.list-manage.com/subscribe/post?u=8e635106efc3d05747aab8aa9&amp;id=4fa4d66249" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div id="mc_embed_signup_scroll">
@mhermans
mhermans / r_docker_default_packages
Last active March 3, 2017 13:13
Listing default R packages for Docker image
fst
ggrepel
directlabels
openxlsx
survey
ggethemes
ggalt
leaflet
htmlwidgets
BelgiumMaps.StatBel
@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 / 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/
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.