Skip to content

Instantly share code, notes, and snippets.

@PatrickVienne
PatrickVienne / aoc2023_d3.go
Created December 3, 2023 06:21
Advent of Code 2023 - Day 3
package d3
import (
"bufio"
"io"
"regexp"
"strconv"
)
func Must(err error) {
@PatrickVienne
PatrickVienne / Net Zero by 2050 - A Roadmap for the Global Energy Sector_p202_transformed.csv
Created April 13, 2024 14:42
Generate historical animation for Nuclear and Renewable Energy Share of Energy Production
EnergyType Financing Rate Costtype Region 2020 2030 2050
Nuclear 8 Capital costs ($/kW) United States 5000 4800 4500
Coal 8 Capital costs ($/kW) United States 2100 2100 2100
Gas CCGT 8 Capital costs ($/kW) United States 1000 1000 1000
Solar PV 3.7 Capital costs ($/kW) United States 1140 620 420
Wind onshore 3.7 Capital costs ($/kW) United States 1540 1420 1320
Wind offshore 4.5 Capital costs ($/kW) United States 4040 2080 1480
Nuclear 8 Capital costs ($/kW) European Union 6600 5100 4500
Coal 8 Capital costs ($/kW) European Union 2000 2000 2000
Gas CCGT 8 Capital costs ($/kW) European Union 1000 1000 1000