View SimpleKalmanFilter
class SimpleKalmanFilter | |
{ | |
public: | |
float xhat, xhatminus; | |
float P, Pminus; | |
float _x, _p; | |
float Q, R, K; | |
View uncrustify.cfg
indent_align_string=false | |
indent_braces=false | |
indent_braces_no_func=false | |
indent_brace_parent=false | |
indent_namespace=false | |
indent_extern=false | |
indent_class=true | |
indent_class_colon=false | |
indent_else_if=false | |
indent_func_call_param=false |
View chrome search engine settings
Google ja: | |
http://www.google.com/search?lr=lang_ja&q=%s | |
Google en: | |
http://www.google.com/search?lr=lang_en&q=%s | |
oF forum: | |
http://www.google.com/search?sitesearch=http%3A%2F%2Fforum.openframeworks.cc&q=%s | |
C++ reference: | |
http://www.google.com/search?sitesearch=http%3A%2F%2Fwww.cppreference.com/wiki/&q=%s | |
C++ reference(ja): | |
http://www.google.com/search?sitesearch=http%3A%2F%2Fwww.cppreference.com/wiki/jp/&q=%s |
View run_titanium.py
#!/usr/bin/env python | |
''' | |
dependent to ios-sim command (https://github.com/Fingertips/ios-sim) | |
brew install ios-sim | |
''' | |
import os | |
def search_parent(path, target, count): |
View retina2normal.py
#!/usr/bin/env python | |
import os, sys | |
imgs = [x for x in os.listdir('.') if x.endswith('@2x.png')] | |
for i in imgs: | |
t = i.replace('@2x.png', '.png') | |
os.system("convert -resize 50%% %s %s" % (i, t)) |
View billboard.h
// http://marina.sys.wakayama-u.ac.jp/~tokoi/?date=20110221 | |
inline void billboard() | |
{ | |
GLfloat m[16]; | |
glGetFloatv(GL_MODELVIEW_MATRIX, m); | |
float inv_len; | |
m[8] = -m[12]; |
View PolygonArc.hpp
class PolygonArc | |
{ | |
public: | |
PolygonArc() | |
{ | |
curveResolution = 4; | |
} | |
void draw() |
View testApp.cpp
#include "testApp.h" | |
//-------------------------------------------------------------- | |
void testApp::setup() | |
{ | |
ofSetFrameRate(60); | |
ofSetVerticalSync(true); | |
ofBackground(0); |
View ofxKdTree.h
#include "kdtree.h" | |
template<class T> | |
class ofxKdTree | |
{ | |
public: | |
ofxKdTree() | |
{ | |
kd = kd_create(3); |
View ofxSmooth.h
#pragma once | |
#include "ofMain.h" | |
template <class T> | |
class ofxSmooth | |
{ | |
T value, value_t; | |
float smooth; | |
OlderNewer