Skip to content

Instantly share code, notes, and snippets.

View katsaii's full-sized avatar
🟣
Icon by NightMargin

Katt katsaii

🟣
Icon by NightMargin
View GitHub Profile
@katsaii
katsaii / array_clone.gml
Last active July 26, 2026 18:06
Misc GML snippets from the olden times (pre-2.3 update)
/// @desc Returns a clone of an array.
/// @param variable {Array} The array to clone.
/// @author Kat @katsaii
if (array_length_1d(argument0) < 1) then return [];
argument0[0] = argument0[0];
return argument0;
@katsaii
katsaii / gyazo-thumb-dl.js
Created January 8, 2026 23:44
JS console command to download upscaled thumbnails of Gyazo images, bypasses the pay wall at the cost of loss of image quality.
(async () => {
const require_ = async (jsURL) => {
// we can have a little security vulnerability, as a treat!
return await fetch(jsURL).then(data => data.text()).then(eval);
};
if (!this.includedJSZip) {
this.includedJSZip = true;
await require_("https://raw.githubusercontent.com/Stuk/jszip/refs/heads/main/dist/jszip.min.js");
await require_("https://raw.githubusercontent.com/eligrey/FileSaver.js/refs/heads/master/src/FileSaver.js");
}