Python does not support add program-readable document string to a Enum class value currently, see:
This file contains hidden or 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
<!DOCTYPE html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Document</title> | |
</head> | |
<body> | |
<div id="app" class="container"> | |
<div class="info"> | |
<svg | |
xmlns="http://www.w3.org/2000/svg" |
This file contains hidden or 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 functools import cached_property | |
from timeit import timeit | |
class BaseN: | |
def __init__(self, charset: str) -> None: | |
self.charset = charset | |
self.reverse_charset = {c: i for i, c in enumerate(charset)} | |
assert len(self.charset) == len(self.reverse_charset), "charset must be unique" |
This file contains hidden or 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
import asyncio | |
import random | |
import sys | |
from typing import Optional | |
from websockets.legacy.client import WebSocketClientProtocol | |
from websockets.legacy.client import connect as websockets_connect | |
BUFFER_SIZE = 1024 |
This file contains hidden or 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
import uuid | |
from flask import Flask, request, session | |
from secret import black_list | |
import json | |
app = Flask(__name__) | |
app.secret_key = str(uuid.uuid4()) | |
def check(data): |
This file contains hidden or 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
import asyncio | |
import re | |
from pathlib import Path | |
from urllib.parse import urljoin, urlparse | |
from anyio import open_file | |
from httpx import AsyncClient | |
from loguru import logger | |
MATCH_QUOTES = re.compile(r'["\'](.*?)["\']') |
This file contains hidden or 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
encoding, decoding = ( | |
lambda input_bytes: ( | |
"".join( | |
chr(0x4E00 + sum(1 << i for i, bit in enumerate(reversed(row)) if bit)) | |
for row in ( | |
lambda x, length: ( | |
tuple(next(it, None) for it in x) for _ in range(length) | |
) | |
)( | |
[((char >> i) & 1 for char in input_bytes for i in reversed(range(8)))] |
This file contains hidden or 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
import itertools | |
import sqlite3 | |
import sys | |
import rich | |
import rich.progress | |
def decrypt_blob(data: bytes, byte_key: bytes) -> bytes: | |
key_iterator = itertools.cycle(byte_key) |
This file contains hidden or 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
问题 | 答案 | 可选项1 | 可选项2 | 可选项3 | 可选项4 | |
---|---|---|---|---|---|---|
《天使与龙的轮舞》中,下列哪位的机体没有搭载“收敛时空炮” | 希尔达 | 希尔达 | 安琪 | 莎拉曼蒂尼(龙女) | 恩布里欧 | |
樱小路家宅邸的女仆长名称是? | 山吹八千代 | 山吹八千代 | 月岛八千代 | 神宫八千代 | 七海八千代 | |
《処女はお姉さまに恋してる》的故事发生地是? | 圣应女学院 | 圣应女学院 | 白铃女子学园 | 凤后艺术学院 | 樱花学园 | |
《萌单》是_____的动画改? | 英文单词集 | 英文单词集 | 漫画 | 小学专用的英语教材 | 小说 |
This file contains hidden or 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
// ==UserScript== | |
// @name SkyeySnow Jigsaw Solver | |
// @namespace https://gist.github.com/mnixry/ | |
// @version 0.2.3 | |
// @description Automaitc resolve jigsaw puzzle of SkyeySnow | |
// @author Mix | |
// @match https://skyeysnow.com//puzzle.php* | |
// @match https://www.skyey2.com//puzzle.php* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=skyeysnow.com | |
// @grant unsafeWindow |