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
import ipaddress | |
def ip_range( | |
start_ip: ipaddress.IPv4Address, end_ip: ipaddress.IPv4Address | |
) -> list[ipaddress.IPv4Network]: | |
if start_ip > end_ip: | |
raise ValueError("Start IP must be less than end IP") | |
res = [] |
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
import _xxsubinterpreters | |
from typing import List | |
from inspect import cleandoc | |
SharedValue = int | float | bool | bytes | str | None | tuple["SharedValue", ...] | |
class Interpreter: | |
def __init__(self, id: int): |
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 __future__ import annotations | |
import html | |
import inspect | |
import os | |
import traceback | |
import typing | |
from baize.typing import WSGIApp, Environ, StartResponse, ExcInfo | |
from baize.wsgi import Request, Response, HTMLResponse, PlainTextResponse |
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
function getCSRFToken() { | |
let bilijct = ""; | |
document.cookie | |
.split(";") | |
.filter((cookie) => cookie.includes("bili_jct")) | |
.forEach((cookie) => { | |
const [name, value] = cookie.split("="); | |
bilijct = value; | |
}); | |
return bilijct; |
OlderNewer