Skip to content

Instantly share code, notes, and snippets.

View coderofsalvation's full-sized avatar

Coder of Salvation / Leon van Kammen coderofsalvation

View GitHub Profile
@coderofsalvation
coderofsalvation / checksum.sh
Created September 12, 2022 11:57
generate checksum from directory tree (unix / shell)
find . -type f -printf "%p %s\n" | LC_ALL=C sort | md5sum
# output: a71e7b59041f2db45adb105596519167 -
@coderofsalvation
coderofsalvation / index.html
Created September 7, 2022 13:12
Metaradio.at
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#">Metaradio</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="#link2" onclick="alert('todo')">About</a></li>
<li><a href="#link3" onclick="alert('todo')">Examples</a></li>
</ul>
@coderofsalvation
coderofsalvation / ASCIISTEP16.md
Last active September 24, 2024 21:43
ASCIISTEP16 - the pckeyboard standard of 16-step sequencers (RFC)

Version

v1.0

2022-08-01 draft (Leon van Kammen/coderofsalvation)
2022-09-01 ASCIISTEP16 implemented in milkytracker

What is ASCIISTEP16

@coderofsalvation
coderofsalvation / milkytracker-new-features.md
Last active August 30, 2022 09:40
new milkytracker features in the making

laptopfriendly instrument/sample/stepsize/orderlist keyboard navigation

(milkytracker keyboard layout)

extra pasting 'mix'-modes

@coderofsalvation
coderofsalvation / bundle.sh
Created August 23, 2022 16:33
simple sourcecode preprocessor-file-import-include bundler using awk
#!/bin/sh
awk '/^#include *".*"$/ {
i = index($0, "\"");
file = substr($0, i + 1, length() - i - 1);
while ((getline < file) == 1) print;
close(file);
next;
} 1' myfile.txt > myfile.bundled.txt
@coderofsalvation
coderofsalvation / wav2csound
Created July 27, 2022 07:49
convert wav 2 csound using awk
#!/bin/sh
# usage: ./wav2csound sample.wav >> mysong.csd
test -z $1 && {
echo "usage: wav2csound sample.wav";
echo " wav2csound sample.wav >> mysong.csd"
exit 0;
}
{
@coderofsalvation
coderofsalvation / example.zip
Last active August 2, 2022 06:26
tiddlywiki + redbean server (1.2MB)
This file has been truncated, but you can view the full file.
@coderofsalvation
coderofsalvation / test.sh
Created July 25, 2022 10:30
highlight color part in string awk bash
echo "0 astroids are hitting your house" | awk '( $1 > 0 ) { $1 = "\033[31m" $1 "\033[0m" } 1'
echo "10 astroids are hitting your house" | awk '( $1 > 0 ) { $1 = "\033[31m" $1 "\033[0m" } 1'
@coderofsalvation
coderofsalvation / README.md
Last active July 1, 2022 11:04
WebSpeechApi support in 2022

WebSpeechApi support in 2022

The browser/library support for speech is not great in my experiments:

browsers

  • Chrome 70
  • Firefox 96.0
  • Oculus browser
  • Brave 100.1
@coderofsalvation
coderofsalvation / batch.pd
Created June 28, 2022 11:45
batch file commandline puredata example
#N canvas 378 163 705 465 12;
#X obj 99 19 osc~ 440;
#X obj 99 319 writesf~;
#X obj 252 6 loadbang;
#X msg 123 105 open ./osc440.wav \, start;
#X msg 123 59 \; pd dsp 1 \;;
#X msg 252 266 stop;
#X obj 252 156 del 20000;
#X msg 308 256 \; pd quit \;;
#X text 292 201 <-- disconnect here in 3...2...1...;