Skip to content

Instantly share code, notes, and snippets.

View DexterShepherd's full-sized avatar

Dexter Shepherd DexterShepherd

View GitHub Profile
unbind C-b
set -g prefix C-a
set-window-option -g mode-keys vi
bind r source-file ~/.tmux.conf
set -g mouse on
set -g default-terminal "screen-256color"
set -as terminal-overrides ',xterm*:Tc:sitm=\E[3m'
if &compatible
set nocompatible " Be iMproved
endif
call plug#begin('~/.vim/plugged')
Plug 'jiangmiao/auto-pairs'
Plug 'jlanzarotta/bufexplorer'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'tomtom/tcomment_vim'
@DexterShepherd
DexterShepherd / disable-gatekeeper.md
Created November 3, 2019 20:08
Disable Gatekeeper for SuperDirt
@DexterShepherd
DexterShepherd / svg-json-thing.js
Created February 21, 2019 01:10
svg-json-thing.js
const svgson = require('svgson');
const fs = require('fs');
const svg = fs.readFileSync('./coordinates.svg').toString();
const ms = []
const ls = []
const json = {}
svgson.parse(svg).then(data => {
int r;
PVector l, v, c;
float vScale = 3;
void setup() {
size(500, 500);
r = 100;
l = new PVector(random(-r, r), random(-r, r));
v = new PVector(random(-1, 1), random(-1, 1));
c = new PVector(0, 0);
40 => int numGrains;
SndBuf grain[numGrains];
ADSR grainEnv[numGrains];
Gain granular => dac;
50000 => int startPos;
0.1 => float readRate;
1000 => int grainLengthMS;
grainLengthMS::ms => dur grainLength;