Skip to content

Instantly share code, notes, and snippets.

View motoishmz's full-sized avatar

Motoi Shimizu motoishmz

View GitHub Profile
{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 6,
"minor" : 1,
"revision" : 0,
"architecture" : "x86"
}
,
# ...
- スクリーンセーバー解除
- スリープ解除(ハードディスクも)
- AppNap解除
- ...
cmd << " -acodec pcm_s16le -f s16le -ar " << sampleRate << " -ac " << audioChannels << " -i " << audioPipePath;
// !!!:
cmd << " -acodec aac -strict -2 -f mp4 -ar 44100 -vtag mp4v " << sampleRate << " -ac " << audioChannels << " -i " << audioPipePath;
@motoishmz
motoishmz / addons_patch.rb
Last active August 29, 2015 13:57
creating/applying patches to ofxaddons
#!/usr/bin/ruby
dir_addons = File.expand_path("../addons")
module PatchingMode
CREATE = 1
APPLY = 2
end
def patch(patching_mode, path_to_addons_dir, ofxaddon)
#!/bin/sh
cd `dirname $0`
dir_addons=$(cd ../addons; pwd) # {OFRoot}/addons
dir_aliases=$(cd $(dirname $0); pwd) # {OFRoot}/addons-alias
numOfxAddon=0
cd $dir_addons
-- this
-- is
-- a
-- single
-- line
-- comment
--[[
this
is
# [usage]
# ruby move.rb -i {input_obj_dir} -x {x_move_amount} -y {y_move_amount} -z {z-move_amount}
# ruby move.rb -i {input_obj_dir} -s {scale}
# --> 全frameの全キーポイントを、 {x, y, z}分移動
#
# note: translateとscaleを同時に渡すと、移動 >> scalingの順に実行される
# see also: 110行目あたり
//
// testApp.cpp - RAMDanceToolkit
//
// Copyright 2012-2013 YCAM InterLab, Yoshito Onishi, Satoru Higa, Motoi Shimizu, and Kyle McDonald
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
document.write("<table border='1'>")
for(var i=0; i<9; i++)
{
document.write("<tr>")
for(var j=0; j<9; j++)
{
document.write("<td>")
document.write((i+1)*(j+1))
document.write("</td>")
}
{
"People": [
{"id":1, "data-src":"http://www.emoji-cheat-sheet.com/graphics/emojis/bowtie.png", "name":"bowtie"},
{"id":2, "data-src":"http://www.emoji-cheat-sheet.com/graphics/emojis/smile.png", "name":"smile"},
{"id":3, "data-src":"http://www.emoji-cheat-sheet.com/graphics/emojis/laughing.png", "name":"laughing"},
{"id":4, "data-src":"http://www.emoji-cheat-sheet.com/graphics/emojis/blush.png", "name":"blush"},
{"id":5, "data-src":"http://www.emoji-cheat-sheet.com/graphics/emojis/smiley.png", "name":"smiley"},
{"id":6, "data-src":"http://www.emoji-cheat-sheet.com/graphics/emojis/relaxed.png", "name":"relaxed"},
{"id":7, "data-src":"http://www.emoji-cheat-sheet.com/graphics/emojis/smirk.png", "name":"smirk"},
{"id":8, "data-src":"http://www.emoji-cheat-sheet.com/graphics/emojis/heart_eyes.png", "name":"heart_eyes"},