Skip to content

Instantly share code, notes, and snippets.

@jtdp
jtdp / gist:5443498
Last active March 5, 2025 15:32
Revert file permission changes in local git repository.. Very useful when you change permissions due to working on a samba share. Lifted from: http://stackoverflow.com/questions/2517339/git-how-to-recover-the-file-permissions-git-thinks-the-file-should-be
git diff -p \
| grep -E '^(diff|old mode|new mode)' \
| sed -e 's/^old/NEW/;s/^new/old/;s/^NEW/new/' \
| git apply
@trentgill
trentgill / bouncy.lua
Last active October 8, 2022 18:55
lil demo of ASL creating simple decaying oscillator tones
--- bouncy
-- tiny demo of ASL's dyn, generating a stream of bass notes from crow
-- little sequins of frequencies
PIT = sequins{ 110
, 110*1.5
, 110*1.25
, 110*1.666
, 110*1.333
}
@trentgill
trentgill / maps_jf.lua
Created August 18, 2021 15:21
emulating just friends with a crow ASL
--- maps: S2E4 dynamic mutation
-- just friends emulator in ASL
function init()
output[1](oscillate( dyn{freq=800}:mul(0.8) + 120, dyn{lev=5}:mul(0.98)))
end
HLUT = {1,2,3,4} -- list of harmonics to 'Intone' toward
-- v (0..1): 0 == all at f, 1 == all at HLUT multiples of f.
function intone(f, v)
@alanholding
alanholding / vcv_rack_modules_by_count.py3
Created September 5, 2021 12:54
Outputs a CSV file with the counts of plugins in VCV Rack patch files.
'''
2021-09-05
Outputs a CSV file with the counts of plugins in VCV Rack patch files.
'''
import os
import json
import csv
def get_list_of_vcv_rack_patches(patches_directory):