Skip to content

Instantly share code, notes, and snippets.

Sep 15 12:14:17 wordgrams(UnityFramework)[2089] <Notice>: [UniversalDeepLink load]
Sep 15 12:14:17 wordgrams(UnityFramework)[2089] <Notice>: [UniversalDeepLink swizzle]
Sep 15 12:14:17 wordgrams(UnityFramework)[2089] <Notice>: Added instance method `_Universal_Deep_Link_Plugin_Application:didFinishLaunchingWithOptions:` of UniversalDeepLinkAppDelegate to UnityAppController with success
Sep 15 12:14:17 wordgrams(UnityFramework)[2089] <Notice>: Exchanged instance method `_Universal_Deep_Link_Plugin_Application:didFinishLaunchingWithOptions:` with `application:didFinishLaunchingWithOptions:` in UnityAppController
Sep 15 12:14:17 wordgrams(UnityFramework)[2089] <Notice>: Replaced instance method `application:didFinishLaunchingWithOptions:` of UniversalDeepLinkAppDelegate from UnityAppController with success
Sep 15 12:14:17 wordgrams(UnityFramework)[2089] <Notice>: Added instance method `_Universal_Deep_Link_Plugin_Application:openURL:options:` of UniversalDeepLinkAppDelegate to UnityAppController with success
Sep
@jmcguirk
jmcguirk / 9b-output.txt
Created December 13, 2019 03:56
9b Output
[INFO] 0ms - Loading intcode v3 machine from source-data/input-day-09a.txt
[INFO] 0ms - [EXEC - 0] MUL IMM IMM POS
[INFO] 0ms - [EXEC - 1] LT POS IMM POS
[INFO] 0ms - [EXEC - 2] JIT POS IMM
[INFO] 0ms - [EXEC - 3] ADD IMM IMM POS
[INFO] 0ms - [EXEC - 4] REL IMM
[INFO] 0ms - [EXEC - 5] REL REL
[INFO] 0ms - [EXEC - 6] REL POS
[INFO] 0ms - [EXEC - 7] REL REL
[INFO] 0ms - [EXEC - 8] REL REL
@jmcguirk
jmcguirk / OrbitSnippet.cs
Created July 22, 2016 22:09
Camera Vertical Orbit Snippet
public virtual void PitchBy(float amount) {
Vector3 originalPosition = gameboardCamera.transform.position;
Vector3 originalAngle = gameboardCamera.transform.eulerAngles;
if (!orbitOriginSet) {
verticalMoveOrigin = gameboardCamera.transform.position + (gameboardCamera.transform.forward * manager.vertical_orbit_radius);
orbitOriginSet = true;
}
float yRotation = gameboardCamera.transform.localEulerAngles.y;
float zRotation = gameboardCamera.transform.localEulerAngles.z;
gameboardCamera.transform.RotateAround(verticalMoveOrigin, Vector3.Cross(gameboardCamera.transform.forward, Vector3.up), amount * manager.sensitivity_pitch);
@jmcguirk
jmcguirk / OrbitSnippet.cs
Created July 22, 2016 22:08
Camera Vertical Orbit Script
public virtual void PitchBy(float amount) {
Vector3 originalPosition = gameboardCamera.transform.position;
Vector3 originalAngle = gameboardCamera.transform.eulerAngles;
if (!orbitOriginSet) {
float camPitchAngle = gameboardCamera.transform.localEulerAngles.x;
verticalMoveOrigin = gameboardCamera.transform.position + (gameboardCamera.transform.forward * manager.vertical_orbit_radius);
orbitOriginSet = true;
}
float yRotation = gameboardCamera.transform.localEulerAngles.y;
float zRotation = gameboardCamera.transform.localEulerAngles.z;
Shader "GridShader" {
Properties {
_GridThickness ("Grid Thickness", Float) = 0.01
_GridSpacing ("Grid Spacing", Float) = 10.0
_GridColour ("Grid Colour", Color) = (1.0, 1.0, 1.0, 1.0)
_BaseColour ("Base Colour", Color) = (1.0, 0.0, 0.0, 0.0)
}
SubShader {
public void Run(){
ThreadPool.QueueUserWorkItem((o) =>
{
while (true)
{
TcpClient client = server.AcceptTcpClient();
ThreadPool.QueueUserWorkItem((c) =>
{
try{
public void Run(){
ThreadPool.QueueUserWorkItem((o) =>
{
while (true)
{
TcpClient client = server.AcceptTcpClient();
ThreadPool.QueueUserWorkItem((c) =>
{
try{
ProcessNewClient(client);
@jmcguirk
jmcguirk / sketch2.json
Created May 16, 2016 17:30
Requirements Sketch 2
{
"entityTemplateId": "e_chest_basic",
"inherits": "e_base",
"components": {
"asset" : {
"defaultPrefab" : {
"path" : "UI/BasicChest"
}
},
"shop" : {
@jmcguirk
jmcguirk / sketch.json
Created May 16, 2016 17:29
Requirements Schema
{
"entityTemplateId": "e_chest_basic",
"inherits": "e_base",
"components": {
"asset" : {
"defaultPrefab" : {
"path" : "UI/BasicChest"
}
},
"shop" : {
@jmcguirk
jmcguirk / A.json
Created January 28, 2016 18:37
FlatBuffers caching proof of concept
{
"Reference" :{
"TestValue": "A"
}
}