This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import numpy as np | |
from PIL import Image | |
FULL_SCALE = "$@B%8&WM#*oahkbdpqwmZO0QLCJUYXzcvunxrjft/\\|()1{}[]?-_+~<>i!lI;:,\"^'\`. " | |
MINIMAL_SCALE = "@%#*+=-:. " | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
####################################### | |
# Author: furffy@github.com # | |
# License: GNU GPLv3 # | |
# Written for SUMSC Hackathon 2022 # | |
####################################### | |
from typing import Tuple | |
import numpy as np | |
import time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package utils | |
import ( | |
"fmt" | |
"strconv" | |
"strings" | |
) | |
const table = "fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from urllib.parse import urlencode, quote, urlsplit, unquote, urlunsplit | |
class Url: | |
def __init__(self, scheme: str, host: str, path: str = "", port: int = 0, anchor: str = "", **query): | |
self._scheme = scheme | |
self._host = host | |
self._port = 0 | |
self._path = "" | |
self._query = query | |
self._anchor = anchor |