Skip to content

Instantly share code, notes, and snippets.

View jmcph4's full-sized avatar

Jack McPherson jmcph4

View GitHub Profile
https://x.com/bubbleboi/status/2048964901201215927
“Bushido is to enter a ‘death frenzy’ (shini-gurui). Even dozens of men cannot kill a man in a frenzied state already determined to die.” Lord Naoshige said this. One cannot accomplish great exploits in a normal frame of mind. Just become insane and desperate to die. In the Way of the warrior, contemplating matters too deeply will cause you to fall behind others. Don’t think of loyalty or filial piety, just enter a frenzy to perish in shidō. Loyalty and filial piety will manifest as a matter of course in the death frenzy.
@jmcph4
jmcph4 / bib.txt
Last active April 24, 2026 00:57
https://web.archive.org/web/20081219052953/zedshaw.com/rants/rails_is_a_ghetto.html
https://www.scattered-thoughts.net/writing/against-sql
https://www.youtube.com/watch?v=Jmi93AZf_z0
https://landley.net/history/mirror/cpm/history.html
https://groups.google.com/a/chromium.org/g/chromium-dev/c/EUqoIz2iFU4/m/kPZ5ZK0K3gEJ?pli=1
https://blog.railway.com/p/moving-railways-frontend-off-nextjs
https://www.youtube.com/watch?v=3tIQUFg4KQA
module Book where
import Control.Applicative (liftA2)
maximumMaybe :: Ord a => [a] -> Maybe a
maximumMaybe [] = Nothing
maximumMaybe xs = Just (maximum xs)
minimumMaybe :: Ord a => [a] -> Maybe a
minimumMaybe [] = Nothing

Why the USD nominal can diverge sharply from the AUD nominal

When --risk-free us is used, perf.py converts the portfolio's AUD cashflows to USD via daily AUD/USD spot (Yahoo AUDUSD=X) before applying the US Treasury deflator. The reported USD nominal is the XIRR of those FX-converted cashflows.

The USD nominal can look surprisingly high (or low) compared to the AUD nominal whenever AUD has moved materially against USD over the holding period. This is not a bug — it is the real USD return an offshore