Skip to content

Instantly share code, notes, and snippets.

"""
Temporal Clock (Seasonal/Roman Time)
------------------------------------
A digital clock GUI that displays "Temporal Time".
- Sunrise is fixed at 06:00.
- Sunset is fixed at 18:00.
- Day and Night are each divided into 12 equal portions.
Requirements:
- skyfield (pip install skyfield)
- pytz (pip install pytz)
#!/usr/bin/env python3
import argparse
import os
from collections import defaultdict
from pathlib import Path
import xxhash
import sys
# Chunk size for hashing large files to keep memory usage low
CHUNK_SIZE = 65536 # 64KB
import subprocess
import os
import sys
def generate_waveform_video(input_audio, output_video, resolution="1280x720", waveform_color="white"):
if not os.path.isfile(input_audio):
print(f"Error: File '{input_audio}' not found.")
return
filter_complex = (
#!/usr/bin/env python3
#
# diastxt2.py
# translated by chatgpt 3.5
#
############################################################################
#
# diastxt2.py by Ron Starr
#
#
#!/usr/bin/env python3
#
# travesty2.py
# translated by chatgpt 3.5
###########################################################
#
# travesty2.pl
#
# a third version of travesty to try to speed things up