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
module.exports = gulp | |
#---------------------------------------- | |
gulp = require 'gulp' | |
coffee = require 'gulp-coffee' | |
compass = require 'gulp-compass' | |
jade = require 'gulp-jade' | |
plumber = require 'gulp-plumber' | |
srcmap = require 'gulp-sourcemaps' |
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
# You have to exec below to make 'subl' command enabled. | |
# (https://www.sublimetext.com/docs/3/osx_command_line.html) | |
sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/bin/subl |
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
# NOTE: this script stops when esc key pressed not to freeze c4d because of some heavy codes. | |
import c4d | |
from c4d import gui | |
def frame( f ): | |
# exec some processing.. | |
pass | |
def escPressed(): |
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
/* | |
* Usage: | |
* 1) Select destination layers and then select source layer | |
* 2) Run | |
*/ | |
// https://github.com/douglascrockford/JSON-js/blob/master/json2.js | |
#include "json2.js" | |
main(); |
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
./p5-pipe.sh pipe_invert pipe_blur --args ./sample.png |
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
javascript:charas=["asuka","natsuki","kaori","hazuki","sapphire","haruka","yuuko","shuichi","reina"];$.each(charas,function(a,u){$("."+u).css("background-image","url(http://baku89.com/files/kumiko/kumiko_"+a+".jpg")}); |
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
# http://afni.nimh.nih.gov/pub/dist/src/pkundu/meica.libs/nibabel/eulerangles.py | |
import eulerangles | |
import c4d | |
threeMat = c4d.Matrix().Scale(c4d.Vector(1, 1, -1)) | |
def mat2quat(mat): | |
mt = threeMat * m | |
v1, v2, v3 = mat.v1, mat.v2, mat.v3 | |
rotMat = [ |
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
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") |