View ofxDelayLineQueue.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
#pragma once | |
#include <chrono> | |
#include <deque> | |
template <typename T> | |
class ofxDelayLineQueue | |
{ | |
public: |
View tellmeUSBSerialDevice.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
#pragma once | |
#include "ofMain.h" | |
inline void tellmeUSBSerialDevice() | |
{ | |
ofDirectory dir; | |
int n = dir.listDir("/dev"); | |
vector<string> arr; |
View ofxAutoSaveParam.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
#pragma once | |
/* | |
USAGE: | |
ofxAutoSaveParam param; | |
class ofApp { | |
public: |
View PackedBuffer.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
template <typename T, bool (*remove_predicate)(const T&)> | |
class PackedBuffer | |
{ | |
public: | |
PackedBuffer(size_t size) | |
: size_(0) | |
, buffer_(size) | |
{} | |
View TypedArray.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
#include <vector> | |
#include <cmath> | |
#include <assert.h> | |
class ArrayBuffer | |
{ | |
public: | |
ArrayBuffer(size_t size) | |
: data_(size, 0) |
View stack_blur.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
#include "ofMain.h" | |
namespace stack_blur { | |
template<class T> struct stack_blur_tables { | |
static uint16_t const g_stack_blur8_mul[255]; | |
static uint8_t const g_stack_blur8_shr[255]; | |
}; | |
//------------------------------------------------------------------------ |
View ofxNanoSVG.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
#pragma once | |
#define NANOSVG_IMPLEMENTATION | |
#include "nanosvg.h" | |
class ofxNanoSVG | |
{ | |
public: | |
bool load(const string& filepath) |
View CollectAllWindows.applescript
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
(* | |
collect all windows | |
http://apple.stackexchange.com/questions/709/how-to-retrieve-windows-that-have-moved-off-screen | |
http://d.hatena.ne.jp/hirose31/20111213/1323761962 | |
*) | |
property processesToIgnore : {} | |
tell (do shell script "/usr/sbin/system_profiler SPDisplaysDataType | grep Resolution | tail -n 1") to set {screen_width, screen_height} to {word 2, word 4} |
View BAD_TUNE_TV.fs
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
/*{ | |
"DESCRIPTION": "BAD_TUNE_TV", | |
"CREDIT": "by satoruhiga", | |
"CATEGORIES": [ | |
"GLSL FX" | |
], | |
"INPUTS": [ | |
{ | |
"NAME": "inputImage", | |
"TYPE": "image" |
View ofxMaxCollTextParser.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
#pragma once | |
#include "ofMain.h" | |
class ofxMaxCollTextParser | |
{ | |
public: | |
bool open(const string& path) | |
{ |
NewerOlder