Projects

Two data systems that run every morning without me, and one car. Figures on this page are drawn from their current data.

Gigawatt Ledger

AI spending traced from big tech’s filings to the power grid

Each night the pipeline pulls SEC filings for 26 companies across the AI supply chain (cloud buyers, chip makers, server and power-equipment suppliers, data-center landlords, utilities) and hourly electricity demand for five data-center regions. Every value is stored with the date it became public, so any past day can be replayed exactly as it looked then.

Demand is weather-adjusted with a regression on month fixed effects and quadratic heating and cooling degree-days, then split into growth regimes with a piecewise-linear trend whose breakpoints are chosen by BIC.

On top sits an AI analyst with 16 tools. A verifier checks every number in its answer against the tool outputs before anything is shown, and an eval suite of 22 cases (time travel, multi-step math, unit traps, prompt injection) runs it end to end.

Companies
26, from SEC EDGAR XBRL
Grid data
337,000+ hours, 5 regions
Filing passages
4,600+, BM25 search
Evals
22 / 22, three runs each
Tests
63, run on every push
Runs
Daily, GitHub Actions
Weather modelloadt = αmonth + β1HDDt + β2HDDt2 + β3CDDt + β4CDDt2 + γ·weekendt + εt
Figure 2. Quarterly capital spending by the four largest cloud companies (stacked), against NVIDIA’s quarterly revenue (line). 2026 Q3: $201.9B of capex.
Figure 3. Weather-adjusted overnight load by data-center region, indexed to each region’s first 12 months = 100.
Figure 4. Correlation between capex growth and N. Virginia load growth when capex leads by k quarters. Shaded: ±2/√n noise band. Strongest at k = +1 (r = 0.52, n = 26).
AI analyst, point-in-time

> What is NVIDIA's most recent quarterly revenue and its year-over-year growth?

as of

NVIDIA's most recent reported quarter in the data is 2024Q4, with revenue of $39.33B, up 77.9% year over year.

  • Growth has slowed each quarter, though it is still high. It was 122.4% in 2024Q2 ($30.04B) and 93.6% in 2024Q3 ($35.08B).
  • Calendar 2025Q1 has no NVIDIA revenue figure as of today (2025-05-27), so 2024Q4 is the latest available.
  • Hyperscaler capex for 2025Q1 is already public at $71.9B, up 62.3% year over year. That is a demand signal, not NVIDIA's own result.

Two real answers from eval runs. The analyst only sees filings made public by the date it is asked, so the same question gets a different, correct answer.

Sundown

How much of the evening peak batteries now carry on U.S. grids

Every morning the pipeline pulls the previous day of hourly demand and generation by fuel for the seven major U.S. grids from the EIA API, validates it, loads it into SQL, and rebuilds a dashboard. A Spark job recomputes the main metric independently and must match the SQL result.

The headline metric is the battery share of the net peak: the hour each day when demand minus solar and wind is highest, which is the hour the rest of the fleet struggles to cover. The quality checks have caught three errors in EIA’s own published data.

Grids
7 balancing authorities
Records
588,712 hourly rows
California net peak from batteries
25%, last 30 days
Tests
59
Runs
Daily, Airflow and GitHub Actions
Figure 5. Battery output by hour of day (rows) and week (columns), MW. Blue is charging, orange is discharging. The midday blue band is solar being stored; the orange band is that energy coming back after sunset.
Figure 6. California, an average day: demand (line), solar (shaded) and batteries (bars, below zero = charging), GW.
Figure 7. Share of California’s daily net peak supplied by batteries, 7-day mean, %.
Figure 8. Energy discharged by batteries each month, by grid, GWh.
sql/analysis/06_net_peak_battery_share.sql
daily_net_peak AS (
    SELECT *,
           ROW_NUMBER() OVER (PARTITION BY region_code, day ORDER BY net_load_mwh DESC) AS rn,
           COUNT(*)     OVER (PARTITION BY region_code, day)                            AS hours
    FROM hourly
)
SELECT region_code,
       day,
       period_utc                                       AS net_peak_hour_utc,
       ROUND(demand_mwh)                                AS demand_mwh,
       ROUND(net_load_mwh)                              AS net_load_mwh,
       ROUND(battery_mwh)                               AS battery_mwh,
       ROUND(100.0 * battery_mwh / NULLIF(net_load_mwh, 0), 1) AS battery_share_of_net_peak_pct
FROM daily_net_peak
WHERE rn = 1 AND hours >= 22                             -- complete days only
ORDER BY region_code, day;

BMW engine and electronics tuning

Personal project, 2026

Reprogrammed the car’s engine control unit in C and Python, tuning 125 calibration parameters across ignition timing, fuel delivery, boost and throttle response. Reconfigured 6 electronic control modules to add live G-force telemetry and radar displays to the car’s own screens.

Parameters tuned
125
Engine performance
+17%
Modules reconfigured
6
Built with
C, Python