Reference LaTeX document:
\documentclass[a4paper,11pt]{article}
\usepackage[a4paper,margin=1in]{geometry}
\usepackage{lipsum}
\usepackage{setspace}
\pagestyle{empty}| #!/usr/bin/env python3 | |
| # DX Rating Target Calculator | |
| # Compatible to version 1.60 (CiRCLE) | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| import numpy.typing as npt | |
| OUTPUT_PATH = "figure.png" |
| #!/usr/bin/env python3 | |
| # Usage: | |
| # curl --oauth2-bearer '<TOKEN>' http://localhost:18088/v1/models | ./floway-to-omp.py [NAME] [API_URL] | |
| # defaults: NAME=Floway, API_URL=http://localhost:18088/v1 | |
| # | |
| # Install to ~/.omp/agent/models.yml | |
| # | |
| # Reference: | |
| # https://github.com/can1357/oh-my-pi/blob/main/docs/models.md |
| call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat" | |
| set PATH=%PATH%;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\Llvm\bin | |
| llvm-rc.exe helloworld.rc | |
| clang.exe -Oz -Wall -Wextra -falign-functions=1 -falign-loops=1 -flto -fno-asynchronous-unwind-tables -fno-ident -fno-stack-protector -fno-unwind-tables -fuse-ld=lld -mwindows helloworld.c helloworld.res -o helloworld.exe -nostdlib -Wl,/SUBSYSTEM:WINDOWS,/ALIGN:16,/FILEALIGN:16 -lcomctl32 -lkernel32 -luser32 |
| #!/usr/bin/env python3 | |
| import colour | |
| import numpy | |
| import readline | |
| def convert(XYZ100): | |
| XYZ100 = numpy.asarray(XYZ100) | |
| XYZ1 = XYZ100 * 0.01 | |
| D50 = colour.CCS_ILLUMINANTS['CIE 1931 2 Degree Standard Observer']['ICC D50'] |
| #!/usr/bin/env python3 | |
| import itertools | |
| import os | |
| import unicodedata | |
| # pip3 install -U PyYAML | |
| import yaml | |
| # Windows disallows the following characters in filenames: "*/:<>?\| |
| /* | |
| * This library is licensed under WTFPL version 2. | |
| * | |
| * May contain undiscovered bugs. | |
| * I am willing to fix bugs but will not be responsible for them. | |
| * | |
| * I suggest you cross-check with another library, for example: | |
| * https://github.com/RRZE-HPC/pycachesim | |
| */ |
| #!/usr/bin/env python3 | |
| # Convert a pixel art to SVG file | |
| # Copyright (C) 2021 Star Brilliant | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # |
| #!/usr/bin/env python3 | |
| import json | |
| import netaddr | |
| def main(): | |
| # Download from https://api.steampowered.com/ISteamApps/GetSDRConfig/v1?appid=730 | |
| with open('network_config.json', 'r', encoding='utf-8') as f: | |
| network_config = json.load(f) |
| #!/usr/bin/env python3 | |
| # Copyright (C) 2020 Star Brilliant <coder@poorlab.com> | |
| # | |
| # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| # TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | |
| # | |
| # 0. You just DO WHAT THE FUCK YOU WANT TO. | |
| import sys |