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}
#!/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"
@yusuketomoto
yusuketomoto / 0_reuse_code.js
Created November 6, 2013 07:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
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;