Skip to content

Instantly share code, notes, and snippets.

View drart's full-sized avatar

Adam Tindale drart

View GitHub Profile
/**
* Processing brush for SyntaxHighlighter, updated for version 3.0
*
* SyntaxHighlighter is at http://alexgorbatchev.com/SyntaxHighlighter
*
* @copyright
* Copyright 2011 Colin Mitchell colin@muffinlabs.com
*
* @license
* Licensed under The Do What The Fuck You Want To Public License (WTFPL)
@benjamine
benjamine / README.mdown
Created May 30, 2011 16:04 — forked from mathewbyrne/README.mdown
An asynchronous method for embedding gists in an HTML document using jQuery.

A quick jQuery plugin for asynchronously embedding a gist in an HTML document.

There are a couple of ways to use it. The simpler way is replacing all Gist links in document by their embedded version:

<script>$($.gist);</script>

All links that point to a gist, or gist file will be replaced by the corresponding embedded gist, or gist file.

Gist link replacement can also be called on a container element:

@C4Examples
C4Examples / C4WorkSpace.m
Created July 24, 2012 15:44
Line, Triangles & Polygons
//
// C4WorkSpace.m
// Examples
//
// Created by Travis Kirton on 12-07-23.
//
#import "C4WorkSpace.h"
@C4Examples
C4Examples / C4Workspace.m
Created February 21, 2013 22:07
C4Control removeFromSuperview:
//
// C4WorkSpace.m
// Examples
//
// Created by Greg Debicki.
//
#import "C4WorkSpace.h"
@implementation C4WorkSpace {
@C4Examples
C4Examples / C4Workspace.m
Created February 21, 2013 22:16
C4Control shadowPath
//
// C4WorkSpace.m
// Examples
//
// Created by Greg Debicki.
//
#import "C4WorkSpace.h"
@implementation C4WorkSpace {
@bradcrawford
bradcrawford / feedly_export_saved_for_later
Last active February 26, 2024 07:07
Simple script that exports a users "Saved For Later" list out of Feedly as a JSON string
// Simple script that exports a users "Saved For Later" list out of Feedly
// as a JSON string.
//
// This was intended for use in the Google Chrome's "Inspector" tool so your
// mileage may vary if used in other contexts.
//
// Format of JSON is as follows:
// [
// {
// title: "Title",
@gmccreight
gmccreight / master.vim
Last active September 23, 2023 08:41
A script that gives you a playground for mastering vim
" copy all this into a vim buffer, save it, then...
" source the file by typing :so %
" Now the vim buffer acts like a specialized application for mastering vim
" There are two queues, Study and Known. Depending how confident you feel
" about the item you are currently learning, you can move it down several
" positions, all the way to the end of the Study queue, or to the Known
" queue.
" type ,, (that's comma comma)
@colinbdclark
colinbdclark / gist:8580936
Created January 23, 2014 15:49
An example of playing two audio buffers at the same time, one in each channel.
var synth = flock.synth({
synthDef: [
{
ugen: "flock.ugen.playBuffer",
buffer: {
id: "chord",
url: "../../shared/audio/hillier-first-chord.wav"
}
},
{
@colinbdclark
colinbdclark / gist:9179042
Last active August 29, 2015 13:56
Wiring Flocking up to Web Audio nodes
flock.init();
var as = flock.enviro.shared.audioStrategy;
// Create the new gain node and set some parameters on it.
var gainNode = as.context.createGain();
gainNode.gain.setValueAtTime(0.0, as.context.currentTime);
as.insertOutputNode(gainNode);
@colinbdclark
colinbdclark / minimal-declarative-flocking-midi.js
Created June 14, 2014 01:55
Minimal declarative MIDI example
window.midiBand = flock.band({
components: {
synth: {
type: "flock.synth",
options: {
synthDef: {
id: "carrier",
ugen: "flock.ugen.sinOsc",
freq: 440,
mul: {