Skip to content

Instantly share code, notes, and snippets.

View u-m-i's full-sized avatar

Aloof u-m-i

  • near to a V60
  • 01:49 (UTC -05:00)
View GitHub Profile
@u-m-i
u-m-i / README.md
Last active March 12, 2026 17:36
Codeforce's way to access input

Basically, for me as a newbie on Competitive Programming was difficult to find the way you are supposed to enter the input of the test cases.
That lead me to find little about how to do so, seeming that everyones supouse that you know, but yes, we don't, so here are how you can expect
input from the judge (the program that executes your script passing it one or more test cases) for all languages allowed.

@u-m-i
u-m-i / ReadOnlyAttribute.cs
Last active February 19, 2024 19:12
The all mighty ReadOnlyAttribute
using UnityEngine;
///<summary> The ReadOnly attribute for fields, allows inheritance and have its own custom drawer </summary>
public class ReadOnlyAttribute : PropertyAttribute
{}
@u-m-i
u-m-i / CustomHelpBox.cs
Last active February 19, 2024 19:04
Editor custom help box
// -----------------------
// Resources for the script:
// https://discussions.unity.com/t/having-text-or-notes-in-the-inspector/69375/7
// https://forum.unity.com/threads/helpattribute-allows-you-to-use-helpbox-in-the-unity-inspector-window.462768/
// https://forum.unity.com/threads/add-info-text-notes-into-the-inspector.265330/
// https://discussions.unity.com/t/give-info-in-inspector/47815
// https://github.com/johnearnshaw/unity-inspector-help/blob/master/HelpAttribute.cs
// https://github.com/ALanMAttano/UnityInspectorInfoTextNote/blob/master/Assets/_Scripts/Tools/Editor/InspectorNote.cs
// https://docs.unity3d.com/ScriptReference/EditorGUILayout.HelpBox.html
// ------------------------
@u-m-i
u-m-i / Binarytree.cs
Created February 17, 2024 23:32
Binary tree (Struct)
// First gist