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 / .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 / 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
@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
// 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 / 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
@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);
import React from 'react';
export const Cover = (props) => {
if (props.src) {
return <img className="mw-100 w-100 db" src={props.src} alt={props.alt || ''} />;
} else {
if (props.alt) {
return (
<div className="dt w-100 h-100 ba">
<div className="dtc v-mid tc f5 ttu tracked pa1">{props.alt}</div>
@crucialfelix
crucialfelix / export-quarks.scd
Created July 1, 2016 08:50
Scripts that were used to move Quarks into github

// Having downloaded all the quarks, load and interpret each .quark file and dump them all to quarks.json

var dir = "/Users/crucial/Desktop/DOING/quarks/quarks/DIRECTORY"; var all = (), f;

PathName(dir).filesDo({ arg f; var data; if(f.isFile, { data = f.absolutePath.loadPath; all[data['name']] = data;