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
cdw() { | |
cd ${WORKDIR} | |
if [ $# != 0 ]; then | |
cd ${WORKDIR} | |
projDir=$(ls | grep ${1}) | |
if [ -d "$projDir" ]; then | |
cd ${projDir} | |
else | |
echo "\"${1}\" does not exists \n" | |
ls |
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
WORKROOT=${HOME}/Works | |
WORKDIR=${WORKROOT}/$(date +"%Y") |
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
> 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 |
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
open -n ./emptyExampleDebug.app/ --args --myargs 1 2 3 4 |
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
import c4d | |
from c4d.modules import mograph as mo | |
prevCnt = 0 | |
def main(): | |
global prevCnt | |
md = mo.GeGetMoData(op) | |
if md==None: return False |
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
from c4d import gui | |
import shutil | |
num = 0 | |
def countObjectKeyframe(obj): | |
global num | |
tracks = obj.GetCTracks() |
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
# Add User Data (ID=1) as Integer | |
# In python tag | |
def main(): | |
b = op.GetObject() | |
idx = b[c4d.ID_USERDATA,1] | |
children = b.GetChildren() | |
for i, c in enumerate(children): | |
v = 2 if idx == i else 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
#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; |
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
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' |