Skip to content

Instantly share code, notes, and snippets.

View Furffico's full-sized avatar
🎯
Focusing

Nagakawa Yuno Furffico

🎯
Focusing
View GitHub Profile
@Furffico
Furffico / urlbuilder.py
Last active June 25, 2022 06:08
url builder for python
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
@Furffico
Furffico / bvid2avid.go
Last active February 2, 2023 07:04
golang code of converting bilibili bvid to avid, and vice versa
package utils
import (
"fmt"
"strconv"
"strings"
)
const table = "fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF"
@Furffico
Furffico / gameofLife.py
Last active October 31, 2022 13:20
Simple implementation of Conway's Game of Life in python
#!/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
#!/usr/bin/python3
import numpy as np
from PIL import Image
FULL_SCALE = "$@B%8&WM#*oahkbdpqwmZO0QLCJUYXzcvunxrjft/\\|()1{}[]?-_+~<>i!lI;:,\"^'\`. "
MINIMAL_SCALE = "@%#*+=-:. "