Skip to content

Instantly share code, notes, and snippets.

View 9-zzz's full-sized avatar
🤒
Out sick

9-zzz

🤒
Out sick
View GitHub Profile
@yasirkula
yasirkula / CircleGraphic.cs
Last active June 2, 2024 10:32
Create circles/ellipses in Unity UI system in one of three modes: FillInside, FillOutside and Edge.
using UnityEngine;
using UnityEngine.UI;
#if UNITY_EDITOR
using UnityEditor;
// Custom Editor to order the variables in the Inspector similar to Image component
[CustomEditor( typeof( CircleGraphic ) ), CanEditMultipleObjects]
public class CircleGraphicEditor : Editor
{
@keijiro
keijiro / hide_pen_cursor.md
Last active August 18, 2016 13:49
How to hide pen cursor in Windows 10
  1. Launch regedit.exe
  2. Edit the registry key HKEY_CURRENT_USER\Control Panel\Cursors\PenVisualization, or create a DWORD key if it doesn't exist.
  3. Set the value to 0.
  4. Restart Windows.
git() { if [[ $@ == "gud" ]]; then curl https://gist.githubusercontent.com/nicksahler/8cb401e6ce030a00f2764e8122a7823b/raw/aba6ab58a36799bf1f75e046e663eed0a76c03f0/gistfile1.txt -s ; else command git "$@"; fi; }