Skip to content

Instantly share code, notes, and snippets.

View andywatts's full-sized avatar
🏠
Working from home

Andrew Watts-Curnow andywatts

🏠
Working from home
View GitHub Profile
@andywatts
andywatts / extensions.css
Last active December 9, 2017 14:02
Tasty extension style
/* colors
Amber #da6d2e
RedDark #730000
GreenLight #5cb200
GreenDark e3ecdfe3ecdf; #437638
GrayLight #e3ecdf; #bcbdb8
GrayDark #959595;
Warning #9a972d; #dcd85c
Info #3e8aa4
*/
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//using Unity.Collections;
public class TextureTest : MonoBehaviour {
public Texture2DArray array;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerInput : Singleton<PlayerInput> {
public GameObject leftAnchor;
public GameObject rightAnchor;
public GameObject headAnchor;
using Unity.Entities;
using Unity.Collections;
using UnityEngine;
using Unity.Jobs;
using Unity.Burst;
// ICOMPONENTDATA
public struct MyICD : IComponentData {
public int id;
using UnityEngine;
using CMF;
public class CameraControl : CameraInput
{
public Controls controls; // ScriptableObject with InputActions; Provides for global en|disabling InputMaps between menu/game/dash
Vector2 look;
void OnEnable() { controls.Value.CharacterController.Enable(); }
using UnityEngine;
using UnityEngine.Networking;
using Cysharp.Threading.Tasks;
public class TestUniTask : MonoBehaviour
{
async void Start()
@andywatts
andywatts / gist:fb1c2816ded092770fa08694c08634d3
Created April 30, 2022 14:50
golang routeguide server logs from Unity request
2022/04/30 10:32:20 http2: Framer 0x140000de000: wrote SETTINGS len=6, settings: MAX_FRAME_SIZE=16384
2022/04/30 10:32:20 http2: Framer 0x140000de000: read SETTINGS len=12, settings: ENABLE_PUSH=0, HEADER_TABLE_SIZE=0
2022/04/30 10:32:20 http2: Framer 0x140000de000: read WINDOW_UPDATE len=4 (conn) incr=67043329
2022/04/30 10:32:20 http2: Framer 0x140000de000: wrote SETTINGS flags=ACK len=0
2022/04/30 10:32:20 http2: Framer 0x140000de000: read SETTINGS flags=ACK len=0
2022/04/30 10:32:20 http2: Framer 0x140000de000: read HEADERS flags=END_HEADERS stream=1 len=204
2022/04/30 10:32:20 http2: decoded hpack field header field ":method" = "POST"
2022/04/30 10:32:20 http2: decoded hpack field header field ":scheme" = "http"
2022/04/30 10:32:20 http2: decoded hpack field header field ":authority" = "localhost:50051"
2022/04/30 10:32:20 http2: decoded hpack field header field ":path" = "/routeguide.RouteGuide/GetFeature"
/*
Adapted from https://github.com/sindresorhus/github-markdown-css
The MIT License (MIT)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights