Skip to content

Instantly share code, notes, and snippets.

View mpentler's full-sized avatar

Mark Pentler mpentler

View GitHub Profile
@mpentler
mpentler / safe_listbox.py
Last active July 21, 2025 20:52
CLI Video player Listbox class
# Horrorbox v1.4
# List box used for file panel with bounds checking
import urwid
class SafeListBox(urwid.ListBox):
def keypress(self, size, key):
if key in ('up', 'down'):
focus_pos = self.focus_position
max_pos = len(self.body) - 1
@mpentler
mpentler / tcas_analysis.py
Last active September 21, 2025 20:43
TCAS RA analysis
#!/usr/bin/env python3
import os
import sys
import gzip
import json
import pandas as pd
from datetime import datetime, timedelta
from shapely.geometry import shape, MultiPoint, mapping
from collections import Counter
import argparse