Skip to content

Instantly share code, notes, and snippets.

@trentgill
trentgill / chance.lua
Last active November 15, 2023 01:29
timeline chance
--- some possible implementations of a probable function
-- really comes down to whether it's a timeline native behaviour
-- or if we just want a general fn to a wrap an application with chance
-- original version without chance
notesss = { 1, kick
, 1, {ii.wsyn.play_note, s{0,-12}, 2}
}
-- tl.chance is a function that takes a probability, and an action
@trentgill
trentgill / sequins_arith.lua
Created November 14, 2021 05:01
sequins_arithmetic
-- base sequins
s1 = s{0,4,7}
s1(),s1(),s1() --> 0, 4, 7
-- apply a pattern 'transformer' function to maybe add an octave
s1:fn(function(n) return (n>5) and n or n+12 end)
s1(),s1(),s1() --> 12, 16, 7
@swannodette
swannodette / FourteenBitCC.sc
Created August 4, 2020 09:44 — forked from carltesta/FourteenBitCC.sc
14-bit MIDI Handler for SuperCollider
FourteenBitCC {
/*
//Use Case:
MIDIIn.connectAll;
~x = FourteenBitCC.new("x", 72, 104);
~x.func = {|val| ("x: "++val).postln};
//MPE Example with Sensel Morph
MIDIIn.connectAll
@ftrvxmtrx
ftrvxmtrx / orca.nix
Last active April 24, 2022 10:43
A Nix expression to build and install orca-c on NixOS
# nix-build -E 'with import <nixpkgs> {}; callPackage ./orca.nix {}'
{ stdenv, ncurses, portmidi }:
stdenv.mkDerivation rec {
name = "orca";
src = ./.;
buildInputs = [ ncurses portmidi ];
enableParallelBuilding = true;
@vikramrojo
vikramrojo / design-ops-playbook.md
Created May 10, 2018 04:50
A collection of tools and practices to aide design organizations.

Design Operations

Within a product organization, a number of workflow and environmental factors affect the effectiveness and impact of design work. Design operations manages aspects of culture and process, allowing designers to focus on execution while expanding the range of design's scope.

Design operations tackles common product challenges like;

  • interface consistency
  • clarifying specification
  • user testing
  • developer handoffs

It addresses these factors by managing and communicating aspects of the design workflow like;

@VladimirPal
VladimirPal / neomuttrc
Last active March 30, 2024 11:59
Minimal neomutt config for gmail imap
set imap_user="mail.vpal@gmail.com"
set imap_pass=`/usr/bin/security find-generic-password -w -a 'mail.vpal@gmail.com' -s 'Gmail'`
set folder=imaps://imap.gmail.com/
set spoolfile=+INBOX
set record="+[Gmail]/Sent Mail"
set postponed="+[Gmail]/Drafts"
# https://www.neomutt.org/guide/reference search sleep_time for additional info
set sleep_time=0 # be faster
@spinus
spinus / config.nix
Created July 8, 2017 16:15
~/nixpkgs/config.nix
let
ver = "20170527";
in
{
allowUnfree = true;
allowBroken = true;
firefox = {
enableGoogleTalkPlugin = true;
enableAdobeFlash = true;
icedtea=true;
@dcode
dcode / GitHub Flavored Asciidoc (GFA).adoc
Last active April 20, 2024 13:55
Demo of some useful tips for using Asciidoc on GitHub

GitHub Flavored Asciidoc (GFA)

Notes on Building & Uploading Twigs Alt Firmware

This is what I've used to build and upload Twigs using OSX 10.11.4

This is the AVR interface I'm using

Install GCC ARM Toolchain

brew tap PX4/homebrew-px4
@Pitometsu
Pitometsu / configuration.nix
Last active July 11, 2023 18:58
NixOS system config
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
rec {
imports =