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
| #include <iostream> | |
| #include <AudioToolbox/AudioToolbox.h> | |
| #include "CAComponent.h" | |
| int main (int argc, char * const argv[]) { | |
| AUGraph graph; | |
| AUNode outputNode, mixerNode, dlsNodeA, dlsNodeB, dlsNodeC; | |
| AudioUnit dlsA, dlsB, dlsC; | |
| //Setup Graph |
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
| #include <iostream> | |
| #include <AudioToolbox/AudioToolbox.h> | |
| int main (int argc, char * const argv[]) { | |
| AUGraph graph; | |
| AUNode outputNode, mixerNode, synthNode; | |
| AudioUnit synthUnit; | |
| //Setup Graph | |
| NewAUGraph(&graph); |
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
| # Xcode auto-versioning script for Subversion | |
| # by Axel Andersson, modified by Daniel Jalkut to add | |
| # "--revision HEAD" to the svn info line, which allows | |
| # the latest revision to always be used. | |
| # See http://www.red-sweater.com/blog/23/automatic-build-sub-versioning-in-xcode#finalscript | |
| use strict; | |
| die "$0: Must be run from Xcode" unless $ENV{"BUILT_PRODUCTS_DIR"}; |
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
| for f in "$@" | |
| do | |
| filename="${f%.*}" | |
| plutil -convert xml1 "$filename".json -o "$filename".plist | |
| done |
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
| module.exports = { | |
| reporter: function (res) { | |
| var len = res.length; | |
| var str = ""; | |
| res.forEach(function (r) { | |
| var file = r.file; | |
| var err = r.error; | |
| str += file + ":" + err.line + ": error: " + err.reason + "\n"; |
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
| var fs = require('fs'); | |
| var copy = function(srcDir, dstDir) { | |
| var results = []; | |
| var list = fs.readdirSync(srcDir); | |
| var src, dst; | |
| list.forEach(function(file) { | |
| src = srcDir + '/' + file; | |
| dst = dstDir + '/' + file; | |
| //console.log(src); | |
| var stat = fs.statSync(src); |
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
| # Using gree's unity-webview in EditorWindow | |
| # https://github.com/gree/unity-webview | |
| using UnityEditor; | |
| using UnityEngine; | |
| public class WebViewEditorWindow : EditorWindow | |
| { | |
| static GameObject go; | |
| static WebViewObject wvo; |
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
| // Using the built-in Unity's in-editor WebView | |
| using UnityEditor; | |
| using UnityEngine; | |
| using System.Reflection; | |
| // cf. http://qiita.com/kyusyukeigo/items/a7d3940b95c4ec224d12 (in Japanese) | |
| public class TwitterWindow : ScriptableObject | |
| { | |
| [MenuItem("Window/Twitter")] |
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/bash | |
| remotepath="http://www.example.com" | |
| urldecode() { | |
| # urldecode <string> | |
| local url_encoded="${1//+/ }" | |
| printf '%b' "${url_encoded//%/\\x}" | |
| } |