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; | |
namespace MiscCSharp { | |
public static class AbstractGenericProtected { | |
public static void Main(string[] args) { | |
var debugGraph = new DebugGraph { start = 5, end = 4, numRecords = 10 }; | |
var floatSeries = new FloatSeries(debugGraph, "series1"); | |
floatSeries.doStuff(); | |
System.Console.WriteLine("All done"); |
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
.../VR-Step/Scripts/WIPController.cs | 28 ++++++++++++++++++++-- | |
1 file changed, 26 insertions(+), 2 deletions(-) | |
diff --git a/Assets/VR-Step/Scripts/WIPController.cs b/Assets/VR-Step/Scripts/WIPController.cs | |
index 2138c61..fa6e828 100644 | |
--- a/Assets/VR-Step/Scripts/WIPController.cs | |
+++ b/Assets/VR-Step/Scripts/WIPController.cs | |
@@ -60,6 +60,12 @@ namespace VRStep | |
[Tooltip("Threshold on the accelerometer in the up direction of when to detect a jump")] | |
public float jumpDetectionThreshold = 1; |
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
static void save(string filePath) { | |
// ... | |
using (TextWriter writer = File.CreateText(filePath)) {var serializer = getSerializer(errors); | |
var errors = new List<string>(); | |
var serializer = getSerializer(errors); | |
serializer.Serialize(writer, snapshot); | |
logErrors(errors); | |
} | |
// ... |
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 UnityEngine; | |
namespace UGS { | |
class SizeTesting : MonoBehaviour { | |
private const string msgFmt = "{0}:\t\t{1:0.000} bytes"; | |
public void Awake() { | |
v<byte>(); | |
v<int>(); |
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
$ GitPortPatch.sh 22b7f80c22ac1861e945ddf30e30671c46b53d6e | |
Getting commit message | |
Getting patch | |
Getting affected filenames | |
Getting current status of those files... | |
Checking them... | |
Ensuring affected files are ready for patching... | |
Preparing Assets/TerraVolPack/TerraVol/Scripts/Data/MeshData.cs | |
Preparing Assets/TerraVolPack/TerraVol/Scripts/Map/Chunk.cs | |
Apply patch? y/n : y |
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
#!/usr/bin/env python | |
import sys, os, dropbox, time | |
from datetime import datetime | |
APP_KEY = 'API_KEY' # INSERT APP_KEY HERE | |
APP_SECRET = 'APP_SECRET' # INSERT APP_SECRET HERE | |
DELAY = 0.2 # delay between each file (try to stay under API rate limits) | |
HELP_MESSAGE = \ | |
"""Note: You must specify the path starting with "/", where "/" is the root |
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; | |
namespace UGS.unityutil.attributes { | |
/// <summary> | |
/// Checks non-null (and non-empty if applied to a string, non-zero if a scalar or Vector, etc) in a custom inspector. | |
/// Colours red if any problems. | |
/// </summary> | |
public sealed class NonNullAttribute : PropertyAttribute { | |
} |
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 UnityEngine; | |
namespace UGS { | |
/// <summary> | |
/// See <seealso cref="http://docs.unity3d.com/ScriptReference/Application.CaptureScreenshot.html"/>. | |
/// N.b. docs now say "Removed in version 2017.3.0p1" | |
/// Now API call includes super-size facility https://docs.unity3d.com/ScriptReference/ScreenCapture.CaptureScreenshot.html | |
/// </summary> |
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.Collections; | |
using UnityEngine; | |
namespace UGS.environ { | |
/// <summary> | |
/// Rotates the skybox of the scene or camera. | |
/// Requires a special shader. | |
/// </summary> | |
internal sealed class SkyBoxRotation : 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
using Unity.Burst; | |
using Unity.Entities; | |
using Unity.Physics.Authoring; | |
using UnityEngine; | |
using UnityEngine.Assertions; | |
namespace UGS { | |
/// <summary> | |
/// Tag component for causing things to stick. | |
/// Could I also do this with a Physics.Material "Custom Flags" or "Collision Filter" ? |