Skip to content

Instantly share code, notes, and snippets.

View catharsisjelly's full-sized avatar
🏳️‍🌈

Chris Lock catharsisjelly

🏳️‍🌈
View GitHub Profile
@catharsisjelly
catharsisjelly / podcast-counter.py
Last active December 14, 2021 18:11
A small python script to display the total duration of all podcasts in any giiven
#!/usr/bin/env python
import xml.dom.minidom
import time
import sys
def getEpisodeLength(item):
seconds = 0
durationTag = item.getElementsByTagName('itunes:duration')
hoursMinsSecs = durationTag[0].firstChild.data.split(':')
seconds += int(hoursMinsSecs[-1])
@catharsisjelly
catharsisjelly / main.yml
Last active March 15, 2018 17:11
Responses External file OpenAPI 3.0 speccy example
openapi: "3.0.1"
info:
description: "Something to demo that Link components are not linting"
version: "1.0.0"
title: "Test API"
contact:
name: "Chris Lock"
url: "https://catharsis.co.uk"
servers:
- url: "https://api.not-a-real-api.com"