Skip to content

Instantly share code, notes, and snippets.

(
// how many
n = 9;
// grid of nxn
~grid = 0!n!n;
// our process
~process = {1.0.rand2};
// install
Quarks.install("https://github.com/yotamorimoto/sc_ca.git");
Quarks.install("https://github.com/yotamorimoto/sc_sample.git");
// recompile class library
// before proceeding
// look
Pca1({2.rand}!512, 50).plot;
mogrify -path DESTINATIONFOLDER -filter Triangle -define filter:support=2 -thumbnail 1200 -unsharp 0.25x0.08+8.3+0.045 -dither FloydSteinberg -type Grayscale -colors 2 -posterize 136 -quality 82 -define jpeg:fancy-upsampling=off -define png:compression-filter=5 -define png:compression-level=9 -define png:compression-strategy=1 -define png:exclude-chunk=all -interlace none -colorspace sRGB SOURCEFOLDER/*
@chrisdiana
chrisdiana / opz-cheatsheet.md
Last active March 29, 2024 01:25
OP-Z Cheatsheet

OP-Z Cheatsheet

General

  • Play: Press Play
  • Stop: Press Stop
  • Sequence: Hold Trig + key
  • Sequence v2: Hold Rec + keys
  • Live Record: Hold Rec + Play + key/Play
  • Stop Recording: Press Rec
@ckipp01
ckipp01 / function-examples.js
Last active August 22, 2019 07:23
Javascript function examples
'use strict'
/*
This is meant to be a concise explanation on the difference between
functions declaration, function expressions, and es6 fat arrow functions
You should be able to just clone this or paste it in a file and run `node <filname>`
*/
/*
@echophon
echophon / orca_x_hydra.js
Last active September 28, 2022 21:05
orca_x_hydra.js
// Example of OSC control of Hydra video synth w/Orca programming language
// by Yancy Way (echophon)
//
// https://github.com/hundredrabbits/Orca
// https://github.com/ojack/hydra
// https://github.com/ojack/hydra-examples
// https://atom.io/packages/atom-hydra
//
// Prerequisites: Orca, Atom, Atom-hydra extension
//
@Lana-chan
Lana-chan / paws.pde
Last active March 8, 2019 19:01
Random Processing sketches
// Animated falling paw shapes
// originally posted as gist May 10, 2016
int pawcount = 50;
Paw[] paws = new Paw[pawcount];
float ang1, ang2;
void setup() {
size(800,600);
randomSeed(1994);
@rogeliodh
rogeliodh / x1ii_fw_pack.sh
Created January 20, 2017 22:32
script to repack Fiio's X1ii firmware files
#!/bin/sh
set -e
cd myfw
# mkyaffs2 from mkyaffs2 0.2.9_20120815
sudo ../mkyaffs2 fifo_rootfs fifo_rootfs.yaffs2
echo -n `md5sum fifo_rootfs.yaffs2 | cut -c1-32` > fifo_rootfs.yaffs2.md5
tar zcvf ../X1II.repacked.fw fifo_uimage fifo_uimage.md5 fifo_uimageesmt fifo_uimageesmt.md5 fifo_rootfs.yaffs2 fifo_rootfs.yaffs2.md5
@rogeliodh
rogeliodh / x1ii_fw_unpack.sh
Created January 20, 2017 22:31
script to unpack Fiio's X1ii firmware files
#!/bin/sh
set -e
mkdir -p myfw
tar zxvf X1II.fw -C myfw
# unyaffs2 from yaffs2utils is not working
#sudo ./unyaffs2 myfw/fifo_rootfs.yaffs2 myfw/fifo_rootfs
# Use unyaffs from ubuntu's unyaffs package (apt-get install unyaffs)
sudo unyaffs myfw/fifo_rootfs.yaffs2 myfw/fifo_rootfs
@geekman
geekman / myusbgadget
Created January 17, 2017 02:47
Pi Zero multiple USB gadgets minimal example
#!/bin/bash -e
modprobe libcomposite
cd /sys/kernel/config/usb_gadget/
mkdir g && cd g
echo 0x1d6b > idVendor # Linux Foundation
echo 0x0104 > idProduct # Multifunction Composite Gadget
echo 0x0100 > bcdDevice # v1.0.0