Skip to content

Instantly share code, notes, and snippets.

View ikr7's full-sized avatar
🅰️
rch Linux

ikr7

🅰️
rch Linux
View GitHub Profile
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;
@ikr7
ikr7 / gist:8d387ab514aa2c681b0e
Last active August 29, 2015 14:07
dotfiles 構想
Command Line Tools 入れる
Homebrew 入れる
nodebrew & npm 入れる
Node v0.10系とv0.11系の最新を入れる
LiveReloadX, Forever, LiveScript, CoffeeScript, Gulp, ws を -g で入れる
rbenv & gem 入れる
Rubyの最新を入れる
mikutter も入れる
MacUIM 入れる
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
@ikr7
ikr7 / install.sh
Last active August 29, 2015 14:07
# 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
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;
#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)
@ikr7
ikr7 / index.html
Last active August 29, 2015 14:08
写真から商品判別するくん パワードバイ ドコモのAPI
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>写真から商品判別するくん</title>
<style>
table, th, td {
border: 1px solid black;
class Boy😃
def initialize(name)
@📛 = name
end
def ✋()
puts "Hi, my name is " + @📛
end
var Command = require('../lib/command.js');
var delay = function(tweet){
return tweet.text.length / 2 * 1000; //ms
};
var destroy = new Command(function(oauth, tweet, CONFIG){
var id = tweet.id_str;
@ikr7
ikr7 / .zshrc
Created November 26, 2014 13:23
LANG=ja_JP.UTF-8
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin # ふつうの
PATH=$HOME/.nodebrew/current/bin:$PATH # nodebrewの
PATH=/usr/local/opt/coreutils/libexec/gnubin:$PATH # gnubinの
PATH=/usr/local/opt/llvm/bin:$PATH #llvmの
HISTFILE=~/.zsh_history
HISTSIZE=1000000
SAVEHIST=1000000