When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}| ### Keybase proof | |
| I hereby claim: | |
| * I am kissgyorgy on github. | |
| * I am kissgyorgy (https://keybase.io/kissgyorgy) on keybase. | |
| * I have a public key whose fingerprint is B663 6249 1C39 5CEA A6D7 8A64 5F33 2622 2C3D B09B | |
| To claim this, I am signing this object: |
| import os | |
| from a2wsgi import WSGIMiddleware | |
| from django.core.wsgi import get_wsgi_application | |
| from django.views import debug as django_views_debug | |
| from django_extensions.management.technical_response import ( | |
| null_technical_500_response, | |
| ) | |
| from werkzeug.debug import DebuggedApplication | |
| os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings") |
| import asyncio | |
| import sys | |
| from typing import Optional | |
| import asyncssh | |
| import httpx | |
| class MySSHTCPSession(asyncssh.SSHTCPSession): | |
| def __init__(self): |
| [Unit] | |
| Description = Mount disk | |
| Before = local-fs-pre.target | |
| [Service] | |
| User = root | |
| Type = oneshot | |
| RemainAfterExit = yes | |
| ExecStart = /usr/local/sbin/mount-disk.sh |
| import { inflateRaw, deflateRaw } from "pako"; | |
| // https://en.wikipedia.org/wiki/Run-length_encoding | |
| const Z_RLE = 3; | |
| class BitArray { | |
| constructor(bitSize) { | |
| const remainder = Math.min(1, bitSize % 8); | |
| const byteSize = Math.floor(bitSize / 8) + remainder; | |
| const buffer = new ArrayBuffer(byteSize); |
| #!/usr/bin/python3 | |
| import sys | |
| import asyncio | |
| import greenlet | |
| class AsyncIoGreenlet(greenlet.greenlet): | |
| def __init__(self, driver, fn): | |
| greenlet.greenlet.__init__(self, fn, driver) | |
| self.driver = driver |
| from string import Template | |
| class EnvTemplate(Template): | |
| """Substitute variables regularly, but environment variables need "env." prefix, | |
| and only with the braced syntax. | |
| For example: ${env.HOME} works, but $env.HOME does nothing. | |
| """ | |
| braceidpattern = rf"(?:env\.)?{Template.idpattern}" |
| from pathlib import Path | |
| from typing import Optional, Union, NewType, cast, Tuple, Iterator | |
| from ipaddress import ( | |
| IPv6Address, | |
| IPv6Network, | |
| ip_address, | |
| ip_network, | |
| IPv4Address, | |
| IPv4Network, | |
| ) |
| import asyncio | |
| from typing import Coroutine | |
| async def force_complete(coro: Coroutine): | |
| """Shield the Coroutine from cancellation and block the calling coroutine until it's fully completed.""" | |
| task = asyncio.create_task(coro) | |
| try: | |
| await asyncio.shield(task) | |
| except asyncio.CancelledError: |