Skip to content

Instantly share code, notes, and snippets.

View sleexyz's full-sized avatar

Sean Lee sleexyz

View GitHub Profile
1361128168399 0
1361128168965 1
1361128176878 1
1361128187370 0
1361133662207 1
1361135270652 1
1361135832663 1
1361142113140 0
1361142113511 1
1361154589276 0
#!/bin/bash
#DEVICE="wlp1s0"
DEVICE="wlan0"
ip -4 addr show "$DEVICE"|grep -oE '((1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\.){3}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])'|head -n 1
Site: https://csserver.exeter.edu/schedule
Page: account.php
-- Functionality: User Login
GET['login'] ==> Use login data
POST['username'] ==> Username of account
POST['password'] ==> Password of account
*** Cookies set in session:
(REQUIRED) exetertools_token ==> Login token
/*
* ALU
* Sean Lee 2014-04-02
*
* Complementary Chips implemented:
* - Mult: takes one bit and outputs 16 bits of the same value
* - Xor16: 16-bit Xor
* - Or16Way: 16-way Or
* - IsNegative: returns 1 iff MSB == 1
#!/bin/bash
# Loads overtone workflow
urxvt -e bash -c "cd $HOME/insane-noises; lein repl" &
urxvt -e bash -c "cd $HOME/insane-noises/src/insane_noises; vim core.clj"&
jackd -r -d alsa -r 44100 -P
@sleexyz
sleexyz / sss.scd
Last active August 29, 2015 14:21
self-similar signals
// ugen version
(
~fract = {|iterations = 10, baserate = 100|
Mix.kr(Array.fill(iterations, {|i| LFDClipNoise.kr(freq: baserate*(2**i), mul: 2**(iterations - (i + 1)))}))/(2**(iterations));
};
)
(
{
var plotarr = {
@sleexyz
sleexyz / feedback.scd
Created July 28, 2015 01:50
tuned feedback shenanigans
(
// osteophagia redux....
// 2015.03.31 ---> 2015.07.27
///
SynthDef(\rt, { |out=0|
var in, grainSize, mix, arr, pitchRatio, timeDispersion, pitchDispersion;
timeDispersion = MouseX.kr(0.0001, 10000, 1);
pitchRatio = MouseY.kr(0, 1);
pitchDispersion = 0;
in = SoundIn.ar(0);
@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
# 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
{
var t, output;
t = PulseCount.ar(Impulse.ar(8000));
}.play