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
using System.Linq; | |
using System.Runtime.CompilerServices; | |
using UnityEngine.Assertions; | |
using UnityEngine; | |
namespace UGS.unityutils { | |
/// <summary> | |
/// Log when collisions and triggers are entered and exited. | |
/// </summary> | |
public sealed class CollisionHelper : MonoBehaviour { |
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
/** | |
* Enumeration of valid commands. | |
*/ | |
export type Command = 'RegisterGame' | 'GameToController' | 'ControllerToGame'; |
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
// Advent of code 2020, Day 5 | |
import fs from 'fs'; | |
import assert from 'assert'; | |
function convertStringToSeatId(seatCode: string): number { | |
return (Array.prototype.map.call(seatCode, (c: string): number => { | |
switch (c) { | |
case 'F': | |
case 'L': |
OlderNewer