View UnityTweakGUI.cs
using UnityEngine; | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Reflection; | |
///<summary> | |
/// A simple in-game GUI for Unity that allows tweaking of script fields | |
/// and properties marked with [TweakableMember] | |
///</summary> |
View MBExecutableAlgorithm
public interface MBExecutableAlgorithm<T> | |
{ | |
public void execute( T dataSet ); | |
} |
View MicroBenchmarker
import tmachine.batchprocessors.MBExecutableAlgorithm; | |
import java.text.DecimalFormat; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.function.Consumer; | |
import java.util.function.Function; | |
/** | |
* Created by adam on 29/03/16. |
View ProcPhysicsSetVelocities
import java.awt.geom.Rectangle2D; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.function.Consumer; | |
import java.util.function.Function; | |
public class ProcPhysicsSetVelocities | |
{ | |
View gist:42253d7bb9320bbb49bf
using UnityEngine; | |
using System.Collections; | |
using UnityEngine.UI; | |
using System.Reflection; | |
/** | |
License: do whatever you want. | |
Questions etc: @t_machine_org | |
*/ |
View gist:3839993
@implementation UIView (swizzled) | |
-(void) swizzledSetNeedsDisplay | |
{ | |
//if( _currentFrame != _lastDrawnFrame ) | |
{ | |
//[super setNeedsDisplay]; | |
} | |
} | |
@end |
View .gitignore
######################### | |
# .gitignore file for Xcode4 and Xcode5 Source projects | |
# | |
# Apple bugs, waiting for Apple to fix/respond: | |
# | |
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation? | |
# | |
# Version 2.6 | |
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
# |
View gist:3705459
########################################## | |
# | |
# c.f. http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4 | |
# | |
# Version 2.82 | |
# | |
# Latest Change: | |
# - MORE tweaks to get the iOS 10+ and 9- working | |
# - Support iOS 10+ | |
# - Corrected typo for iOS 1-10+ (thanks @stuikomma) |