This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <DmxSimple.h> | |
| // 57600 baud rate | |
| // unsigned char channel | unsigned char value | for 27 times then | read | | |
| // read | read | for 27 times then | unsigned char success | | |
| // DMX devices typically need to receive a complete set of channels | |
| // even if you only need to adjust the first channel. You can | |
| // easily change the number of channels sent here. If you don't |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Convert an OTF font into TTF an EOT formats. | |
| # @source: http://stackoverflow.com/a/2467452/179015 | |
| # @note: brew install fontforge | |
| # brew install | |
| # @usage: sh otf2ttf2eot.sh FontName | |
| otfFont="$1.otf" | |
| ttfFont="$1.ttf" | |
| eotFont="$1.eot" | |
| fontforge -c ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| template<> | |
| float ofColor_<float>::limit() { | |
| return 1.f; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| loadAudioSpritesObj("/sounds/audiosprite.json", function (sprites) { | |
| console.log(sprites); | |
| }); | |
| function loadAudioSpritesObj(filenane, callback) { | |
| $.getJSON(filenane, function(json) { | |
| var sprites = {}; | |
| var lastPositionMS = 0; | |
| for (var i=0;i<json.length;i+=2) { | |
| var spriteEndTime = json[i] + lastPositionMS; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var http = require('http'); | |
| var xml2js = require('xml2js'); | |
| var xmlParser = new xml2js.Parser({ | |
| normalize: false | |
| }); | |
| // SymphonyCMS | |
| var SymphonyCMS = function (options){ | |
| options = options || {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var jade = require('jade'); | |
| var path = require('path'); | |
| var fs = require('fs'); | |
| // Debug logger | |
| var useDebugLog = (typeof process.env.DEBUG_JADE_MIDDLEWARE !== "undefined"); | |
| var debugLog = function () { | |
| if (!useDebugLog) { return; } | |
| console.log.apply(this, Array.prototype.slice.call(arguments, 0)); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma once | |
| #include "ofMain.h" | |
| class ScreenStack; | |
| // Base Screen class for using with ScreenStack | |
| class Screen { | |
| friend class ScreenStack; | |
| public: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| open -n ./emptyExampleDebug.app/ --args 1 2 3 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import RPi.GPIO as GPIO | |
| import time | |
| # use P1 header pin numbering convention | |
| GPIO.setmode(GPIO.BOARD) | |
| # Config | |
| pins = [3,5,7,8,10,11,12] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <snippet> | |
| <content><![CDATA[console.log("${1:this}", ${2:this});]]></content> | |
| <tabTrigger>l</tabTrigger> | |
| <scope>source.js</scope> | |
| <description>Console.log</description> | |
| </snippet> |