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/bash | |
STATIC_PAGE_URL=$1 | |
mkdir -p public | |
if [[ ! -f public/index.html ]]; then curl $STATIC_PAGE_URL > public/index.html; fi | |
ruby -run -e httpd ./public -p 8000 |
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
[RequireComponent(typeof(Camera))] | |
public class CameraEffectSwitcher : MonoBehaviour | |
{ | |
Dictionary<CameraEffectType, MonoBehaviour> cameraEffectComponents = new Dictionary<CameraEffectType, MonoBehaviour>(); | |
void Awake() | |
{ | |
var components = GetComponents<Component>().Where(c => { | |
return c.GetType().ToString().Equals("ColorCorrectionCurves"); | |
}).Select(c => { | |
return c as MonoBehaviour; |
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
// | |
// UITableView+StrongScroll.h | |
// | |
// Created by thedoritos. | |
// Prevents the scroll on table view from being stolen | |
// by UIButtons on UITableViewCells. | |
// | |
#import <UIKit/UIKit.h> |
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
WORKSPACE=/Path/To/Your/Unity/Project | |
PROJECT_NAME=YourUnityProjectName | |
# suppose Builder.cs has BuildXcodeProject method | |
/Applications/Unity/Unity.app/Contents/MacOS/Unity -projectPath $WORKSPACE -quit -batchmode -executeMethod Builder.BuildXcodeProject | |
XCODE_WORKSPACE_CONFIG_PATH=$PROJECT_NAME/Unity-iPhone.xcworkspace | |
SCHEME=Unity-iPhone | |
CONFIGURATION=Release |
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
target 'Unity-iPhone' do | |
end | |
target 'Unity-iPhone Tests' do | |
end | |
pre_install do |installer| | |
XCODE_PROJECT_PATH = './Unity-iPhone.xcodeproj' |
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
namespace LitJson | |
{ | |
// ... | |
public class JsonMapper | |
{ | |
// .. | |
private static void AddObjectMetadata (Type type) | |
{ |
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 System; | |
using System.Collections.Generic; | |
using System.Threading; | |
using NUnit.Framework; | |
using UnityEngine; | |
namespace UnityTest | |
{ | |
internal class Subject : MonoBehaviour | |
{ |