Skip to content

Instantly share code, notes, and snippets.

@leleogere
leleogere / beatfinder.py
Last active January 26, 2026 14:03 — forked from gepron1x/beatfinder.py
Kdenlive beat sync
import argparse
import datetime
import librosa
def parse_delta(s):
date = datetime.datetime.strptime(s, "%H:%M:%S")
return datetime.timedelta(
hours=date.hour, minutes=date.minute, seconds=date.second
)
@leleogere
leleogere / README.md
Last active March 5, 2025 21:28
Warn before closing a GitHub new issue tab

GitHub issue close confirmation dialog

Description

This GreaseMonkey/TamperMonkey/ViolentMonkey script aims at solving the issue raised in https://github.com/orgs/community/discussions/42581, i.e. closing an unsubmitted GitHub issue, and losing quite a lot of work.

This will display a confirmation popup before closing a tab with an unsubmitted issue, so that you don't close it by mistake.