Skip to content

Instantly share code, notes, and snippets.

View motoishmz's full-sized avatar

Motoi Shimizu motoishmz

View GitHub Profile
"----"
"0/488"
"start processing: ../@assets/frames/frame-0000.png"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1596 100 1596 0 0 16588 0 --:--:-- --:--:-- --:--:-- 24553
3171 1596 3171 50622 0 0 113k 0 --:--:-- --:--:-- --:--:-- 113k 16734 1596 16734 260k 0 0 263k 0 --:--:-- --:--:-- --:--:-- 380k
"start saving: jewlery-mica-table-blog-design.jpg"
"saved as: frame-0000.jpg"
"----"
#!/usr/bin/env python
'''
DEPENDENCIES:
$ brew install ffmpeg
$ brew install imagemagick
$ python ./mov2gif.py input.mov output.gif 15
'''
@motoishmz
motoishmz / ofxcsv_test.cpp
Created October 31, 2013 21:00
Motoi > Tega
#include "ofxCsv.h"
using namespace wng;
ofxCsv csv;
void ofApp::setup()
{
ofSetFrameRate(60);
ofSetVerticalSync(true);
// https://github.com/discordj/QCanonCamera/blob/master/qcanoncamera.cpp
#include "dcrimage.h"
#include "qcanoncamera.h"
EdsError EDSCALLBACK handleObjectEvent( EdsObjectEvent event,
EdsBaseRef object,
EdsVoid * context)
{
=begin
[usage]
1. download this file to your desktop
2. open your Terminal.app
$ sudo gem install oauth
$ sudo gem install json
$ cd ~/Desktop
$ ruby hackpad.rb
console.log("・゜・*:.。..:*・'。. .。.:*・゜・*Basic・゜・*:.。..:*・'。. .。.:*・゜・*");
// f - function
// xs - array
function map(f, xs)
{
var result = [];
for (var i=0; i<xs.length; i++)
{
{
"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)