Skip to content

Instantly share code, notes, and snippets.

@WarperSan
WarperSan / ReadUnityVersion.ps1
Created September 28, 2025 17:05
Basic script that attempts to read the unity version of the given executable
param (
[Parameter(Mandatory=$true)]
[string]$file = $null
)
function Read-ExactUnityVersion {
param (
[string]$file
)
@WarperSan
WarperSan / script.py
Created September 1, 2025 15:53
The script I've wrote to get in Data Annotation
import bs4.element
import requests
from bs4 import BeautifulSoup
URL = "https://docs.google.com/document/d/e/2PACX-1vRPzbNQcx5UriHSbZ-9vmsTow_R6RRe7eyAU60xIF9Dlz-vaHiHNO2TKgDi7jy4ZpTpNqM7EvEcfr_p/pub"
def get_html(url: str) -> str | None:
try:
response = requests.get(url)
response.raise_for_status()
// UI Editable properties
uniform sampler2D _FaceTex; // Alpha : Signed Distance
uniform float _FaceUVSpeedX;
uniform float _FaceUVSpeedY;
uniform fixed4 _FaceColor; // RGBA : Color + Opacity
uniform float _FaceDilate; // v[ 0, 1]
uniform float _OutlineSoftness; // v[ 0, 1]
uniform sampler2D _OutlineTex; // RGBA : Color + Opacity
uniform float _OutlineUVSpeedX;
@WarperSan
WarperSan / ccb2json.cs
Created April 12, 2025 18:19
Converts a valid CCB file to a JSON file
using System.Text.Json;
using System.Xml;
var target = args[0];
var output = args[1];
var doc = new XmlDocument();
doc.Load(target);
var root = doc.SelectSingleNode("plist/dict") ?? throw new NullReferenceException();