Skip to content

Instantly share code, notes, and snippets.

View motoishmz's full-sized avatar

Motoi Shimizu motoishmz

View GitHub Profile
@motoishmz
motoishmz / bmpcc.md
Last active August 29, 2015 14:25 — forked from novi/bmpcc.md

たまにアップデートします

ボタンダブルクリックなどの操作もあるので一度説明書は読んだほうがよい。 サポートからダウンロードできるアプリで本体のファームウェアをアップデートできる。(ファームはネット経由の自動アップデートではないので毎回自分でアプリを更新する)

電源

  • 電池フル充電で1時間持たない。40分くらい。
  • Nikon純正の互換予備バッテリ必須。
@motoishmz
motoishmz / build-caffe.md
Last active August 31, 2015 08:12 — forked from kylemcdonald/build-caffe.md
How to build Caffe for OS X.

Theory of Building Caffe on OS X

Introduction

Our goal is to run python -c "import caffe" without crashing. For anyone who doesn't spend most of their time with build systems, getting to this point can be extremely difficult on OS X. Instead of providing a list of steps to follow, I'll try to epxlain why each step happens.

This page has OS X specific install instructions.

I assume:

@motoishmz
motoishmz / main.js
Last active December 15, 2015 06:19 — forked from kenjiSpecial/main.js
// to be binded.....
var fnTouchStart = function(e) { console.log("hello i am touch start"); };
var fnTouchMove = function(e) { console.log("hello i am touch move"); };
var fnTouchEnd = function(e) { console.log("hello i am touch end"); };
var fnMouseDown = function(e) { console.log("hello i am mouse down"); };
var fnMouseMove = function(e) { console.log("hello i am mouse move"); };
var fnMouseUp = function(e) { console.log("hello i am mouse up"); };
// register.....
(function()
@motoishmz
motoishmz / GLSL-Noise.md
Created February 13, 2016 03:05 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
	return mix(rand(fl), rand(fl + 1.0), fc);
}
@motoishmz
motoishmz / GLSL-geom-billboard.md
Created February 13, 2016 03:06 — forked from patriciogonzalezvivo/GLSL-geom-billboard.md
GLSL Geom shader billboard
    vec2 offSet[4];
 	offSet[0] = vec2(0.,0.);
    offSet[1] = vec2(0.,1.);
    offSet[2] = vec2(1.,0.);
    offSet[3] = vec2(1.,1.);

	vec3 zAxis = normalize( vNormal[0] );
    vec3 yAxis = vec3( 0.0, 1.0, 0.0 );
 vec3 xAxis = normalize( cross(zAxis, yAxis) );
@motoishmz
motoishmz / GLSL-Lights.md
Created February 13, 2016 03:06 — forked from patriciogonzalezvivo/GLSL-Lights.md
GLSL Shaders Lights Funtions
@motoishmz
motoishmz / GLSL-color.md
Created February 13, 2016 03:06 — forked from patriciogonzalezvivo/GLSL-color.md
GLSL color functions

RGB - YUB

mat3 yuv2rgb = mat3(1.0, 0.0, 1.28033, 1.0, -0.21482, -0.38059, 1.0, 2.12798, 0.0);
mat3 rgb2yuv = mat3(0.2126, 0.7152, 0.0722, -0.09991, -0.33609, 0.43600, 0.615, -0.5586, -0.05639);

RGB - HSV

@motoishmz
motoishmz / GLSL-Math.md
Created February 13, 2016 03:06 — forked from patriciogonzalezvivo/GLSL-Math.md
GLSL Math functions

Trigonometry

const float PI = 3.1415926535897932384626433832795;
const float PI_2 = 1.57079632679489661923;
const float PI_4 = 0.785398163397448309616;

float PHI = (1.0+sqrtf(5.0))/2.0;
@motoishmz
motoishmz / amazon-calc.js
Created March 12, 2016 04:54 — forked from koyopro/amazon-calc.js
Amazonで一年間に使った金額と、注文履歴のTSVを出力するブックマークレット【2015年版】
// Amazonの注文履歴をTSV形式で出力するスクリプト
//
// 2015-01-01 時点での DOM 構造に対応, GoogleCrome, Opera でテスト済。
// formatEntry関数を書き換えれば自由な書式で出力できます。
//
// 参考:
// - Amazonの注文履歴をCSV形式にして出力するスクリプト
// https://gist.github.com/arcatdmz/8500521
// - Amazon で使った金額の合計を出す奴 (2014 年バージョン)
// https://gist.github.com/polamjag/866a8af775c44b3c1a6d

twitterの検索術 (search/tweetssearch/universal)

search/tweets では一週間以上前のツイートは検索できないので注意

search/universal は公式のConsumerKey/ConsumerSecretでないと使用できない

当方では一切の責任を負いません