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;
}
https://www.gtplanet.net/how-gran-turismo-is-made/ | |
https://www.fia.com/news/auto-changing-game | |
https://www.youtube.com/watch?v=I8GQCZgCNw8 | |
https://www.gtplanet.net/dr-kazunori-yamauchi-gives-lecture-gran-turismos-driving-physics-production/ | |
https://www.gtplanet.net/polyphony-digital-reveals-gt-sports-iris-ray-tracing-system-at-cedec-2018 | |
https://www.youtube.com/watch?v=VxL9j-j7JaI | |
https://www.youtube.com/watch?v=FPX2qRQAnBo | |
https://www.youtube.com/watch?v=QESGXTFFZXM | |
https://www.youtube.com/watch?v=-FrybeCxDPU | |
https://www.youtube.com/watch?v=ygUqvfeAaa0 |
# webm - mp4 | |
ffmpeg -hide_banner \ | |
-re -f lavfi -i "testsrc2=size=1280x720:rate=30,format=yuv420p" \ | |
-f lavfi -i "sine=frequency=220:beep_factor=4:duration=5" \ | |
-c:v libx264 -preset ultrafast -tune zerolatency -profile:v high \ | |
-b:v 1400k -bufsize 2800k -x264opts keyint=30:min-keyint=30:scenecut=-1 \ | |
-c:a aac -b:a 128k \ | |
-window_size 5 -extra_window_size 10 -remove_at_exit 1 -adaptation_sets "id=0,streams=v id=1,streams=a" \ | |
-fflags +genpts \ | |
-movflags isml+frag_keyframe output.mpd |
def package_local_targets(input_dir, output_dir): | |
trace = 'package_local_targets' | |
os.chdir(input_dir) | |
try: | |
print(f"{trace}: create directory {output_dir}") | |
os.makedirs(output_dir) | |
except FileExistsError: | |
print(f"delete existing {output_dir}") | |
shutil.rmtree(output_dir) |
'Emulate max() as fully as possible in pure Python.' | |
# https://stackoverflow.com/questions/69997857/implementation-of-max-function-in-python/69997876#69997876 | |
# https://github.com/python/mypy/issues/7231 | |
from typing import TypeVar, Any, Iterator, Iterable, Optional | |
from typing import Union, Protocol, Callable, cast, Tuple, overload | |
class SupportsGT(Protocol): |