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 11, 2025 20:26
Classic Notepad Clone (Partially) Implementation in PowerShell
using namespace System.IO;using namespace System.IO.Compression;$i=New-Object MemoryStream -ArgumentList @(,[Convert]::FromBase64String('7Vttc9s4kv4rOBbLJU4sluzsbc2YxdqTZTvnmvjlLCe5PVVqApFNCRcI0AJgZK1H//2qQfFNImVZnrn7cl8SES+NRqO70f00nGomJkTQGeg5jYAMl9rAzL++C9Lmnkd4Mrv6/AeYpJyqy6e5Aq2ZFLpt+IWiCyYmbd1fmIjlQvtXUs100I/j7uNyDqTb1xpmY768pbODxubLaspJ13YIWJDuZ8pTILew6N6N/xsiE7hUhM5HZuCexk7Ako5L1UT7A5kKQ7oTQ3reszuMFJubs4Tx0HaPel9XeWOchA6KhFwxDpp0fvLNk/F+t//93ue8bP8JW39ygnwmiCgcXYpIxkxMvp6dfXq8+jkY9edzziJqmBRfz84uBR1z+Mx0SvnQLDnojrc5ZghmIGdzatiYA7LyACIGxcTkAhKactNxE8o1eMXKSYjCQDGS7r2Sc1BmSf7tecj+CbYHf3R+7vWO/9rrecF1JEU4yuSKv/XXs7MKB8ENE2yWzuqz/9LrHb/H2f04/g1XGnCJGhA+ZxI8+eoPqIiAh10hDelolnirVcGhGVtSuJtz+VTj8kJG30PninHuBOdSxaCsYELnVgpwgmGkJOfnVOnQOZdm6gQ3KTeMMwGha1QKwRep4i+KzsNMLEE/imBu9CMdrwf0OZeLCyXn+Xcc/4acDKZUTCAOC4VImZ8dUByWjOO+PolYBuk8Xtm5F4pOLoUBVdn8ZZJAZMJc4bDpghrqfwCD/98r0CBMZ4QfKD5qUOyoS8iY5z2PkCr+zihh70DOlyvgGpo6UTqrkh+7vWc3QeUMG1loXdtaiZ2YmwkHNBMFJlVixZJOeaRFa82G7ORR72sg50kppl9h+WkePhffNzLVkLesgtEPyeKvBR1/IIV
// 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