Skip to content

Instantly share code, notes, and snippets.

View ademilsonfp's full-sized avatar

Ademilson ademilsonfp

  • Uberlândia-MG, Brazil
View GitHub Profile
@ademilsonfp
ademilsonfp / behringer.cmd.pl-1.custom.js
Last active March 3, 2019 00:43
Behringer CMD PL-1 / Mixxx controller mapping
function myCustomDeck(channel, deck) {
var forceScratch = false;
// CONTROLLER SETUP
deck.e1.setup = deck.e1.release = encoderWiper(deck.e1);
deck.e2.setup = deck.e2.release = encoderWiper(deck.e2);
deck.e3.setup = deck.e3.release = encoderWiper(deck.e3);
deck.e4.setup = deck.e4.release = encoderWiper(deck.e4);
@ademilsonfp
ademilsonfp / nodeonewrapper.js
Last active December 16, 2015 09:58
Simple wrapper template to join multiple Node.js module files into one, used to create libraries that work on browsers.
// Simple wrapper template to join multiple Node.js module files into one to
// create libraries to work on browsers.
//
// Tokens:
//
// __name__ -> replace with library name
// '__aliases__' -> replace with object which contains aliases definition
// '__modules__' -> replace with object which contains modules definition
//
// Each module must be wrapped in a definer function like it:
@ademilsonfp
ademilsonfp / regex_string.js
Last active December 15, 2015 01:59
Regex for string extraction.
var apostrophed = /'(|([^'\\]+|\\[^']|\\')*)'/
var quoted = /"(|([^"\\]+|\\[^"]|\\")*)"/