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" | |
#include "ofxCv.h" | |
using namespace ofxCv; | |
using namespace cv; | |
class ofApp : public ofBaseApp { | |
ofImage image; | |
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
find . -name "DerivedData" -print -exec rm -rf {} ";" |
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" | |
static const bool USE_CAM = true; | |
static const string MOVIE_PATH = ""; | |
template <bool Cond, class Then, class Else> | |
struct if_; | |
template <class Then, class Else> | |
struct if_<true, Then, Else> { | |
typedef Then type; |
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
# homebrew-cask | |
brew tap phinze/homebrew-cask | |
brew install brew-cask | |
brew tap caskroom/homebrew-versions | |
brew cask install sublime-text3 | |
brew cask install google-chrome | |
brew cask install google-chrome-canary | |
brew cask install dropbox |
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
tap phinze/homebrew-cask | |
tap caskroom/homebrew-versions | |
update | |
install brew-cask | |
install cmake | |
install eigen | |
install liblo | |
cask install adobe-creative-cloud |
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
brew install python | |
brew tap yusuketomoto/homebrew-gnuradio-1 | |
pip install --upgrade setuptools | |
pip install --upgrade pip | |
pip install matplotlib -U | |
brew install gnuradio --with-qt --with-docs --with-brewed-python | |
pip install lxml |
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" | |
#include "ofxCv.h" | |
const string path_0 = "prev.tif"; | |
const string path_1 = "cur.tif"; | |
class ofApp : public ofBaseApp | |
{ | |
ofVideoGrabber video; | |
ofxCv::FlowFarneback forward; |
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
AccessModifierOffset: -4 | |
AlignEscapedNewlinesLeft: true | |
AlignTrailingComments: true | |
AllowAllParametersOfDeclarationOnNextLine: false | |
AllowShortFunctionsOnASingleLine: false | |
AllowShortIfStatementsOnASingleLine: true | |
AllowShortLoopsOnASingleLine: true | |
AlwaysBreakBeforeMultilineStrings: false | |
AlwaysBreakTemplateDeclarations: false | |
BreakBeforeBinaryOperators: true |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
#!/bin/bash | |
ARCH="-arch i386" | |
SDK="-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk" | |
SDKLIB="-Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk" | |
export MACOSX_DEPLOYMENT_TARGET="10.7" | |
export CFLAGS="$ARCH $SDK -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET" |
OlderNewer