Skip to content

Instantly share code, notes, and snippets.

View Mistium's full-sized avatar
🥥
i am arthur! king of the britans

Mistium

🥥
i am arthur! king of the britans
View GitHub Profile
log "hello world"

The app:

image

hash = "81dc9bdb52d04dc20036dbd8313ed055"
characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890"
len = characters.len
check = ""
vals = 12.newVector()
est_time = 0
total = 0
max = 1
start_local = timestamp
out = {}
function parseTemplate(str) {
let depth = 0;
let cur = '';
const arr = [];
for (let i = 0; i < str.length; i ++) {
if (str[i] + str[i + 1] === '${') {
if (depth === 0) {
arr.push(cur);
cur = "$";
}
Object.defineProperty(Error.prototype, "lineNumber", {
configurable: true,
enumerable: false,
get: function () {
if (!this.stack) return undefined;
const match = this.stack.match(/:(\d+):\d+\)?$/m);
return match ? Number(match[1]) : undefined;
}
});