npm -gでインストールしたり、npm scripts内から使えそうなツールのまとめ
開発時にリスタートしてくれる用途のものも含む
- pm2
- forever
- node-dev
- nodemon
| rm -rf install_* | |
| rm -rf output-* | |
| # build simulator | |
| ./configure --prefix=`pwd`/install_i386 CFLAGS="-Ofast -mios-version-min=5.0" LDFLAGS="-flto" CC="xcrun -sdk iphonesimulator clang -arch i386" | |
| make clean && make -j8 && make install | |
| ./configure --prefix=`pwd`/install_x86_64 CFLAGS="-Ofast -mios-version-min=5.0" LDFLAGS="-flto" CC="xcrun -sdk iphonesimulator clang -arch x86_64" | |
| make clean && make -j8 && make install |
| // | |
| // ofxSimpleTheta.h | |
| // ofxSimpleTheta | |
| // | |
| // Created by Ovis aries on 2014/01/11. | |
| // | |
| // | |
| #ifndef ofxSimpleTheta_ofxSimpleTheta_h | |
| #define ofxSimpleTheta_ofxSimpleTheta_h |
| #include <IOKit/IOTypes.h> | |
| #include <IOKit/IOKitLib.h> | |
| #include <CoreSurface/CoreSurface.h> | |
| #include <stdio.h> // For mprotect | |
| #include <sys/mman.h> | |
| #ifdef __cplusplus | |
| extern "C" { | |
| #endif |
| #pragma once | |
| #include "ofMain.h" | |
| class ofxMaxCollTextParser | |
| { | |
| public: | |
| bool open(const string& path) | |
| { |
| #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; |
| // download cycolid.wav with: | |
| // $ wget -O cycloid.mp4 "https://vimeo.com/73860675/download?t=1446320826&v=187839750&s=46dcfa8c1c9ed3539dcc260443df6da08032ee60796f781df237bb6957cb8138" | |
| // $ ffmpeg -i cycloid.mp4 cycloid.wav | |
| #include "ofMain.h" | |
| #include "ofxAudioDecoder.h" | |
| class ofApp : public ofBaseApp { | |
| public: | |
| ofxAudioDecoder audio; |
| #pragma once | |
| #include "ofxWatchFile.h" | |
| #include "ofxJsonUtils.h" | |
| #define KVCS1(name) kv(name) | |
| #define KVCS2(name, ...) KVCS1(name), KVCS1(__VA_ARGS__) | |
| #define KVCS3(name, ...) KVCS1(name), KVCS2(__VA_ARGS__) | |
| #define KVCS4(name, ...) KVCS1(name), KVCS3(__VA_ARGS__) |
| import numpy as np | |
| import random | |
| import math | |
| import cv2 | |
| from PIL import Image | |
| import sys | |
| def detect_markers(im): | |
| markers = [] | |
| # 輪郭線抽出のための二値化 |
| #if defined(__clang__) | |
| #pragma message "Clang " __VERSION__ | |
| #elif defined(__GNUC__) | |
| #pragma message "GCC " __VERSION__ | |
| #elif defined(_MSC_VER) | |
| // https://qiita.com/yumetodo/items/8c112fca0a8e6b47072d | |
| #define STR(s) #s | |
| #define DUMP(s) #s "=" STR(s) | |
| #pragma message ("MSVC " DUMP(_MSC_VER) " " DUMP(_MSC_FULL_VER)) | |
| #endif |