This file contains 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
// | |
// NSMutableArray+TBAddObjectExtention.h | |
// | |
// Created by ISHII Tsuubito on 12/10/18. | |
// Copyright (c) 2012 buffer Renaiss co., ltd. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#pragma mark get |
This file contains 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
// | |
// NSMutableArray+TBAddObjectExtention.m | |
// | |
// Created by ISHII Tsuubito on 12/10/18. | |
// Copyright (c) 2012年 buffer Renaiss co., ltd. All rights reserved. | |
// | |
#import "NSMutableArray+TBAddObjectExtention.h" | |
#pragma mark getter |
This file contains 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 template = (function() { | |
var defaultNeedle = new RegExp(/__(.+?)__/g); | |
return function(template, obj, needle) { | |
needle = needle || defaultNeedle; | |
var evalString = '"' + template.replace(needle, "\"+obj.$1+\"") + '"'; | |
if(obj["length"] && obj["push"]) { | |
var src = obj, dst = []; | |
for(var i = 0; i < src.length; i++) { | |
obj = src[i]; | |
dst.push(eval(evalString)); |
This file contains 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
/* | |
JavaScript Array Extention | |
v0.1 | |
2013 [c] ISHII 2bit | |
Author : ISHII 2bit | |
E-Mail : ishii [ at ] buffer-renaiss.com | |
Web : http://2bit.jp/ | |
Update : |
This file contains 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
// | |
// TBLogger.h | |
// | |
// Created by ISHII 2bit | |
// Copyright (c) 2013 buffer Renaiss co., ltd. All rights reserved. | |
// | |
// require (if use with Xcode) : https://github.com/robbiehanson/XcodeColors/downloads | |
// | |
#ifndef __TBLogger_h__ |
This file contains 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
*.* | |
!.DS_Store |
This file contains 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
// https://gist.github.com/micromeeeter/10586065 | |
void setup(){ | |
colorMode(HSB,360,100,100); | |
size(600,600); | |
background(1,0,99); | |
stroke(189,99,99); | |
strokeWeight(1); | |
frameRate(20); | |
} |
This file contains 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
#define Pointer(T) T * | |
#define ImmutableValuePointer(T) const T * | |
#define ImmutableAddressPointer(T) T * const | |
#define ImmutablePointer(T) const T * const | |
template <typename T> | |
class Pointer { | |
public: | |
typedef T *type; | |
typedef const T * immutableValue; |
This file contains 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
// npm install artnet-node | |
// npm install node-osc | |
var clientIP = "192.168.1.102"; // set correct IP | |
var port = 6454, | |
Artnet = require('artnet-node'), | |
ArtnetClient = Artnet.Client, | |
OSC = require('node-osc'); |
This file contains 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
inlets = 1; | |
outlets = 3; | |
function hsb(h, s, v) { | |
s = (s == undefined) ? 255.0 : s; | |
v = (v == undefined) ? 255.0 : v; | |
if(s == 0) { | |
outlet(0, v); | |
outlet(1, v); | |
outlet(2, v); |
OlderNewer