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
# https://malie.io/static | |
import requests as r | |
from pathlib import Path | |
import logging as log | |
import time | |
log.basicConfig(level=log.INFO) | |
#log.basicConfig(level=log.DEBUG) | |
sets = r.get("https://malie.io/static/metamon/SetDataMap.json").json().keys() | |
dest = Path("card_images") |
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
/* New staff highlighting system, utilizing the ::before pseudoelement. | |
* NOW WORKS FOR JS-UPDATED RECENT CHANGES! | |
* Made into SCSS for easier updating: https://gist.github.com/C-Ezra-M/f79e429dfee8e014ef9123fd8357f91c | |
*/ | |
@use 'sass:list'; | |
@use 'sass:meta'; | |
/* Fix Minerva redlink selectors */ | |
a.new > *, |
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 sys import argv, exit | |
from ast import literal_eval | |
from pathlib import Path | |
from time import time | |
import requests | |
USAGE = 'USAGE: `python download.py [dirname="."]`' | |
class HTTP403Forbidden(Exception): pass |
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
""" | |
A way the proposed ``??``, ``?.`` and ``?[`` operators could be implemented. | |
For now, this lacks an implementation for ``??=``. | |
""" | |
from __future__ import annotations | |
from types import NoneType | |
from typing import Hashable, NamedTuple |