Skip to content

Instantly share code, notes, and snippets.

View timrodz's full-sized avatar

Juan Morais timrodz

View GitHub Profile
@timrodz
timrodz / System Design.md
Created May 22, 2022 23:08 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
using System;
using UnityEngine;
public static class Extensions_Math
{
// ...
public static float VectorToRad(this Vector2 thisVec){
return Mathf.Atan2(thisVec.y, thisVec.x);
@timrodz
timrodz / MinMaxAttribute.cs
Created November 29, 2017 01:11 — forked from LotteMakesStuff/MinMaxAttribute.cs
MinMax property drawer for Unity - Add a [MinMax] attribute to a property to draw a useful min/max setting slider.
// NOTE DONT put in an editor folder
using UnityEngine;
public class MinMaxAttribute : PropertyAttribute
{
public float MinLimit = 0;
public float MaxLimit = 1;
public MinMaxAttribute(int min, int max)