This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import functools | |
import time | |
from threading import Lock | |
from yt_dlp.downloader.common import FileDownloader | |
# Configure update delay here, in nanoseconds | |
UPDATE_DELAY_NS = 1_000_000_000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
show_help() { | |
cat << EOF | |
${1} | |
USAGE: | |
snotify log [MODULE] MESSAGE | |
Log a message to the notifications panel | |
snotify enable [HEIGHT] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
from collections import namedtuple | |
from pathlib import Path | |
Timewarp = namedtuple("Timewarp", ["start", "end", "rate"]) | |
def font_filter(stream: str, text: str): | |
return ":".join( | |
[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal enableDelayedExpansion | |
::::: | |
:: Advanced user input in batch [using xcopy] | |
:: Fetch result using for /f from main | |
::::: | |
set "prompt=" | |
:: the input prompt | |
set "symbol=" | |
:: the symbol that displays instead |