Skip to content

Instantly share code, notes, and snippets.

View crucialfelix's full-sized avatar
💭
Building product, looking for consulting work

Chris Sattinger crucialfelix

💭
Building product, looking for consulting work
View GitHub Profile
@crucialfelix
crucialfelix / flash-red-on-error
Created June 28, 2012 11:12
Flash all windows RED on language error or server crash
// add this to your startup file
{
var flash = {
Window.allWindows.do { arg w;
var c;
c = w.background;
w.background = Color.red;
{ w.background = c; }.defer(0.5);
};
nil
@crucialfelix
crucialfelix / gist:5072896
Created March 2, 2013 19:41
Instruments that split audio signals and return multi chanel arrays/
// these return more than one track
// they take a stereo in and return an array of stereo outs
Instr("splits.two",{ arg audio=0.0,lpf=200, lprq=0.5,hipass=100;
var lo,hi;
lo = RLPF.ar( audio, lpf,lprq);
hi = HPF.ar( audio, hipass);
@crucialfelix
crucialfelix / .ctags
Created July 14, 2014 12:07
SuperCollider ctags file
--langdef=supercollider
--langmap=supercollider:.sc
--regex-supercollider=/^([A-Z]{1}[a-zA-Z0-9_]*) /\1/c,class/
--regex-supercollider=/^[[:space:]]*(\*[a-z]{1}[a-zA-Z0-9_]*) \{/\1/m,method/
--regex-supercollider=/^[[:space:]]*([a-z]{1}[a-zA-Z0-9_]*) \{/\1/m,method/
@crucialfelix
crucialfelix / gitignore
Created August 1, 2014 10:14
ignore tags files but do not ignore tags/ directories
# deep ignore both files and folders called 'tags'
tags
# un-ignore folders called 'tags'
!tags/
@crucialfelix
crucialfelix / angular-speedball.js
Last active August 29, 2015 14:06
Angular Speedball - a jasmine testing utility to eliminate boilerplate in testing
'use strict';
/**
*
* An Angular Jasmine testing utility
*
* @copyright 2013 Chris Sattinger
* MIT License
*
* automatically injects these services:
* '$httpBackend', '$rootScope', '$controller', '$compile'
@crucialfelix
crucialfelix / styles.less
Created October 27, 2014 09:33
Highlight active pane, active tab in Atom.io
// active pane
.pane {
.gutter,
ul.tab-bar {
opacity: 0.4;
}
}
.pane.active {
.gutter {
opacity: 1;
@crucialfelix
crucialfelix / supercollider.rb
Last active August 29, 2015 14:16
WIP homebrew formula to build supercollider latest version
class Supercollider < Formula
homepage "https://supercollider.github.io"
url "https://github.com/supercollider/supercollider.git", :using => :git
depends_on :xcode => :build
depends_on :macos => :lion
depends_on "cmake" => :build
depends_on "qt5" => :build
depends_on "readline" => :build
// sc.msg.status() returns this object:
// {
// call: [‘/status’],
// response: [‘/status.reply’]
// }
sc.server.boot().then(function(server) {
// initiate a call and response using that object:
server.callAndResponse(sc.msg.status())
.then(function(reply) { // returns a Promise
@crucialfelix
crucialfelix / atom-vim-mode-style.less
Last active September 16, 2021 18:39
Powerline style status bar and cursor styling for Atom vim-mode
// add or import these into your Atom styles.less
/****************** VIM MODE STATUS BAR ****************************************/
// green
@normal-bg: rgb(105, 238, 103);
// blue
@insert-bg: rgb(7, 193, 242);
// yellowish
@visual-bg: rgb(255, 206, 98);
@crucialfelix
crucialfelix / 3.7-changes
Last active January 17, 2016 10:57
supercollider-changelog-git-list
scsynth
-------
CoreAudio - Fix DriverStop function
Fix PingPong clicking bug
PortAudio: scale CPU load data to represent percentage
prevent empty newline on when dumping omitted /status message
prevent possible buffer overflow