Skip to content

Instantly share code, notes, and snippets.

View quasar098's full-sized avatar
🐞
coding bugs 24 hrs a day

quasar098

🐞
coding bugs 24 hrs a day
View GitHub Profile
@quasar098
quasar098 / huffman-n-ary-tree.py
Created August 19, 2023 19:32
huffman coding for n-ary tree
from typing import Union
ALPHABET = "0123" # base 4 example
BASE = len(ALPHABET)
class TextNode:
def __init__(self, char: str, val: str):
self.children = None
@quasar098
quasar098 / asciitable-com-suuuuuucksss.js
Last active May 25, 2023 14:24
asciitable.com removal from google
// ==UserScript==
// @name Remove bad ascii table
// @namespace https://quasar.name
// @version 0.1
// @description screw asciitable.com. whoever made this hot garbage -> why would you ever
// @author quasar098
// @match https://www.google.com/search?q=*
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAACfklEQVR4AWJgYPjPBMQ1QPwMiP/TA0PtqgHbDWX8HyBcw0Bnn2OGBIgxkHjoOWDUAaysANrKACKCIIzCOqRUXQWShKqCgBQClCpCKRRKKUmVhEhIVE5ChShQREQEgbpSBYUCieCqSqkSpZLucl94zDgcbq8+WN7+O/N25p83UFEBk5OwuQlnZ+DzwckJrKxARwckJf2DAbcbxsbg8REAvr7g6Ag2NuDgAN7eMLy8yMifGaiqgvt7AHh6gt5eSEwMrYmNhfZ2TQ5iYoLoDbS1wc8PgP44PT18bUoKFBTIJEAwCJWVURgoK4NAAABOTyE52b6Lj4emJm3L8DDMzWnC8XHpILa2HBqIi4PLS/snRUX2XWEhXFxgeH7GcHsLLhfc3QHA66tDA11dGPb2rJ6aCjc3dvDGRmhowDA0pLrVVQD4/nZowOvFMDpq9akpuyrl5dK6uzHU1UlbWADQSjkyoEYSnZ3SXC6re722tqcHQ3OztMNDAFhacmjg4wNDf7+03FwMIyO2dmAAg8ejLdEqQUmJQwNXVxgWF6UVF2OYnpaWkWFrNSmG+fkocmBtDWyyKXjS0pSAoOf2thLw/Bw+PwlhfV2xXVOjyI7YQG0tIczMSG9ttSZAd0BOjvrE54PdXdXExOiEBAIy
aahed
aalii
aapas
aargh
aarti
abaca
abaci
aback
abacs
abaft
@quasar098
quasar098 / hackmatch.ahk
Created April 7, 2023 00:37
Relatively easy way to get master matcher achievement
Right::
Send {F2 down}
Sleep 5
Send {F2 up}
Send {d down}
Sleep 5
Send {d up}
Send {F2 down}
Sleep 5
Send {F2 up}