Skip to content

Instantly share code, notes, and snippets.

View mar-wir's full-sized avatar
💭
Biochemical Cognition Instance #441-C Operational

Marco Wirthlin mar-wir

💭
Biochemical Cognition Instance #441-C Operational
View GitHub Profile
@mar-wir
mar-wir / init.vim
Created November 16, 2019 01:39 — forked from benawad/init.vim
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
"Plug 'tsony-tsonev/nerdtree-git-plugin'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter'
@mar-wir
mar-wir / interact_map.r
Last active April 27, 2020 13:23
Interactive maps {mapview, mapedit} without shiny
#https://gis.stackexchange.com/questions/253483/leaflet-tool-for-multiple-marker-selection-and-computation-of-summary
# devtools::install_github("r-spatial/mapedit")
library(sf) # for spatial data type representation
library(mapview) # for the raster data and quick viewing
library(mapedit) # for the interaction (selection of the data)
# create some mock data points in the vicinity of the raster layer
set.seed(42) # to be reproducible
dframe = data.frame(a = 1:50,
@mar-wir
mar-wir / multiple-git-hooks.sh
Created June 27, 2020 21:15 — forked from mjackson/multiple-git-hooks.sh
Run multiple scripts for the same git hook
#!/bin/sh
# This script should be saved in a git repo as a hook file, e.g. .git/hooks/pre-receive.
# It looks for scripts in the .git/hooks/pre-receive.d directory and executes them in order,
# passing along stdin. If any script exits with a non-zero status, this script exits.
script_dir=$(dirname $0)
hook_name=$(basename $0)
hook_dir="$script_dir/$hook_name.d"
@mar-wir
mar-wir / README.md
Created August 9, 2020 13:25 — forked from jslefche/README.md
ggplot2: theme_black()

Black theme for ggplot2

This is an additional theme for ggplot2 that generates an inverse black and white color scheme.

Example

ggplot(mtcars, aes(wt, mpg)) + geom_point()
# Add theme_black()
ggplot(mtcars, aes(wt, mpg)) + geom_point(color = "white") + theme_black()
@mar-wir
mar-wir / README.md
Created March 1, 2022 23:35 — forked from nimatrueway/README.md
Convert webp animations to gif preserving image quality (RGB = 24bit)