Skip to content

Instantly share code, notes, and snippets.

View spdaly's full-sized avatar

Steve Daly spdaly

  • Uptick Solutions
  • Cincinnati, OH
View GitHub Profile
@spdaly
spdaly / fec-exploration.md
Created March 19, 2026 18:31
Exploring the FEC Candidates Database (2026) - weball26 dataset analysis with sqlite-utils

Exploring the FEC Candidates Database (2026)

2026-03-19T18:17:18Z by Showboat 0.6.1

This document explores the FEC 'weball26' dataset — a bulk download of all federal candidate financial summaries for the 2026 election cycle. The data was loaded into fed-data.db using sqlite-utils. Let's start by understanding the shape of the data.

uvx sqlite-utils tables fed-data.db --counts --columns
@spdaly
spdaly / script-template.sh
Created December 15, 2020 15:56 — forked from m-radzikowski/script-template.sh
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]