Skip to content

Instantly share code, notes, and snippets.

View MaxGhenis's full-sized avatar

Max Ghenis MaxGhenis

View GitHub Profile
@MaxGhenis
MaxGhenis / versioning_options.html
Created December 27, 2025 01:57
Interactive comparison of .rac temporal versioning options (CTC example)
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Complete .rac Format with Versioning</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: 'SF Mono', 'Fira Code', monospace;
background: #0a0a0f;
@MaxGhenis
MaxGhenis / la_city_income_85th_percentile.py
Last active December 26, 2025 19:34
85th Percentile Household Income in Los Angeles City (2023-2024) using ACS 1-Year PUMS
"""
85th Percentile Household Income in Los Angeles City
Using 1-year ACS PUMS data for 2023 and 2024
LA City PUMAs identified from Census ACS API by name matching.
These 23 PUMAs are explicitly labeled as LA City areas.
Note: Some LA City areas may be in shared PUMAs (e.g., 03707, 03748) which
include portions of other cities - these are excluded to avoid overestimation.
"""
@MaxGhenis
MaxGhenis / la_city_income_85th_percentile.ipynb
Last active December 26, 2025 19:37
85th Percentile Household Income in Los Angeles City (2023-2024) using ACS 1-Year PUMS
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MaxGhenis
MaxGhenis / ons-firm-data-wishlist.md
Last active December 11, 2025 21:30
ONS firm data wishlist for UK microsimulation and OLG models

ONS Firm Data Wishlist for UK Microsimulation & OLG Models

Prepared for Vahid's meeting with ONS firm data team, December 2025

Context

PolicyEngine is exploring building an OLG (Overlapping Generations) model for the UK, similar to OG-USA/OG-Core but with greater firm-level heterogeneity. We also want to expand our firm microsimulation capabilities for tax policy analysis (VAT, corporation tax, business rates).

This document outlines what firm-level data would be most valuable from ONS.

@MaxGhenis
MaxGhenis / cosilico-brand-analysis.md
Created December 10, 2025 21:57
Cosilico Brand Name Analysis - December 2025

Cosilico Brand Name Analysis

Date: December 10, 2025
Prepared for: Cosilico (cosilico.ai)
Tools used: namecast Claude Code plugin, whois, WebSearch, WebFetch, persona agents


Executive Summary

@MaxGhenis
MaxGhenis / ea-forum-giving-tuesday-2025.md
Created December 2, 2025 19:27
GiveCalc 2.0: EA Forum post for Giving Tuesday 2025

GiveCalc 2.0: Calculate your true cost of giving this Giving Tuesday

TL;DR: We've rebuilt GiveCalc as a standalone web application at givecalc.org. The free calculator now covers US federal and state taxes, UK Gift Aid, and tax years 2024-2026. Use it to find out how much your charitable donations actually cost after tax savings.

What's new since last year

A year ago, I introduced GiveCalc as a Streamlit app on PolicyEngine's infrastructure. This Giving Tuesday, we're launching GiveCalc 2.0—rebuilt from the ground up with a faster React interface, expanded to cover UK Gift Aid, and now available at its own domain: givecalc.org.

The new version supports multiple income types (wages, self-employment, capital gains, dividends, interest), works on mobile, and lets you calculate for tax years 2024, 2025, or 2026.

@MaxGhenis
MaxGhenis / social-posts-givecalc.md
Created December 2, 2025 16:55
GiveCalc Giving Tuesday 2025 social media posts

GiveCalc Social Media Posts - Giving Tuesday 2025

LinkedIn (Global)

This Giving Tuesday, know the true cost of your donation.

We've launched GiveCalc (givecalc.org) — a free calculator that shows how charitable giving affects your taxes.

🇺🇸 US donors: See federal + state tax savings across all 50 states, DC, and NYC. Includes 2025 tax year with HR1 changes.

@MaxGhenis
MaxGhenis / github_stats.py
Created December 1, 2025 18:56
PolicyEngine GitHub Statistics Verification Script
#!/usr/bin/env python3
"""
PolicyEngine GitHub Organization Statistics
Calculates repository count, contributor count, and fork count
for use in grant proposals and documentation.
Run with: python github_stats.py
Requires: requests library (pip install requests)
"""
@MaxGhenis
MaxGhenis / referee_reports_r3.md
Created November 25, 2025 12:04
Simulated Referee Reports Round 3 - Beer Price Controls (with Reproducibility Expert)

Simulated Referee Reports: Round 3

Beer Price Controls at Yankee Stadium (SSRN Working Paper)

Status: All reviewers recommend Accept


REFEREE REPORT #1 (Sports Economics)

Recommendation: Accept

@MaxGhenis
MaxGhenis / gist:4cbf0e93bb6aefda77daedab526c1eca
Last active November 25, 2025 11:09
Simulated Referee Reports for Beer Price Controls Paper (Round 2)
# Simulated Referee Reports: Round 2
## Beer Price Controls at Yankee Stadium (SSRN Working Paper)
---
## AUTHOR RESPONSE CHECKLIST
| Referee | Issue | Status |
|---------|-------|--------|
| R1 | Quantify decomposition in abstract | ✅ DONE (111% intensive, -11% extensive) |