This file contains hidden or 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
#!/bin/zsh | |
# consts | |
EXPORT_DIR=Icons | |
FILE_WIDE=logo_wide.png | |
FILE_SQUARE=logo_square.png | |
# input folder | |
function mkdir_ex() { | |
# create folder |
This file contains hidden or 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
- (void) keyEmulate { | |
CGEventRef keyup, keydown; | |
keydown = CGEventCreateKeyboardEvent (NULL, (CGKeyCode)40, true); | |
keyup = CGEventCreateKeyboardEvent (NULL, (CGKeyCode)40, false); | |
CGEventPost(kCGHIDEventTap, keydown); | |
CGEventPost(kCGHIDEventTap, keyup); | |
CFRelease(keydown); | |
CFRelease(keyup); | |
} |
This file contains hidden or 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
// | |
// ofxLPF.cpp | |
// Simple Low Pass Filter | |
// | |
// Created by Koki Ibukuro on 6/17/14. | |
// | |
// | |
//http://baumdevblog.blogspot.jp/2010/11/butterworth-lowpass-filter-coefficients.html |
This file contains hidden or 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
Shader "Custom/MaskedSprite" { | |
Properties { | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
} | |
SubShader { | |
Tags { | |
"Queue"="Transparent" | |
"IgnoreProjector"="True" | |
"RenderType"="Transparent" | |
"PreviewType"="Plane" |
This file contains hidden or 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
// | |
// ShellScript.h | |
// | |
// Created by Koki Ibukuro on 6/18/14. | |
// Copyright (c) 2014 Koki Ibukuro. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
typedef void (^ShellScriptMessageCallback)(NSString* msg); |
This file contains hidden or 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 Cocoa | |
class SoundManager { | |
struct Cache { | |
static let sound = Dictionary<String, NSSound>() | |
} | |
This file contains hidden or 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
brew install sox |
This file contains hidden or 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
#!/bin/zsh | |
# normalize | |
function toflv() { | |
ffmpeg -i $1 -acodec copy -vcodec copy ${1%.mov}.flv | |
} | |
while [ "$1" != "" ] | |
do | |
toflv $1 |
This file contains hidden or 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 is Simple Audio Plugin for AngularJS | |
# service | |
class AngularAudio | |
constructor:() -> | |
@cache = {} | |
play:(id) -> | |
audio = null |
This file contains hidden or 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
#!/bin/sh | |
for file in *.wav | |
do | |
/usr/bin/afconvert -f caff -d ima4@22050 -c 1 $file ${file%.wav}.caf | |
done |