Skip to content

Instantly share code, notes, and snippets.

View NextdoorPsycho's full-sized avatar
💫
Who said the universe was obligated to make sense to you?

Brian Fopiano NextdoorPsycho

💫
Who said the universe was obligated to make sense to you?
View GitHub Profile
@NextdoorPsycho
NextdoorPsycho / process_cards.py
Created June 14, 2025 08:34
This converts all Magic: the Gathering (MTG) cards into Json, or YAML format, or both using the mtgjson website, Then formats them and strips the crap I dont really need in my app. I thought it was useful and if anyone stumbles across this in the future, hopefully it helps them..
#!/usr/bin/env python3
"""
mtg_card_processor.py – Download, sanitise and group MTGJSON AtomicCards
========================================================================
**Last updated:** 2025-06-14 (newline normalisation)
*Downloads ➜ prunes ➜ ASCII-cleans ➜ groups ➜ outputs JSON/YAML*
-----------------
Quick usage
-----------
```bash
@doctor-g
doctor-g / workflow.yml
Last active December 28, 2024 13:07
Workflow to publish a Flutter Web app to GitHub Pages
name: Deploy to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- master
jobs:
deploy: