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
// Close ports if they were already open under another configuration | |
if (catch(`commandPort -name ":7001" -close True`)) { | |
warning "Could not close port 7001 (maybe it is not opened yet...)"; | |
} | |
if (catch(`commandPort -name ":7002" -close True`)) { | |
warning "Could not close port 7002 (maybe it is not opened yet...)"; | |
} | |
// Open new ports | |
commandPort -name ":7001" -sourceType "mel"; |
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 ffmpeg --with-vpx --with-libvpx --with-vorbis --with-libvorbis --with-theora --with-libtheora --with-libogg --with-gpl --with-version3 --with-nonfree --with-postproc --with-libaacplus --with-libass --with-libcelt --with-libfaac --with-libfdk-aac --with-libfreetype --with-libmp3lame --with-libopencore-amrnb --with-libopencore-amrwb --with-libopenjpeg --with-openssl --with-libopus --with-libschroedinger --with-libspeex --with-libvo-aacenc --with-libx264 --with-libxvid |
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
<EditorStyle name="MonoDevelop 2.4" _description="Old default MonoDevelop theme"> | |
<Style name="text" color="#000000" bgColor="#FFFFFF" /> | |
<Style name="text.background.readonly" color="#FAFAFA" /> | |
<Style name="linenumber" color="#888A85" bgColor="#FDFDFF" /> | |
<Style name="linenumber.highlight" color="#555753" /> | |
<Style name="iconbar" color="#FDFDFF" /> | |
<Style name="iconbar.separator" color="#BABDB6" /> | |
<Style name="fold" color="#BABDB6" bgColor="#FDFDFF" /> | |
<Style name="fold.highlight" color="#555753" /> | |
<Style name="fold.togglemarker" color="#000000" /> |
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
# OS X Tweaks | |
# =========== | |
# General | |
# ------- | |
# Disable smart quotes and dashes | |
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false | |
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false |
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
/// <summary> | |
/// Yield on a DoForSeconds object within a coroutine and the supplied callback method | |
/// will be invoked during each Unity Update cycle. | |
/// | |
/// Example: yield return DoForSeconds (1, (elapsed, duration) => { Debug.Log (elapsed/duration); }); | |
/// </summary> | |
public class DoForSeconds : CustomYieldInstruction | |
{ | |
public delegate void UpdateCallback (float elapsed, float duration); | |
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.Collections; | |
using System.Collections.Generic; | |
/// <summary> | |
/// Debugging tools | |
/// </summary> | |
public static class Instruments | |
{ | |
static string stopwatchName; |
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 UnityEditor; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class CreateMergedMesh : ScriptableWizard | |
{ | |
[MenuItem ("Prototype/Create Merged Mesh")] | |
static void CreateDataMesh () | |
{ |
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.Collections; | |
public class ObliqueCameraProjection : MonoBehaviour | |
{ | |
private Matrix4x4 originalProjection; | |
public Vector2 slideViewport; | |
public Vector2 slideFrustum; | |
public Vector2 slideFarClip; // compound slideViewport and slideFrustum | |
public Vector2 skew; |
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 GetComponentsInChildrenRecursive<T> (Transform parent, List<T> buffer) | |
where T : Component | |
{ | |
foreach (Transform t in parent) { | |
var c = t.GetComponent<T> (); | |
if (c) { | |
buffer.Add (c); | |
} | |
GetComponentsInChildrenRecursive (t, buffer); | |
} |
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
# ##### BEGIN GPL LICENSE BLOCK ##### | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 2 | |
# of the License, or (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
OlderNewer