Skip to content

Instantly share code, notes, and snippets.

s = require 'sequins'
m = midi.connect(1)
function init()
params:add_number("filter","filter",0,127,64)
params:set_action("filter", function(x) jp("vcf_f",x) end)
end
#include <stdio.h>
#include <stdint.h>
struct state {
uint16_t x;
uint16_t y;
uint16_t z;
};
/// u-law
(
Routine { s = Server.default.waitForBoot;
// this N determines lookup table resolution
n = 512;
~unit = Array.fill(n, {|i| i.linlin(0, n-1, -1, 1) });
///////////////////////////////
#!/bin/bash
# This script takes a remote repository and merges it into
# the current one as a subdirectory
set -e
if [ -z "$1" ]
then
echo "Usage:"
@stelcheck
stelcheck / 01-runner.js
Last active March 31, 2025 07:41
REPL example for electron
'use strict'
const net = require('net')
const chalk = require('chalk')
const path = require('path')
const cp = require('child_process')
const rimraf = require('rimraf')
function getPath() {
@basham
basham / css-units-best-practices.md
Last active October 26, 2025 18:37
CSS Units Best Practices

CSS units

Recommendations of unit types per media type:

Media Recommended Occasional use Infrequent use Not recommended
Screen em, rem, % px ch, ex, vw, vh, vmin, vmax cm, mm, in, pt, pc
Print em, rem, % cm, mm, in, pt, pc ch, ex px, vw, vh, vmin, vmax

Relative units

Relative units