Skip to content

Instantly share code, notes, and snippets.

View colinbdclark's full-sized avatar

Colin Clark colinbdclark

  • Lichen Community Systems Worker Cooperative Canada
  • Toronto, Ontario
View GitHub Profile
@colinbdclark
colinbdclark / test-data-layout.txt
Created July 13, 2012 10:24
Proposal for layout of test data in the GPII Universal repository
documentation/
examples/
preferences/
solutions/
matchMaker/
settingsHandlers/
transformer/
...
demos/
@colinbdclark
colinbdclark / gist:5707308
Created June 4, 2013 16:21
Sharing and extending SynthDefs
fluid.defaults("colin.am", {
gradeNames: ["flock.synth", "autoInit"],
synthDef: {
id: "carrier",
ugen: "flock.ugen.sinOsc",
freq: 440,
mul: {
id: "mod",
ugen: "flock.ugen.sinOsc",
rate: "control",
@colinbdclark
colinbdclark / gist:5935676
Created July 5, 2013 16:27
Creating Flocking synths in the Infusion IoC style
fluid.defaults("colin.sinSynth", {
gradeNames: ["flock.synth", "autoInit"],
synthDef: {
ugen: "flock.ugen.sinOsc",
freq: 440,
mul: 0.25
}
});
@colinbdclark
colinbdclark / gist:5935779
Created July 5, 2013 16:46
Synth and orchestra sharing and making IoC references within a synthDef.
fluid.defaults("colin.sinSynth", {
gradeNames: ["flock.synth", "autoInit"],
synthDef: {
ugen: "flock.ugen.sinOsc",
freq: 440,
mul: 0.25
}
});
@colinbdclark
colinbdclark / gist:6022369
Last active December 19, 2015 21:48
Restructuring the UIO Auxiliary Schema to support panel removal.
fluid.defaults("catOptions.auxSchema", {
gradeNames: ["fluid.uiOptions.auxSchema", "autoInit"],
auxiliarySchema: {
"namespace": "catOptions",
"templatePrefix": "../pages/catOptionsPanel/html/",
"catSize": {
"type": "catOptions.size",
"enactor": {
type: "catOptions.moreFoodEnactor"
},
@colinbdclark
colinbdclark / gist:6080076
Created July 25, 2013 14:12
prefsEditors repository layout
prefsEditors/
src/
discoveryTool/
pcp/
pmt/
shared/
enactors/
adjustors/
lib/
@colinbdclark
colinbdclark / gist:6417272
Created September 2, 2013 21:05
Dynamic component creation triggered by an event
fluid.defaults("colin.leapGrains", {
gradeNames: ["fluid.viewComponent", "autoInit"],
members: {
activeTips: {},
synths: []
},
components: {
leap: {
src/
framework/
preferences/
js/
<everything in here: https://github.com/fluid-project/infusion/tree/master/src/components/uiOptions/js>
components/
ui-options/
<tiny ui options stub here>
text-field-slider/
@colinbdclark
colinbdclark / gist:6815237
Last active December 24, 2015 14:49
Requirements for Accessible Development and Integration
1. Maintain a clear separation between the content and presentation layers of an application
a. CSS must be separate from HTML markup
b. CSS and HTML should be independent of the application's server-side and client-side code
2. Technical practices
a. Comprehensive support for ARIA in all JavaScript-enabled user interfaces
b. Validation of CSS, HTML, and code using appropriate W3C or third-party validators
c. Comprehensive support for WCAG 2.0 AA or higher through all user interfaces
d. All strings must be parameterized as properties files, JSON, or other parseable format for localization
@colinbdclark
colinbdclark / gist:8201964
Last active January 1, 2016 21:09
Flocking version of the first example in the Mark Polishook's SuperCollider FM synthesis tutorial
/*
// Original SuperCollider code.
(
SynthDef("fm1", {
arg bus = 0, freq = 440, carPartial = 1, modPartial = 1, index = 3, mul = 0.05;
// index values usually are between 0 and 24
// carPartial :: modPartial => car/mod ratio