Skip to content

Instantly share code, notes, and snippets.

View baku89's full-sized avatar

Baku Hashimoto baku89

View GitHub Profile
@baku89
baku89 / apple-emoji.txt
Last active May 26, 2016 09:26
👍 Skin Tone Gradients
👍🏻👍🏼👍🏽👍🏾👍🏿👍🏾👍🏽👍🏼
> fcurve@0.0.1 test /Users/mugi/Dropbox/Works/2016/30_fcurve/fcurve
> NODE_ENV=test mocha --compilers js:babel-register test/test.js
diff test
[0 ] target= 0.0000 value= 0.0000 diff= 0.00000000
[1 ] target=+0.0867 value=+0.0867 diff=-0.00000038
[2 ] target=+0.3618 value=+0.3618 diff=+0.00000961
@baku89
baku89 / setup_mac_signage.sh
Last active July 29, 2018 07:05 — forked from asus4/setup_mac_signage.sh
Setup mac preferences for Digital signage.
#!/bin/sh
# 自動更新OFF
echo "Disable : SystemPreferences -> AppStore -> Automatically check for updates"
defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticCheckEnabled -bool false
# 未承認のアプリでも右クリックなく開ける
echo "Disable Warning on opening new App."
spctl --master-disable
@baku89
baku89 / ofApp.cpp
Created October 13, 2016 18:34 — forked from satoruhiga/ofApp.cpp
GenUVLayout
#include "ofApp.h"
const int NUM_LED_PER_RING = 13;
const int NUM_ROW_IN_UV_LAYOUT = 6;
const int PIXEL_SIZE = 4;
const int PIXEL_MARGIN = 4;
const int STRIP_MARGIN = 10;
const int LAND_TEXT_HEADER_MARGIN = 60;
const int LAND_MARGIN = 20;
@baku89
baku89 / export_video_inceptionism.py
Created October 30, 2016 01:03
My first video deep-dream
from batcountry import BatCountry
import numpy as np
from PIL import Image
from glob import glob
import os
import random
CAFFE_ROOT = '../caffe'
INPUT_PATH = 'input.jpg'
@baku89
baku89 / export.py
Last active February 18, 2018 09:06
Output keyframe texture from C4D
import c4d
from c4d.modules import mograph as mo
from PIL import Image
from math import pi
duration = 677.64 / 60
amp = doc.SearchObject("waveform-clone")
offsetDeformer = doc.SearchObject("offset")
twistDeformer = doc.SearchObject("twist")
asdfasdfasdf
/*
{
"id": "2i4osix9av",
"label": "Radial Line",
"icon": "✳"
}
*/
const BLACK = '#282a2e'
const GUIDE = '#3e999f'
@baku89
baku89 / radial-line.js
Created July 28, 2018 00:03
Radial Line
/*
{
"id": "2i4osix9av",
"label": "Radial Line",
"icon": "✳"
}
*/
const BLACK = '#282a2e'
const GUIDE = '#3e999f'
/*
{
"id": "red-pencil",
"label": "Red Pencil",
"icon": "R"
}
*/
let path