Skip to content

Instantly share code, notes, and snippets.

View sleexyz's full-sized avatar

Sean Lee sleexyz

View GitHub Profile
mutation is fast to write
immutable is slow to write, but in that way safer
@sleexyz
sleexyz / qlcplus.nix
Last active May 21, 2016 07:23
kinda works now...! ( i didn't install phase, just make and make installed)
{ stdenv, fetchurl, pkgconfig, ccache, makeWrapper, qmake4Hook, qt4, libftdi1, alsaLib, libudev, libusb}:
stdenv.mkDerivation rec {
name = "qlcplus-${version}";
version = "4.10.3";
src = fetchurl {
url = "http://www.qlcplus.org/downloads/${version}/qlcplus_${version}.tar.gz";
sha256 = "1mrhlqvbgs8qnj7qik70a3gywvmck1malygqi0hm403j5w6f2bgb";
};
@sleexyz
sleexyz / live-code.md
Last active May 11, 2016 08:26
Context-Free live-coding

A Comparison of Interfaces: Programming Languages vs. Musical Instruments

As interfaces, musical instruments are simple at their individual components, yet are evidently capable of much improvisatory creative realtime expression by a human. On the other hand, progamming languages are complex interfaces that are infinitely more expressive when "integrated" over time, but regardless perhaps not as capable of realtime creative expression.

Is this a inevitable tradeoff?

As interfaces, how are instruments different from live-coding?

How can use these differences to make programming more expressive?

@sleexyz
sleexyz / index.js
Created April 11, 2016 00:55
mfcc?
const WIDTH = window.innerWidth;
const HEIGHT = window.innerHeight;
let multiplied = false;
let canvas = document.getElementById("canvas");
canvas.width = WIDTH;
canvas.height = HEIGHT;
let canvasCtx = canvas.getContext("2d");
@sleexyz
sleexyz / configuration.nix
Last active January 9, 2016 03:20
configuration.nix (works?)
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
];
boot.extraModprobeConfig = ''
options hid_apple fnmode=2
@sleexyz
sleexyz / nixos_on_macbook.md
Last active February 4, 2025 18:06
Installing NixOS on a Macbook
@sleexyz
sleexyz / main.rs
Last active January 3, 2016 19:40
lisp interpreter
/// # Make-A-Lisp interpreter
extern crate rl_sys; // GNU readline bindings
extern crate regex;
use regex::Regex;
use std::str::FromStr;
use std::collections::HashMap;
{
var t, output;
t = PulseCount.ar(Impulse.ar(8000));
}.play
# Install homebrew
command -v brew > /dev/null 2&>1 || ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install ranger
brew install ranger
# Add imgcat to ~/bin
test -d $HOME/bin || mkdir $HOME/bin
wget -O ~/bin/imgcat https://raw.githubusercontent.com/gnachman/iTerm2/master/tests/imgcat
@sleexyz
sleexyz / supercollider on asus chromebook flip (cb100pa).md
Last active August 29, 2015 14:27
SuperCollider on ASUS Chromebook Flip

This guide will help you get supercollider running on your ASUS Chromebook Flip cb100pa in a browser tab!

1. Install crouton

Enable developer mode, download crouton, and install Ubuntu Trusty to a microsd card with just the core target:

sudo sh ~/Downloads/crouton -p /media/removable/SD\ Card/crouton -t core -r trusty