I hereby claim:
- I am xowap on github.
- I am xowap (https://keybase.io/xowap) on keybase.
- I have a public key ASC37lc_Cup93wSKmGt4SSwNZ-tAAQ6bTbyNbOXbUpZRUwo
To claim this, I am signing this object:
| from collections import defaultdict | |
| from typing import Generic, TypeVar | |
| T = TypeVar("T") | |
| class SimpleGraph(Generic[T]): | |
| """ | |
| Lightweight graph implementation, only for the needs of the health module. | |
| """ |
| #include <iostream> | |
| #include <fstream> | |
| #include <vector> | |
| #include <string> | |
| #include <algorithm> | |
| #include <unordered_map> | |
| #include <cmath> | |
| #include <stdexcept> | |
| #include <sstream> |
| import argparse | |
| import sys | |
| from collections import defaultdict | |
| from io import StringIO | |
| def parse_args() -> argparse.Namespace: | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument( |
| #include <iostream> | |
| #include <fstream> | |
| #include <vector> | |
| #include <string> | |
| #include <algorithm> | |
| #include <unordered_map> | |
| #include <cmath> | |
| #include <stdexcept> | |
| #include <sstream> |
| import argparse | |
| import sys | |
| import re | |
| from collections import defaultdict | |
| from io import StringIO | |
| def parse_args() -> argparse.Namespace: | |
| parser = argparse.ArgumentParser() |
| [Unit] | |
| Description=xxx gunicorn server | |
| Requires=xxx.socket | |
| After=network.target | |
| [Service] | |
| User=www-data | |
| Group=www-data | |
| EnvironmentFile=/var/apps/xxx/env | |
| WorkingDirectory=/var/apps/xxx/ |
| [tool.ruff.lint] | |
| select = [ | |
| # -- Core -- | |
| "E", # pycodestyle (errors) | |
| "W", # pycodestyle (warnings) | |
| "F", # Pyflakes | |
| "I", # isort | |
| "C90", # McCabe Complexity | |
| "D1", # Mandatory docstrings | |
| "S", # Bandit |
| [ | |
| { | |
| "title": "Dawn or dusk?", | |
| "answers": [ | |
| { | |
| "title": "Dawn", | |
| "scores": { | |
| "g": 100, | |
| "r": 100, | |
| "h": 0, |
I hereby claim:
To claim this, I am signing this object:
| from pydantic import BaseModel, ValidationError | |
| from typing import Union | |
| class A(BaseModel): | |
| a: Union["A", "B"] | |
| class B(BaseModel): | |
| a: Union["A", "B"] |