This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var b = require('bonescript'); | |
var EventEmitter = require('events').EventEmitter; | |
var Watcher = function(pinName, interval){ | |
var emitter = new EventEmitter(); | |
var f = 0; | |
b.pinMode(pinName, b.INPUT); | |
setInterval(function(){ | |
b.digitalRead(pinName, function(x){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var Canvas = require('canvas'); | |
var GIFEncoder = require('gifencoder'); | |
var w = 142; | |
var h = 179; | |
var cvs = new Canvas(w, h); | |
var ctx = cvs.getContext('2d'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▅▅▅▄▄▄▄▅▅▅▅▅▅▇▇▅▅▅▅▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ | |
▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▅▅▄▄▄▄▄▄▄▄▄▄▄▅▅▇▇▅▅▅▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ | |
▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▅▄▄▄▄▄▄▄▄▄▄▄▅▅▅▅▇▅▅▅▄▅▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ | |
▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▅▅▄▄▄▄▄▄▄▄▄▅▅▅▅▅▅▅▇▅▄▂▄▅▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ | |
▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▅▅▄▄▄▄▄▄▄▅▅▅▅▅▅▄▄▅▅▇▅▄▂▅▄▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ | |
▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▅▄▄▄▄▅▄▄▅▅▇▇▅▅▄▄▂▄▅▅▅▅▄▅▅▅▅▅▅▇▅▅▇▅▅▇▇▇▇▇▇ | |
▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▅▅▄▅▅▅▄▅▅▅▇▇▅▅▅▄▂▂▂▄▅▅▅▅▅▅▅▄▄▅▇▅▇▇▇▅▇▇▇▇▇▇ | |
▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▅▅▅▅▅▅▅▅▅▅▇▅▅▅▄▄▄▂▂▂▄▅▅▅▅▇▇▅▄▂▄▅▅▇▇▇▇▇▇▇▇▇▇ | |
▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▅▅▅▅▅▅▅▅▇▇▇▅▅▅▅▄▄▂▂▂▄▄▅▅▅▇▇▇▅▄▄▅▅▅▅▅▇▇▇▇▇▇▇ | |
▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▅▅▅▅▅▅▅▇▇▇▅▅▅▅▄▄▂▂▂▄▄▄▅▅▇▇▇▇▅▇▅▄▂▅▅▇▇▇▇▇▇▇▇ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
器器器器器器器器器器器器器器器器器鬱鬱鬱鬱鬱器鬱鬱鬱鬱鬱鬱鬱鬱器器器鬱鬱鬱鬱鬱鬱 | |
器器器器器器鬱器器器器器器器鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱器器器鬱器器鬱鬱鬱鬱鬱 | |
器器肉肉器鬱鬱器器器器器鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱器器器鬱鬱鬱鬱 | |
器肉肉肉器鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱器鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱器器鬱鬱鬱鬱鬱鬱 | |
肉肉肉肉器鬱鬱鬱鬱鬱鬱鬱鬱器器器器器器器鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱 | |
肉肉肉肉器鬱鬱鬱鬱鬱鬱鬱器器器器器器器器器鬱鬱鬱鬱鬱鬱鬱鬱器鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱 | |
肉肉肉肉器鬱鬱鬱鬱鬱鬱器器器器器器器器器器鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱 | |
肉肉肉肉器鬱鬱鬱鬱鬱鬱器器器器器器器器器器器器鬱器器鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱 | |
肉肉肉肉器鬱鬱鬱鬱鬱鬱器器器器器器器器器器器肉肉器器鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱 | |
肉肉肉肉器鬱鬱鬱鬱鬱鬱器器器器器器器器肉ぶぶぶ肉器器鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var hsl2Rgb = function(h, s, l){ | |
var r, g, b; | |
if(s == 0){ | |
r = g = b = l; | |
}else{ | |
var hue2rgb = function(p, q, t){ | |
if(t < 0) t += 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Command Line Tools 入れる | |
Homebrew 入れる | |
nodebrew & npm 入れる | |
Node v0.10系とv0.11系の最新を入れる | |
LiveReloadX, Forever, LiveScript, CoffeeScript, Gulp, ws を -g で入れる | |
rbenv & gem 入れる | |
Rubyの最新を入れる | |
mikutter も入れる | |
MacUIM 入れる |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3Dkirieji.ttf | |
CP Font.ttf | |
GN-KillGothic.ttf | |
Nishiki-teki.ttf | |
PixelMplus10-Regular.ttf | |
TanukiMagic.ttf | |
geba-b1.500+m0.003.ttf | |
hakidame.TTF | |
haranyan.ttf | |
ibaraji.ttf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Command Line Tools 入れる | |
xcode-select --install | |
xcodebuild -license | |
# Homebrew 入れる | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew update | |
brew upgrade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var get = exports.get = function(name, key, fs, path){ | |
fs = fs ? fs : require('fs'); | |
path = path ? path : require('path'); | |
var file = path.resolve(__dirname, name + '.json') | |
if(!fs.existsSync(file)){ | |
console.error('File', file,'does not exist.'); | |
return null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "MPU6050_6Axis_MotionApps20.h" | |
Serial pc(USBTX, USBRX); | |
MPU6050 mpu; | |
bool dmpReady = false; // set true if DMP init was successful | |
uint8_t mpuIntStatus; // holds actual interrupt status byte from MPU | |
uint8_t devStatus; // return status after each device operation (0 = success, !0 = error) | |
uint16_t packetSize; // expected DMP packet size (default is 42 bytes) |