Skip to content

Instantly share code, notes, and snippets.

View yusuketomoto's full-sized avatar

Yusuke Tomoto yusuketomoto

  • San Francisco, CA.
View GitHub Profile
@yusuketomoto
yusuketomoto / clone_from_list.sh
Last active March 7, 2016 12:02
clone from remote repo list
#!/bin/sh
filename=$1
while read line ; do
git clone ${line}
done < ${filename}
AccessModifierOffset: -4
AlignEscapedNewlinesLeft: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: false
BreakBeforeBinaryOperators: true
#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;
@yusuketomoto
yusuketomoto / gnuradio_installation
Last active August 29, 2015 14:14
gnuradio 環境の構築 OSX 10.9〜10.10版
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
@yusuketomoto
yusuketomoto / brewfile
Last active August 29, 2015 14:09
My brewfile
tap phinze/homebrew-cask
tap caskroom/homebrew-versions
update
install brew-cask
install cmake
install eigen
install liblo
cask install adobe-creative-cloud
@yusuketomoto
yusuketomoto / setup.sh
Last active August 29, 2015 14:09
Setup Mac OS X
# 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
#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;
@yusuketomoto
yusuketomoto / gist:3cf261a77387f2c1599e
Created September 25, 2014 12:02
delete DerivedData recursively
find . -name "DerivedData" -print -exec rm -rf {} ";"
@yusuketomoto
yusuketomoto / gist:4ffed52e0c2284152030
Last active August 29, 2015 14:01
channel spilit and merge
#include "ofMain.h"
#include "ofxCv.h"
using namespace ofxCv;
using namespace cv;
class ofApp : public ofBaseApp {
ofImage image;