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 <signal.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <pthread.h> | |
#include <sys/time.h> | |
#include <interface/mmal/mmal.h> | |
#include <interface/mmal/util/mmal_util.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 VideoSource | |
{ | |
public: | |
ofVideoGrabber camera; | |
ofVideoPlayer videoPlayer; | |
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
// Records a local webcam feed and converts the recording to SWF. | |
import flash.display.BitmapData; | |
import flash.display.Bitmap; | |
import flash.display.Loader; | |
import flash.events.Event; | |
import flash.events.MouseEvent; | |
import flash.geom.Rectangle; | |
import flash.media.Camera; | |
import flash.media.Video; |
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
int fileID = 0; | |
vector<string> fileNames; | |
string fileExtension = "pex"; | |
// | |
ofDirectory dir = ofToDataPath("", true); | |
dir.listDir(); | |
vector<ofFile> files = dir.getFiles(); | |
for(int i=0; i<files.size(); i++) |
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 "ofGraphics.h" | |
#include "ofImage.h" | |
class ofGlobalListener { | |
public: | |
ofGlobalListener(); | |
virtual void globalMouseDown(float x, float y) = 0; | |
}; |
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
#ifndef ROXLU_BINNING_2DH | |
#define ROXLU_BINNING_2DH | |
#include <math.h> | |
#include <vector> | |
using std::vector; | |
/* |
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 "LightRays.h" | |
#include <roxlu/opengl/Error.h> | |
LightRays::LightRays() | |
:w(0) | |
,h(0) | |
,tex(0) | |
,fbo(0) | |
,depth_buffer(0) | |
,frag_shader(0) |
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
// This makes relative paths work in C++ in Xcode by changing directory to the Resources folder inside the .app bundle | |
// this way you can include your images in the copy phase of the project and don't have to rely on a data/ folder for distribution | |
#ifdef TARGET_OSX | |
ofDisableDataPath(); | |
CFBundleRef mainBundle = CFBundleGetMainBundle(); | |
CFURLRef resourcesURL = CFBundleCopyResourcesDirectoryURL(mainBundle); | |
char path[PATH_MAX]; | |
CFURLGetFileSystemRepresentation(resourcesURL, TRUE, (UInt8 *)path, PATH_MAX); | |
CFRelease(resourcesURL); |
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
#ifndef PI | |
# define PI 3.14159265358979 | |
#endif | |
inline float easeInBack(float t) { | |
float s = 1.70158f; | |
return t*t*((s+1)*t - s); | |
} | |
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
$ tar xvf netatalk-3.0.5.tar.bz2 | |
$ cd netatalk-3.0.5 | |
$ ./configure \ | |
--with-init-style=debian \ | |
--with-cracklib \ | |
--without-libevent \ | |
--with-pam-confdir=/etc/pam.d \ | |
--with-dbus-sysconf-dir=/etc/dbus-1/system.d | |
$ checkinstall --pkgname=netatalk-3.x --pkgversion="$(date +%Y%m%d%H%M)" --backup=no --deldoc=yes --default --fstrans=no |
OlderNewer