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
// .... | |
void d_soundfile_setup(void); | |
void d_ugen_setup(void); | |
// こんなかんじで | |
void your_extended_setup(void); | |
// .... |
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
#!/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 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 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 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 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 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 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 |
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
using UnityEngine; | |
using System; | |
using System.Reflection; | |
public class PropertyFollow : MonoBehaviour { | |
[Serializable] | |
public class TargetProp { | |
public string compName; | |
public string propName; | |
} |
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
// | |
// Midi2Motor.ino | |
// | |
// Using Libiraries | |
// | |
// Standard MIDI Files (SMF) Processing Library | |
// GPLv3 | |
// https://arduinocode.codeplex.com/releases/view/115256 | |
// | |
// SdFat |
OlderNewer