Skip to content

Instantly share code, notes, and snippets.

View CBSti's full-sized avatar

Christoph Stiehm CBSti

  • Göttingen, Germany
View GitHub Profile
@CBSti
CBSti / recursive_search_microsoft365R
Last active June 14, 2023 07:06
R Function for recursive search of directories queried via the Microsoft365R package
library(Microsoft365R)
library(tidyverse)
list_files_recursive <- function(folder_path) {
files <- drv$list_items(folder_path) %>%
mutate(path = folder_path,
checked = ifelse(isdir == F, T, F))
while(any(files$checked == F)) {
for (id in files[!(files$checked), "id"]) {
@CBSti
CBSti / Installation guide for SSJ Library in GroIMP
Last active March 20, 2019 14:40 — forked from atomfrede/plugin.properties
SSJ Library as a plugin in GroIMP
1. Download latests binaries in zip from https://github.com/umontreal-simul/ssj
2. Unzip in GroIMP/plugins folder (Ubuntu /usr/share/GroIMP/), keeping the folder structure from the zip
3. Move the files from GroIMP/plugins/ssj-3.3.1/lib to GroIMP/plugins/ssj-3.3.1/lib
4. Place the files plugin.properties and plugin.xml in the GroIMP/plugins/ssj-3.3.1 folder
There are still problems with some packages when trying to reproduce the examples from http://umontreal-simul.github.io/ssj/docs/master/examples.html
The RNGs relying on different distributions however work now.
@CBSti
CBSti / geoRefPz.R
Created July 11, 2018 11:45
Georeferenzierung Parzellenplan
# ===
# Funktionen für den Geodatenimport in FastWood
# ===
# lib
# install.packages("dplyr")
# install.packages("tidyr")
# install.packages("shapes")