Skip to content

Instantly share code, notes, and snippets.

View wabiloo's full-sized avatar

Fabre Lambeau wabiloo

  • broadpeak.io
  • Cambridge (UK)
  • 20:42 (UTC -12:00)
View GitHub Profile
@wabiloo
wabiloo / decodeScet35.js
Created May 1, 2025 13:54
Boop/Woop script for scte35 hex and binary conversion to annotated JSON
/**
{
"api":1,
"name":"Decode SCTE-35",
"description":"Parse base-64 or hex SCTE-35 cue into JSON",
"author":"Fabre Lambeau",
"icon":"tag",
"tags":"scte35,parse"
}
**/
@wabiloo
wabiloo / rest_api_commands.py
Last active March 21, 2023 22:55
Python click experiments for REST API wrapper
import click
class RestEndpointGroup(click.Group):
"""A click.Group sub-class that enables the use of command lines that
1. mirror REST endpoint structure
(eg. `mycli sources 123 slots 456` -> http://myapi/sources/:source_id/slots/:slot_id)
2. allow for implicit commands for `list` and `get` when no sub-commands are provided
on parent groups that support it.
(eg. `mycli sources` -> `mycli sources list`)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.