Skip to content

Instantly share code, notes, and snippets.

Avatar

Motoi Shimizu motoishmz

View GitHub Profile
View jstest.maxpat
{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 6,
"minor" : 1,
"revision" : 0,
"architecture" : "x86"
}
,
View 新MacOSセットアップ.txt
# ...
- スクリーンセーバー解除
- スリープ解除(ハードディスクも)
- AppNap解除
- ...
View glitch.cpp
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 Aug 29, 2015
creating/applying patches to ofxaddons
View addons_patch.rb
#!/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)
View ofx-addons-alias.sh
#!/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
View lua_check_eins_zwei.lua
-- this
-- is
-- a
-- single
-- line
-- comment
--[[
this
is
View obj_translate_scale.rb
# [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行目あたり
View test.h
//
// 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
View クシケンさんが全くJavaScript書いた事無い時代にあげたconsoleに貼付けて実行してごらん.js
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>")
}
View emoji-cheat-sheet.json
{
"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"},