417 lines
8.8 KiB
Python
417 lines
8.8 KiB
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
"""Constants"""
|
|
|
|
import typing as t
|
|
|
|
MONTHS: t.Final[t.Tuple[str, ...]] = (
|
|
"January",
|
|
"February",
|
|
"March",
|
|
"April",
|
|
"May",
|
|
"June",
|
|
"July",
|
|
"August",
|
|
"September",
|
|
"October",
|
|
"November",
|
|
"December",
|
|
)
|
|
|
|
DAYS: t.Final[t.Tuple[str, ...]] = (
|
|
"Monday",
|
|
"Tuesday",
|
|
"Wednesday",
|
|
"Thursday",
|
|
"Friday",
|
|
"Saturday",
|
|
"Sunday",
|
|
)
|
|
|
|
LANG_COLOURS: t.Final[t.Dict[str, str]] = {
|
|
"python": "Blue",
|
|
"vim": "Green",
|
|
"8th": "Teal",
|
|
"a2ps": "Gray",
|
|
"aap": "Gray",
|
|
"abap": "Red",
|
|
"abaqus": "Magenta",
|
|
"ada": "Cyan",
|
|
"alsaconf": "Maroon",
|
|
"ant": "Red",
|
|
"antlr4": "Orange",
|
|
"arch": "Blue",
|
|
"arduino": "Blue",
|
|
"art": "Magenta",
|
|
"asciidoc": "Yellow",
|
|
"asm": "Yellow",
|
|
"aspvbs": "Green",
|
|
"astro": "Navy",
|
|
"asy": "Red",
|
|
"autohotkey": "Cyan",
|
|
"automake": "Green",
|
|
"awk": "Green",
|
|
"bash": "Gray",
|
|
"basic": "Yellow",
|
|
"bdf": "Yellow",
|
|
"bindzone": "Green",
|
|
"bitbake": "Blue",
|
|
"bp": "Blue",
|
|
"bst": "Purple",
|
|
"btm": "Magenta",
|
|
"bzl": "Cyan",
|
|
"c": "Gray",
|
|
"c3": "Red",
|
|
"cabal": "Cyan",
|
|
"calendar": "Orange",
|
|
"cdrdaoconf": "Green",
|
|
"cedar": "Yellow",
|
|
"cfg": "Gray",
|
|
"cgdbrc": "Green",
|
|
"ch": "Blue",
|
|
"changelog": "Fuchsia",
|
|
"chatito": "Maroon",
|
|
"clojure": "Blue",
|
|
"cmake": "Navy",
|
|
"cmakecache": "Teal",
|
|
"cobol": "Red",
|
|
"conf": "Orange",
|
|
"config": "Gray",
|
|
"confini": "Gray",
|
|
"context": "Yellow",
|
|
"cook": "Green",
|
|
"corn": "Green",
|
|
"cpp": "Blue",
|
|
"crm": "Navy",
|
|
"crontab": "Teal",
|
|
"cs": "Gray",
|
|
"csc": "Blue",
|
|
"csh": "Blue",
|
|
"css": "Cyan",
|
|
"csv": "Gray",
|
|
"cucumber": "Green",
|
|
"cuda": "Green",
|
|
"cvsrc": "Red",
|
|
"dart": "Gray",
|
|
"debchangelog": "Purple",
|
|
"debcontrol": "Orange",
|
|
"debsources": "Gray",
|
|
"denyhosts": "Red",
|
|
"desktop": "Yellow",
|
|
"dictconf": "Green",
|
|
"dictdconf": "Gray",
|
|
"diff": "Green",
|
|
"dircolors": "Blue",
|
|
"docbk": "Gray",
|
|
"dockerfile": "Blue",
|
|
"dosbatch": "Red",
|
|
"dosini": "Yellow",
|
|
"dtd": "Gray",
|
|
"dtrace": "Gray",
|
|
"dts": "Green",
|
|
"dune": "Teal",
|
|
"editorconfig": "Blue",
|
|
"eiffel": "Red",
|
|
"elinks": "Orange",
|
|
"elixir": "Magenta",
|
|
"elm": "Green",
|
|
"erlang": "Red",
|
|
"eruby": "Red",
|
|
"eterm": "Orange",
|
|
"expect": "Blue",
|
|
"falcon": "Teal",
|
|
"fennel": "Cyan",
|
|
"fetchmail": "Gray",
|
|
"fish": "Blue",
|
|
"flexwiki": "Yellow",
|
|
"forth": "Gray",
|
|
"fortran": "Green",
|
|
"fpcmake": "Gray",
|
|
"framescript": "Purple",
|
|
"freebasic": "Yellow",
|
|
"fstab": "Gray",
|
|
"fvwm": "Gray",
|
|
"gdb": "Blue",
|
|
"gdscript": "Red",
|
|
"gdshader": "Red",
|
|
"git": "Gray",
|
|
"gitattributes": "Orange",
|
|
"gitcommit": "Blue",
|
|
"gitconfig": "Red",
|
|
"gitignore": "Teal",
|
|
"gitrebase": "Blue",
|
|
"gitsendemail": "Blue",
|
|
"gleam": "Orange",
|
|
"go": "Teal",
|
|
"goaccess": "Gray",
|
|
"gomod": "Gray",
|
|
"gpg": "Blue",
|
|
"gprof": "Gray",
|
|
"graphql": "Magenta",
|
|
"groovy": "Green",
|
|
"group": "Green",
|
|
"grub": "Gray",
|
|
"gyp": "Green",
|
|
"haml": "Teal",
|
|
"hamster": "Fuchsia",
|
|
"hare": "Gray",
|
|
"haredoc": "Orange",
|
|
"haskell": "Blue",
|
|
"hcl": "Green",
|
|
"heex": "Yellow",
|
|
"help": "Gray",
|
|
"hgcommit": "Orange",
|
|
"hlsplaylist": "Gray",
|
|
"hog": "Green",
|
|
"hostconf": "Gray",
|
|
"hostsaccess": "Green",
|
|
"html": "Orange",
|
|
"htmlangular": "Red",
|
|
"htmldjango": "Yellow",
|
|
"http": "Blue",
|
|
"hurl": "Magenta",
|
|
"hyprlang": "Red",
|
|
"i3config": "Gray",
|
|
"icon": "Green",
|
|
"idris2": "Magenta",
|
|
"indent": "Blue",
|
|
"initex": "Gray",
|
|
"ipkg": "Green",
|
|
"ishd": "Teal",
|
|
"j": "Gray",
|
|
"java": "Blue",
|
|
"javacc": "Blue",
|
|
"javascript": "Yellow",
|
|
"javascriptreact": "Blue",
|
|
"jj": "Gray",
|
|
"jproperties": "Orange",
|
|
"jq": "Green",
|
|
"json": "Blue",
|
|
"json5": "Red",
|
|
"jsonc": "Yellow",
|
|
"jsonnet": "Teal",
|
|
"jsp": "Magenta",
|
|
"julia": "Gray",
|
|
"karel": "Orange",
|
|
"kconfig": "Green",
|
|
"kdl": "Gray",
|
|
"kivy": "Blue",
|
|
"kotlin": "Red",
|
|
"kwt": "Green",
|
|
"lc": "Gray",
|
|
"ld": "Blue",
|
|
"ldapconf": "Gray",
|
|
"leo": "Green",
|
|
"less": "Blue",
|
|
"lex": "Yellow",
|
|
"lftp": "Gray",
|
|
"libao": "Orange",
|
|
"limits": "Green",
|
|
"liquid": "Blue",
|
|
"lisp": "Orange",
|
|
"livebook": "Gray",
|
|
"llvm": "Red",
|
|
"logcheck": "Yellow",
|
|
"loginaccess": "Gray",
|
|
"logindefs": "Teal",
|
|
"logtalk.dict": "Red",
|
|
"logtalk": "Gray",
|
|
"lprolog": "Gray",
|
|
"lua": "Blue",
|
|
"luau": "Yellow",
|
|
"lynx": "Teal",
|
|
"m3build": "Blue",
|
|
"m3quake": "Blue",
|
|
"m4": "Orange",
|
|
"mail": "Gray",
|
|
"mailaliases": "Blue",
|
|
"mailcap": "Orange",
|
|
"make": "Yellow",
|
|
"man": "Green",
|
|
"manconf": "Gray",
|
|
"markdown": "Blue",
|
|
"masm": "Gray",
|
|
"matlab": "Yellow",
|
|
"mediawiki": "Gray",
|
|
"mermaid": "Blue",
|
|
"meson": "Gray",
|
|
"mf": "Gray",
|
|
"mlir": "Red",
|
|
"mma": "Orange",
|
|
"modconf": "Gray",
|
|
"modula2": "Blue",
|
|
"modula3": "Yellow",
|
|
"mojo": "Blue",
|
|
"mp": "Gray",
|
|
"mplayerconf": "Teal",
|
|
"mrxvtrc": "Red",
|
|
"msmessages": "Gray",
|
|
"mss": "Gray",
|
|
"muttrc": "Yellow",
|
|
"mysql": "Blue",
|
|
"nanorc": "Gray",
|
|
"neomuttrc": "Blue",
|
|
"netrc": "Gray",
|
|
"nginx": "Green",
|
|
"nim": "Orange",
|
|
"nix": "Blue",
|
|
"nroff": "Gray",
|
|
"nsis": "Green",
|
|
"nu": "Yellow",
|
|
"objc": "Gray",
|
|
"objcpp": "Yellow",
|
|
"objdump": "Gray",
|
|
"obse": "Orange",
|
|
"ocaml": "Teal",
|
|
"occam": "Red",
|
|
"octave": "Blue",
|
|
"odin": "Gray",
|
|
"ondir": "Orange",
|
|
"opencl": "Teal",
|
|
"openvpn": "Blue",
|
|
"org": "Yellow",
|
|
"pamconf": "Maroon",
|
|
"pascal": "Red",
|
|
"passwd": "Gray",
|
|
"pbtxt": "Gray",
|
|
"pdf": "Blue",
|
|
"perl": "Green",
|
|
"php": "Red",
|
|
"pinfo": "Teal",
|
|
"plaintex": "Yellow",
|
|
"pod": "Red",
|
|
"poefilter": "Blue",
|
|
"poke": "Gray",
|
|
"postscr": "Navy",
|
|
"prisma": "Purple",
|
|
"procmail": "Orange",
|
|
"prolog": "Green",
|
|
"proto": "Magenta",
|
|
"ps1": "Gray",
|
|
"ps1xml": "Fuchsia",
|
|
"ptx": "Gray",
|
|
"purescript": "Blue",
|
|
"pymanifest": "Green",
|
|
"pyrex": "Yellow",
|
|
"python": "Blue",
|
|
"qb64": "Blue",
|
|
"qf": "Gray",
|
|
"qml": "Gray",
|
|
"quake": "Red",
|
|
"quarto": "Green",
|
|
"r": "Teal",
|
|
"racc": "Green",
|
|
"racket": "Blue",
|
|
"raku": "Yellow",
|
|
"rasi": "Maroon",
|
|
"readline": "Orange",
|
|
"registry": "Purple",
|
|
"requirements": "Blue",
|
|
"rescript": "Magenta",
|
|
"reva": "Gray",
|
|
"rhelp": "Navy",
|
|
"rmd": "Green",
|
|
"rnc": "Red",
|
|
"rnoweb": "Yellow",
|
|
"roc": "Blue",
|
|
"routeros": "Teal",
|
|
"rpl": "Gray",
|
|
"rrst": "Gray",
|
|
"rst": "Red",
|
|
"ruby": "Red",
|
|
"rust": "Orange",
|
|
"sass": "Pink",
|
|
"sbt": "Blue",
|
|
"scala": "Red",
|
|
"scdoc": "Gray",
|
|
"scheme": "Blue",
|
|
"screen": "Teal",
|
|
"scss": "Green",
|
|
"sed": "Yellow",
|
|
"sensors": "Gray",
|
|
"services": "Gray",
|
|
"setserial": "Green",
|
|
"sexplib": "Gray",
|
|
"sgml": "Blue",
|
|
"sh": "Teal",
|
|
"sieve": "Green",
|
|
"slint": "Gray",
|
|
"slpconf": "Gray",
|
|
"slpreg": "Red",
|
|
"slpspi": "Yellow",
|
|
"snakemake": "Teal",
|
|
"solidity": "Gray",
|
|
"solution": "Blue",
|
|
"spec": "Maroon",
|
|
"sql": "Green",
|
|
"squirrel": "Green",
|
|
"ssa": "Yellow",
|
|
"sshconfig": "Blue",
|
|
"sshdconfig": "Teal",
|
|
"stylus": "Yellow",
|
|
"sudoers": "Red",
|
|
"svelte": "Orange",
|
|
"svg": "Gray",
|
|
"sway": "Blue",
|
|
"swayconfig": "Teal",
|
|
"swift": "Red",
|
|
"swiftgyb": "Red",
|
|
"swig": "Yellow",
|
|
"sysctl": "Gray",
|
|
"systemd": "Blue",
|
|
"systemverilog": "Teal",
|
|
"tap": "Red",
|
|
"tcl": "Green",
|
|
"tcsh": "Gray",
|
|
"terminfo": "Blue",
|
|
"terraform": "Purple",
|
|
"tex": "Gray",
|
|
"text": "Gray",
|
|
"tf": "Green",
|
|
"thrift": "Gray",
|
|
"tidy": "Orange",
|
|
"tmux": "Teal",
|
|
"toml": "Gray",
|
|
"treetop": "Yellow",
|
|
"tt2html": "Blue",
|
|
"tutor": "Red",
|
|
"typescript": "Blue",
|
|
"typescriptreact": "Blue",
|
|
"typst": "Gray",
|
|
"uci": "Green",
|
|
"udevconf": "Green",
|
|
"udevperm": "Gray",
|
|
"udevrules": "Gray",
|
|
"unison": "Teal",
|
|
"updatedb": "Blue",
|
|
"urlshortcut": "Green",
|
|
"usd": "Gray",
|
|
"v": "Blue",
|
|
"vb": "Red",
|
|
"vdf": "Blue",
|
|
"verilog": "Yellow",
|
|
"vhdl": "Green",
|
|
"vim": "Green",
|
|
"vroom": "Orange",
|
|
"vue": "Teal",
|
|
"wat": "Gray",
|
|
"wget": "Blue",
|
|
"wget2": "Green",
|
|
"xcompose": "Gray",
|
|
"xdefaults": "Teal",
|
|
"xf86conf": "Gray",
|
|
"xhtml": "Blue",
|
|
"xinetd": "Gray",
|
|
"xml": "Green",
|
|
"xmodmap": "Gray",
|
|
"xs": "Teal",
|
|
"xsd": "Green",
|
|
"xslt": "Gray",
|
|
"yacc": "Blue",
|
|
"yaml": "Yellow",
|
|
"zathurarc": "Gray",
|
|
"zig": "Orange",
|
|
"zimbu": "Red",
|
|
"zsh": "Teal",
|
|
}
|