Skip to content

Instantly share code, notes, and snippets.

@Zezombye
Zezombye / jsonvalidate.js
Created November 26, 2025 02:32
Javascript JSON validator
//Given a string, returns true if the string is the beginning of a valid JSON string.
//This function assumes the string can get cut off, such that "tru" is valid as it is the beginning of "true".
//Same for unclosed strings, arrays, and objects.
function jsonValidate(str) {
let i = 0;
const len = str.length;
const stack = []; // Tracks context: '{' or '['
// Tracks the last successfully parsed token to enforce grammar
@Zezombye
Zezombye / owo.txt
Last active July 28, 2025 14:22
Overwatch custom game icon list
This glitch has returned with team names: https://i.imgur.com/vVaQvH9.png
Patched on 1.48 though.
All credit goes to flarn2006, he was the one who found that glitch!
!!!!
New album, way better organized
ALL sprays, player icons, achievement icons, and other stuff!
https://imgur.com/a/HJoeHy1