Skip to content

Instantly share code, notes, and snippets.

View prcutler's full-sized avatar

Paul Cutler prcutler

View GitHub Profile
@prcutler
prcutler / ElementTree.py
Created March 11, 2023 15:15 — forked from Neradoc/ElementTree.py
Circuitpython XML example, port of micropython-lib.
# This file is part of the standard library of Pycopy project, minimalist
# and lightweight Python implementation.
#
# https://github.com/pfalcon/pycopy
# https://github.com/pfalcon/pycopy-lib
#
# The MIT License (MIT)
#
# Copyright (c) 2018-2020 Paul Sokolovsky
#
@prcutler
prcutler / podcastgen.py
Created July 10, 2022 12:55 — forked from alghanmi/podcastgen.py
Podcast Feed Generator -- Generate an podcast RSS feed for a set of media in a directory.
"""Podcast Feed Generator
Generate an podcast RSS feed for a set of media in a directory.
Use the list-extensions argument to see the list of supported extensions. You can add custom extensions using
Usage:
podcastgen.py gen <directory> --title=<podcast-title> --link=<podcast-link> --desc=<description> [--output=<rss-feed-file>] [--feed-link=<feed-url>] [--id=<podcast-id>] [--logo=<image_file>] [--category=<itunes-category> [--subcategory=<itunes-category>]] [--language=<language>] [--use-extension=<ext>]
podcastgen.py list-categories
podcastgen.py list-extensions
podcastgen.py -h | --help
@prcutler
prcutler / csv_points_to_segments.py
Created February 20, 2022 19:27 — forked from willprice/csv_points_to_segments.py
Convert CSV to SRT subtitles
import argparse
from pathlib import Path
import numpy as np
import pandas as pd
parser = argparse.ArgumentParser(
description="",