This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make sure all work is committed, and then: | |
git lfs uninstall | |
git reset --hard | |
git lfs install | |
git lfs pull |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
A FastLED matrix example: | |
A simplex noise field fully modulated and controlled by itself | |
written by | |
Stefan Petrick 2017 | |
Do with it whatever you like and show your results to the FastLED community | |
https://plus.google.com/communities/109127054924227823508 | |
*/ | |
#include "FastLED.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# set expandtab ts=4 sw=4 ai fileencoding=utf-8 | |
# | |
# Author: PB | |
# Maintainer(s): PB | |
# License: (c) HRDAG 2019, GPL v2 or newer | |
# | |
# ----------------------------------------------------------- | |
# archiver/bin/getpix.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Authors: PB | |
# Maintainers: PB | |
# Copyright: 2018, HRDAG, GPL v2 or later | |
# ============================================ | |
R_OPTS=--no-save --no-restore --no-init-file --no-site-file | |
KNITR="rmarkdown::render('$<', output_format='md_document', output_dir='output/')" | |
all: output/some-file.tex \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myNum <- function(n) { | |
# use in markdown with variable some_number: | |
# `r myNum(some_number)` and the thousands separator is a | |
# nonbreaking thin space, which is ISO 30-1 | |
return(prettyNum(n, big.mark=' ')) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.get_running_name <- function() { | |
#' returns name of current script | |
if (interactive()) { | |
fname <- rstudioapi::getActiveDocumentContext()$path | |
} else { | |
# via commandArgs, look for file= | |
cmdArgs = commandArgs(trailingOnly = FALSE) | |
needle <- '--file=' | |
fname <- grep(needle, cmdArgs, value=TRUE) | |
} |