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
| public interface Val<out A> { | |
| A value { get; } | |
| } | |
| public interface Ref<A> : Val<A> { | |
| new A value { get; set; } | |
| } | |
| /* Simple heap-allocated reference. */ | |
| public class SimpleRef<A> : Ref<A> { |
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
| Fn<ImmutableArray<KeyValuePair<string, string>>.Builder, Act < string, string>> createAppend = | |
| builder => (key, value) => { | |
| qs.append(key, value); | |
| builder.Add(F.kv(key, value)); | |
| }; | |
| var appendTag = createAppend(tags); | |
| var appendExtra = createAppend(extras); |
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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Tiny Lab Productions Projects</title> | |
| <style> |
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
| static void UpdateCoord(ref float x) { x = x < 0 ? (360 + x) : x; } | |
| public static Vector3 ReCountAngle(Vector3 ang) { | |
| UpdateCoord(ref ang.x); | |
| UpdateCoord(ref ang.y); | |
| UpdateCoord(ref ang.z); | |
| return ang; | |
| } |
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
| // Usage | |
| log.debug(s"Writing batched data to DB (singles: ${data.size}, arrays ${arrayData.size})") | |
| // Implementation | |
| def debug(message: String): Unit = macro LoggerMacro.debugMessage | |
| // Macro | |
| def debugMessage(c: LoggerContext)(message: c.Expr[String]) = { | |
| import c.universe._ | |
| val underlying = q"${c.prefix}.underlying" |
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
| 03-29 11:41:42.130: I/Unity(29707): [T1|DEBUG]> Activating MarsMedia | |
| 03-29 11:41:42.130: I/Unity(29707): UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object) | |
| 03-29 11:41:42.130: I/Unity(29707): UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[]) | |
| 03-29 11:41:42.130: I/Unity(29707): UnityEngine.Logger:Log(LogType, Object, Object) | |
| 03-29 11:41:42.130: I/Unity(29707): UnityEngine.Debug:Log(Object, Object) | |
| 03-29 11:41:42.130: I/Unity(29707): com.tinylabproductions.TLPLib.Logger.UnityLog:logInner(Level, String, Option`1) (at C:\work\unity\funkidracing\unity\Assets\Plugins\Vendor\TLPLib\Logger\Log.cs:206) | |
| 03-29 11:41:42.130: I/Unity(29707): com.tinylabproductions.TLPLib.Logger.LogBase:log(Level, Object, Object) (at C:\work\unity\funkidracing\unity\Assets\Plugins\Vendor\TLPLib\Logger\Log.cs:175) | |
| 03-29 11:41:42.130: I/Unity(29707): com.tinylabproductions.TLPLib.Logger.ILogExts:debug(ILog, Object, Object) (at C:\work\unity\funkidracing\unity\Assets\Plugins\Vendor\TLPLib\Logger\Log.cs:13 |
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
| 03-28 17:15:34.190: I/Unity(31519): [Tm|DEBUG]> Activating MarsMedia | |
| 03-28 17:15:34.190: I/Unity(31519): UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object) | |
| 03-28 17:15:34.190: I/Unity(31519): UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[]) | |
| 03-28 17:15:34.190: I/Unity(31519): UnityEngine.Logger:Log(LogType, Object, Object) | |
| 03-28 17:15:34.190: I/Unity(31519): UnityEngine.Debug:Log(Object, Object) | |
| 03-28 17:15:34.190: I/Unity(31519): com.tinylabproductions.TLPLib.Logger.UnityLog:logInner(Level, String, Option`1) (at C:\work\unity\funkidracing\unity\Assets\Plugins\Vendor\TLPLib\Logger\Log.cs:206) | |
| 03-28 17:15:34.190: I/Unity(31519): com.tinylabproductions.TLPLib.Logger.LogBase:log(Level, Object, Object) (at C:\work\unity\funkidracing\unity\Assets\Plugins\Vendor\TLPLib\Logger\Log.cs:175) | |
| 03-28 17:15:34.190: I/Unity(31519): com.tinylabproductions.TLPLib.Logger.ILogExts:debug(ILog, Object, Object) (at C:\work\unity\funkidracing\unity\Assets\Plugins\Vendor\TLPLib\Logger\Log.cs:13 |
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 | |
| $ErrorActionPreference = "Stop" | |
| # Set-PSDebug -trace 2 -strict # Debugging | |
| [string] $CMD_TEST = "test" | |
| [string] $CMD_BUILD = "build" | |
| if ($args.Count -lt 5) { | |
| Write-Host |
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
| /** Access to ```internal AndroidJavaObject(IntPtr jobject)``` */ | |
| static readonly Fn<object[], AndroidJavaObject> ajoCreator = | |
| PrivateConstructor.creator<AndroidJavaObject>(); | |
| public static AndroidJavaObject cjoReturningNull( | |
| this AndroidJavaObject javaObject, string methodName, params object[] args | |
| ) { | |
| if (args == null) args = new object[1]; | |
| var methodId = AndroidJNIHelper.GetMethodID<AndroidJavaObject>( |
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
| public class HashMap : Binding { | |
| public HashMap(AndroidJavaObject java) : base(java) {} | |
| public HashMap() : base(new AndroidJavaObject("java.util.HashMap")) {} | |
| public HashMap( | |
| IEnumerable<KeyValuePair<AndroidJavaObject, AndroidJavaObject>> enumerable | |
| ) : this() { | |
| foreach (var kv in enumerable) put(kv.Key, kv.Value); | |
| } |