Skip to content

Instantly share code, notes, and snippets.

Avatar

Motoi Shimizu motoishmz

View GitHub Profile
View 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()
View bmpcc.md

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

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

電源

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

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:

View GLSL-Noise.md

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);
}
View GLSL-geom-billboard.md
    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 Feb 13, 2016 — forked from patriciogonzalezvivo/GLSL-Lights.md
GLSL Shaders Lights Funtions
View GLSL-Lights.md
View GLSL-color.md

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

View GLSL-Math.md

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 / osxSetup.command
Last active Jun 15, 2021 — forked from rettuce/osxSetup.command
osx setup command. use com.apple.dock.plist
View osxSetup.command
#!/bin/sh
### Desktop & Screen Saver
# Desktopを黒に
echo "Change Desctop Pictures"
osascript -e 'tell application "Finder" to set desktop picture to POSIX file "/Library/Desktop Pictures/Solid Colors/Black.png"'
# ScreenSaver Kill
echo "Disable screensaver"
@motoishmz
motoishmz / amazon-calc.js
Created Mar 12, 2016 — forked from koyopro/amazon-calc.js
Amazonで一年間に使った金額と、注文履歴のTSVを出力するブックマークレット【2015年版】
View amazon-calc.js
// 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