Skip to content

Instantly share code, notes, and snippets.

View JLChnToZ's full-sized avatar

Jeremy Lam aka. Vistanz JLChnToZ

View GitHub Profile
@JLChnToZ
JLChnToZ / lp.ps1
Last active December 13, 2025 18:05
Classic Notepad Clone (Partially) Implementation in PowerShell
using namespace System.IO;using namespace System.IO.Compression;$s=New-Object StreamReader((New-Object DeflateStream((New-Object MemoryStream -ArgumentList @(,[Convert]::FromBase64String('3Rtpc9s29q9wORxHbCSO7HQ7rTmcrizbWU/iYy0n2a4mk4XIRwkbCFABMLKq6r/vPFA8RR222/2wXxIRx8M78G44UZSPLU6moGYkBGuwUBqm3tWtnzTPPMCj3jXn3cM4YURePM4kKEUFV9uWn0syp3y8bfoT5ZGYK+9SyKnyHcID+z3VcEci26dxyyFyrLy+SLi2OmNtdd2lMwglnenTmLLATA+7n1fZYBQHNiJoXVIGymp95+lH7f5u/vu9x1gx/h2Ofmf72U7gYTC84KGIKB9/Pj398HD5o9+Los7DYgZWp6cUTEdscUOmG6TtXlWlUBFmdcw0h7nV+UhYAtYNzDu3o/9AqP1hbzZjNCSaCv759PSCkxGDj1QlhA30goFqufU1A9B9MZ0RTUcMkPh74BFIysfnEJOE6ZYTE6bAzWmNAzwcEbI6d1LMQOqF9bflgP4GZgZ/tH7sdts/dLuufxUKHgxTavC3+nx6WsLAv6acTpNpdff33W77De7uRdEXPKnPBN6AYJnK7Piz1yc8BBZ0uNAtRafuauU7cRjkSHp9wbUUTPnDb4JGn5049HpR1GplK/TInIckn4nHCinnIvwa2JeUMds/EzICabgX2DeCg+0PQikYOyNSBfaZ0BPbv06YpoxyCBwtE/A/CRl9kmQWpLzze2EIM60eyGi9oMeYmJ9LMcu+o+gLYtKfED6GKMjvaUK9VIpRTpoeIfEfeCT8JPq2MnvPJRlfcA2yxKGLOIZQB5ke4NA50cR7Cxr/v5OggOvWED+Qx0SjbPCKI2KuuxwiVPydQsLZvpgtVsAUNE0id1YFPoa8pROjzgSNKGw9
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'
Shader "Debuggers/AudioLinkLocator" {
Properties {
_Scale ("Distance", Range(0.0001, 10)) = 1
}
SubShader {
Tags {
"RenderType" = "Opaque"
"Queue" = "Overlay"
@JLChnToZ
JLChnToZ / BakeryAutoMigrate.cs
Created September 4, 2024 15:34
One-Click migrates all supported baked lights on scene to use Bakery.
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.SceneManagement;
using UnityEditor;
public static class BakeryAutoMigrate {
static Texture2D spotCookie;
[MenuItem("Bakery/Utilities/Migrate and Adjust Lights", priority = 60)]
#if UNITY_EDITOR
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
using UnityEditor;
using QvPen.UdonScript;
using QvPen.UdonScript.UI;
public class QvPenTMProMigrator {
@JLChnToZ
JLChnToZ / AutoPasswordPrompt.cs
Last active March 11, 2024 11:18
Prompt you to enter the keystore password if you forget before starting a new Android build in Unity.
using UnityEngine;
using UnityEditor;
using UnityEditor.Build;
public class AutoPasswordPrompt : EditorWindow {
[InitializeOnLoadMethod]
static void Register() => BuildPlayerWindow.RegisterBuildPlayerHandler(BuildHandler);
static bool IsUnfilled() =>
Shader "Unlit/PolyRhythmVisualizer" {
Properties {
_TimeCode ("Input Time", Float) = 0
_OuterRingFreq ("Outer Ring Frequency", Float) = 1
_InnerRingFreq ("Inner Ring Frequency", Float) = 0.922
_RingCount ("Ring Count", Int) = 35
_VibrantFreq ("Vibrant Frequency", Float) = 2
_Vibrant ("Vibrant", Range(0, 1)) = 0.5
_Decay ("Decay", Range(0, 10)) = 2
[Header(Cosine Gradiant)]
@JLChnToZ
JLChnToZ / Limitless.cs
Last active May 17, 2024 12:25
The dynamic access pass to any methods, properties and fields of any types and instances in C#.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Dynamic;
using System.Reflection;
using System.Runtime.CompilerServices;
namespace JLChnToZ.CommonUtils.Dynamic {
using static LimitlessUtilities;
/// <summary>
@JLChnToZ
JLChnToZ / ObjectSnapshot.cs
Last active May 17, 2024 12:26
Take snapshots of properties of objects/components on play mode and re-apply them when stopped.
using System;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityObject = UnityEngine.Object;
@JLChnToZ
JLChnToZ / BoneEditorWindow.cs
Last active December 11, 2023 16:34
Unity's missing Skinned Mesh Bone Reference Editor
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEditor;
using UnityEditorInternal;
public class BoneEditorWindow : EditorWindow {
const string BASE_MENU_PATH = "CONTEXT/" + nameof(SkinnedMeshRenderer) + "/";
const string MENU_PATH = BASE_MENU_PATH + "Edit Bone References";
@JLChnToZ
JLChnToZ / MeshCombinerWindow.cs
Last active April 1, 2023 16:27
A clean mesh combiner for Unity
/**
* The MIT License (MIT)
*
* Copyright (c) 2023 Jeremy Lam aka. Vistanz
*
* 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
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is