diff --git a/Cargo.lock b/Cargo.lock index 34a2706..64876de 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,24 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 + +[[package]] +name = "aho-corasick" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" +dependencies = [ + "memchr", +] + +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] [[package]] name = "atomic-waker" @@ -8,6 +26,12 @@ version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" +[[package]] +name = "autocfg" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" + [[package]] name = "base64" version = "0.22.1" @@ -29,18 +53,83 @@ dependencies = [ "generic-array", ] +[[package]] +name = "bstr" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63044e1ae8e69f3b5a92c736ca6269b8d12fa7efe39bf34ddb06d102cf0e2cab" +dependencies = [ + "memchr", + "serde", +] + +[[package]] +name = "bumpalo" +version = "3.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb" + [[package]] name = "bytes" version = "1.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" +[[package]] +name = "cc" +version = "1.2.61" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d16d90359e986641506914ba71350897565610e87ce0ad9e6f28569db3dd5c6d" +dependencies = [ + "find-msvc-tools", + "shlex", +] + [[package]] name = "cfg-if" version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" +[[package]] +name = "chrono" +version = "0.4.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c673075a2e0e5f4a1dde27ce9dee1ea4558c7ffe648f576438a20ca1d2acc4b0" +dependencies = [ + "iana-time-zone", + "num-traits", + "windows-link", +] + +[[package]] +name = "chrono-tz" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93698b29de5e97ad0ae26447b344c482a7284c737d9ddc5f9e52b74a336671bb" +dependencies = [ + "chrono", + "chrono-tz-build", + "phf", +] + +[[package]] +name = "chrono-tz-build" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c088aee841df9c3041febbb73934cfc39708749bf96dc827e3359cd39ef11b1" +dependencies = [ + "parse-zoneinfo", + "phf", + "phf_codegen", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + [[package]] name = "cpufeatures" version = "0.2.17" @@ -50,6 +139,31 @@ dependencies = [ "libc", ] +[[package]] +name = "crossbeam-deque" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51" +dependencies = [ + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" + [[package]] name = "crypto-common" version = "0.1.7" @@ -60,6 +174,12 @@ dependencies = [ "typenum", ] +[[package]] +name = "deunicode" +version = "1.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abd57806937c9cc163efc8ea3910e00a62e2aeb0b8119f1793a978088f8f6b04" + [[package]] name = "digest" version = "0.10.7" @@ -86,6 +206,12 @@ dependencies = [ "windows-sys", ] +[[package]] +name = "find-msvc-tools" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" + [[package]] name = "fnv" version = "1.0.7" @@ -150,6 +276,41 @@ dependencies = [ "version_check", ] +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "libc", + "wasi", +] + +[[package]] +name = "globset" +version = "0.4.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52dfc19153a48bde0cbd630453615c8151bce3a5adfac7a0aebfbf0a1e1f57e3" +dependencies = [ + "aho-corasick", + "bstr", + "log", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "globwalk" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf760ebf69878d9fd8f110c89703d90ce35095324d1f1edcb595c63945ee757" +dependencies = [ + "bitflags", + "ignore", + "walkdir", +] + [[package]] name = "h2" version = "0.4.13" @@ -244,6 +405,15 @@ version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" +[[package]] +name = "humansize" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6cb51c9a029ddc91b07a787f1d86b53ccfa49b0e86688c946ebe8d3555685dd7" +dependencies = [ + "libm", +] + [[package]] name = "hyper" version = "1.9.0" @@ -280,6 +450,46 @@ dependencies = [ "tower-service", ] +[[package]] +name = "iana-time-zone" +version = "0.1.65" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "wasm-bindgen", + "windows-core", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "ignore" +version = "0.4.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3d782a365a015e0f5c04902246139249abf769125006fbe7649e2ee88169b4a" +dependencies = [ + "crossbeam-deque", + "globset", + "log", + "memchr", + "regex-automata", + "same-file", + "walkdir", + "winapi-util", +] + [[package]] name = "indexmap" version = "2.14.0" @@ -296,12 +506,34 @@ version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" +[[package]] +name = "js-sys" +version = "0.3.95" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2964e92d1d9dc3364cae4d718d93f227e3abb088e747d92e0395bfdedf1c12ca" +dependencies = [ + "once_cell", + "wasm-bindgen", +] + +[[package]] +name = "lazy_static" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" + [[package]] name = "libc" version = "0.2.185" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "52ff2c0fe9bc6cb6b14a0592c2ff4fa9ceb83eea9db979b0487cd054946a2b8f" +[[package]] +name = "libm" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981" + [[package]] name = "lock_api" version = "0.4.14" @@ -350,6 +582,15 @@ dependencies = [ "windows-sys", ] +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + [[package]] name = "once_cell" version = "1.21.4" @@ -379,12 +620,102 @@ dependencies = [ "windows-link", ] +[[package]] +name = "parse-zoneinfo" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f2a05b18d44e2957b88f96ba460715e295bc1d7510468a2f3d3b44535d26c24" +dependencies = [ + "regex", +] + [[package]] name = "percent-encoding" version = "2.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" +[[package]] +name = "pest" +version = "2.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0848c601009d37dfa3430c4666e147e49cdcf1b92ecd3e63657d8a5f19da662" +dependencies = [ + "memchr", + "ucd-trie", +] + +[[package]] +name = "pest_derive" +version = "2.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11f486f1ea21e6c10ed15d5a7c77165d0ee443402f0780849d1768e7d9d6fe77" +dependencies = [ + "pest", + "pest_generator", +] + +[[package]] +name = "pest_generator" +version = "2.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8040c4647b13b210a963c1ed407c1ff4fdfa01c31d6d2a098218702e6664f94f" +dependencies = [ + "pest", + "pest_meta", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "pest_meta" +version = "2.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "89815c69d36021a140146f26659a81d6c2afa33d216d736dd4be5381a7362220" +dependencies = [ + "pest", + "sha2", +] + +[[package]] +name = "phf" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd6780a80ae0c52cc120a26a1a42c1ae51b247a253e4e06113d23d2c2edd078" +dependencies = [ + "phf_shared", +] + +[[package]] +name = "phf_codegen" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aef8048c789fa5e851558d709946d6d79a8ff88c0440c587967f8e94bfb1216a" +dependencies = [ + "phf_generator", + "phf_shared", +] + +[[package]] +name = "phf_generator" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c80231409c20246a13fddb31776fb942c38553c51e871f8cbd687a4cfb5843d" +dependencies = [ + "phf_shared", + "rand", +] + +[[package]] +name = "phf_shared" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67eabc2ef2a60eb7faa00097bd1ffdb5bd28e62bf39990626a582201b7a754e5" +dependencies = [ + "siphasher", +] + [[package]] name = "pin-project" version = "1.1.11" @@ -411,6 +742,15 @@ version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" +[[package]] +name = "ppv-lite86" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy", +] + [[package]] name = "proc-macro2" version = "1.0.106" @@ -429,6 +769,36 @@ dependencies = [ "proc-macro2", ] +[[package]] +name = "rand" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ca0ecfa931c29007047d1bc58e623ab12e5590e8c7cc53200d5202b69266d8a" +dependencies = [ + "libc", + "rand_chacha", + "rand_core", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom", +] + [[package]] name = "redox_syscall" version = "0.5.18" @@ -438,12 +808,56 @@ dependencies = [ "bitflags", ] +[[package]] +name = "regex" +version = "1.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a" + +[[package]] +name = "rustversion" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" + [[package]] name = "ryu" version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + [[package]] name = "scoped-tls" version = "1.0.1" @@ -521,6 +935,23 @@ dependencies = [ "digest", ] +[[package]] +name = "sha2" +version = "0.10.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + [[package]] name = "signal-hook-registry" version = "1.4.8" @@ -531,12 +962,28 @@ dependencies = [ "libc", ] +[[package]] +name = "siphasher" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2aa850e253778c88a04c3d7323b043aeda9d3e30d5971937c1855769763678e" + [[package]] name = "slab" version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" +[[package]] +name = "slug" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "882a80f72ee45de3cc9a5afeb2da0331d58df69e4e7d8eeb5d3c7784ae67e724" +dependencies = [ + "deunicode", + "wasm-bindgen", +] + [[package]] name = "smallvec" version = "1.15.1" @@ -564,6 +1011,28 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "tera" +version = "1.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8004bca281f2d32df3bacd59bc67b312cb4c70cea46cbd79dbe8ac5ed206722" +dependencies = [ + "chrono", + "chrono-tz", + "globwalk", + "humansize", + "lazy_static", + "percent-encoding", + "pest", + "pest_derive", + "rand", + "regex", + "serde", + "serde_json", + "slug", + "unicode-segmentation", +] + [[package]] name = "tokio" version = "1.52.1" @@ -637,6 +1106,12 @@ version = "1.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "40ce102ab67701b8526c123c1bab5cbe42d7040ccfd0f64af1a385808d2f43de" +[[package]] +name = "ucd-trie" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2896d95c02a80c6d6a5d6e953d479f5ddf2dfdb6a244441010e373ac0fb88971" + [[package]] name = "unicase" version = "2.9.0" @@ -649,12 +1124,28 @@ version = "1.0.24" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" +[[package]] +name = "unicode-segmentation" +version = "1.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9629274872b2bfaf8d66f5f15725007f635594914870f65218920345aa11aa8c" + [[package]] name = "version_check" version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + [[package]] name = "warp" version = "0.4.2" @@ -690,20 +1181,129 @@ version = "0.11.1+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" +[[package]] +name = "wasm-bindgen" +version = "0.2.118" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf938a0bacb0469e83c1e148908bd7d5a6010354cf4fb73279b7447422e3a89" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.118" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eeff24f84126c0ec2db7a449f0c2ec963c6a49efe0698c4242929da037ca28ed" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.118" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d08065faf983b2b80a79fd87d8254c409281cf7de75fc4b773019824196c904" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.118" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fd04d9e306f1907bd13c6361b5c6bfc7b3b3c095ed3f8a9246390f8dbdee129" +dependencies = [ + "unicode-ident", +] + [[package]] name = "website" version = "0.1.0" dependencies = [ + "lazy_static", + "tera", "tokio", "warp", ] +[[package]] +name = "winapi-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys", +] + +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "windows-link" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link", +] + [[package]] name = "windows-sys" version = "0.61.2" @@ -713,6 +1313,26 @@ dependencies = [ "windows-link", ] +[[package]] +name = "zerocopy" +version = "0.8.48" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eed437bf9d6692032087e337407a86f04cd8d6a16a37199ed57949d415bd68e9" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.48" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70e3cd084b1788766f53af483dd21f93881ff30d7320490ec3ef7526d203bad4" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "zmij" version = "1.0.21" diff --git a/Cargo.toml b/Cargo.toml index 22a185f..0d8045d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,5 +4,7 @@ version = "0.1.0" edition = "2021" [dependencies] +lazy_static = "1.5.0" +tera = "1.20.1" tokio = { version = "1", features = ["full"] } warp = { version = "0.4", features = ["server"] } diff --git a/Dockerfile b/Dockerfile index f1579fa..2cd10a9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,7 @@ FROM debian:bookworm-slim WORKDIR /app COPY --from=builder /usr/src/app/target/release/website /app/warp_server COPY ./static /app/static +COPY ./templates /app/templates EXPOSE 3030 CMD ["./warp_server"] diff --git a/src/main.rs b/src/main.rs index 3fb43f9..d62e9b6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,21 @@ -use warp::Filter; +use tera::{Context, Tera}; +use warp::{Filter, filters::path::Tail, Reply, Rejection}; + +lazy_static::lazy_static! { + pub static ref TEMPLATES: Tera = Tera::new("templates/**/*").expect("failed to parse templates"); +} #[tokio::main] async fn main() { - let static_files = warp::fs::dir("static"); + let static_pages = warp::fs::dir("static"); + + for name in TEMPLATES.get_template_names() { + println!("Loaded template {}", name); + } + + let templates = warp::get() + .and(warp::path::tail()) + .and_then(render_template); let root = warp::path::end() .and(warp::header::optional::("accept-language")) @@ -14,9 +27,24 @@ async fn main() { warp::redirect(warp::http::Uri::from_static(target)) }); - let routes = root.or(static_files); + let routes = root.or(static_pages).or(templates); warp::serve(routes) .run(([0,0,0,0], 3030)) .await; } + +async fn render_template(tail: Tail) -> Result { + let mut path = tail.as_str().to_string(); + if path.is_empty() || path.ends_with('/') { + path.push_str("index.html"); + } + + match TEMPLATES.render(&path, &Context::new()) { + Ok(html) => Ok(warp::reply::html(html)), + Err(e) => { + eprintln!("Tera error: {}", e); + Err(warp::reject::not_found()) + } + } +} diff --git a/static/en/academic/cv/index.html b/static/en/academic/cv/index.html deleted file mode 100644 index e531100..0000000 --- a/static/en/academic/cv/index.html +++ /dev/null @@ -1,10 +0,0 @@ -Spencer Nicholas Whitehead's Academic Page - - -

Spencer Nicholas Whitehead

- - Research | CV | Teaching | Art -
- -

My most recent CV is available here (link to PDF; updated February 7 2023).

- diff --git a/static/en/academic/cv/resume.pdf b/static/en/academic/cv/resume.pdf deleted file mode 100644 index 85fa03e..0000000 Binary files a/static/en/academic/cv/resume.pdf and /dev/null differ diff --git a/static/en/academic/index.html b/static/en/academic/index.html deleted file mode 100644 index 6bc1c68..0000000 --- a/static/en/academic/index.html +++ /dev/null @@ -1,14 +0,0 @@ -Spencer Nicholas Whitehead's Academic Page - - -

Spencer Nicholas Whitehead

-

I received my Bachelor of Mathematics and Master of Mathematics from the University of Waterloo in the years 2021 and 2022 respectively, both from the Department of Pure Mathematics. - During these degrees I worked primarily with Benoit Charbonneau in the fields of Euclidean geometry and gauge theory. - Currently I am a Ph. D. student at the Department of Mathematics at Duke University. -

- -

Aside from my research in mathematics, my primary skills are in software development and teaching. - For a complete history of my work in academia and industry, see the CV tab. - For my teaching activities, see the Teaching tab.

-

Research interests: differential geometry, Euclidean geometry, gauge theory, mathematical art

- diff --git a/static/en/academic/teaching/2023/106/grading_info/index.html b/static/en/academic/teaching/2023/106/grading_info/index.html deleted file mode 100644 index b640659..0000000 --- a/static/en/academic/teaching/2023/106/grading_info/index.html +++ /dev/null @@ -1,56 +0,0 @@ -MATH 106L Grading - - - -

MATH 106L Grading - F23

-

As described in the description of grade breakdown here, grading in this offering of MATH 106L will be on a mastery grading basis. That means for each assignment, you will ultimately receive a grade of either pass or fail.

- -

In order to pass the course (graded on a pass/fail basis) you must

- -

At a glance, this seems like a lot. -Most of these bullet points specify that you must pass specific labs/worksheets at the end of the course; fundamentally, you are responsible for 27 small assignments, 6 lab reports, and 2 big assignments to pass. -All of these but the big assignments can (and should) be done in groups! This will make your life much easier.

- -

Some questions you might want to ask

- -

Did I pass assignment XYZ?

-

If ever you fail to pass an assignment, I will email you about it prior to publishing the Gradescope grades. -If you haven't received an email from me, the answer is yes!

- -

What constitutes a `pass'? — Lecture worksheets, individual lab assignments

- -

Each worksheet consists of a number of `worksheet questions' and potentially some `homework questions'. Each is worth 1 point; earning at least two thirds of the available points constitutes a pass. Your first submission will be graded for feedback only; the resubmission will be graded for correctness, and to determine whether or not a passing grade has been earned.

- -

What constitutes a `pass'? — Lab reports

- -

A lab report consists of a typed response in full sentences incorporating answers to a selection of math questions into the body of the text. -Reports will be graded on a rubric for correctness and completeness of the mathematics and quality of written presentation. (See here for best practices in writing mathematics). -A score of level 3 or higher will constitute a pass; that is, a total score of 12 or higher on the following rubric.

- - -

If your group fails to pass with a level 3 or higher on the first attempt, you will be given feedback and the opportunity to correct and make a resubmission.

- -

What constitutes a `pass'? — Big assignments

- -

The big assignments of MATH 106L are the closest thing the course has to conventional tests. -You will fill out and submit the assignment individually, and a score of 70% or higher constitutes a pass. -In the event that you fail to pass the assignment the first time, you will be given the chance to submit corrections to receive up to half of the lost points. -For example, if you earn a grade of 60% on a first submission and submit corrections for 30% of the lost marks, your final grade on the big assignment would be 60% + 1/2 x 30% = 75%; a pass.

- -

Am I on track to pass the course?

- -

Unless we've spoken and I've said something to the opposite effect, yes! If you ever don't get credit for an assignment, I will contact you about it. -You are always welcome to email me to request the records I have for grades you've earned in the course to a point.

- -

DukeHub says we have an exam on the 17th?

- -

We don't. There are no exams in this course.

- diff --git a/static/en/academic/teaching/2023/106/index.html b/static/en/academic/teaching/2023/106/index.html deleted file mode 100644 index 7f479cd..0000000 --- a/static/en/academic/teaching/2023/106/index.html +++ /dev/null @@ -1,856 +0,0 @@ -MATH 106L - Fall 2023 - - - - -

MATH 106L: Lab calculus and functions II

- -

Instructor: Spencer Nicholas Whitehead

- -

Lecture times: MWF 12:00-12:50, W. Duke 08A

-

Lab times: TTh 12:00-12:50, W. Duke 08A

- -

Office Hours: W 13:00-14:00, Classroom 132; Th 16:00-17:00, F 15:00-16:00, Zoom (link sent by email). One online office hour TBD.

- -

Syllabus: See the course syllabus in PDF format here.

- -

Contact: See a facesheet of course staff and contact info in PDF format here.

- -

Grading: Detailed information on the grading scheme is available in PDF format here.

- -

A more detailed breakdown of the grading scheme and FAQ is available here.

- -

The rubric used to assess reports is available here (see above link for more grading info). - -

-Course description: The notion of quadrature, the computation of the area of a complicated shape by filling it with smaller, better understood shapes, has been studied since the Greeks. -In MATH 105L, you studied the calculus of differentials and learned how the behaviour of a (reasonable) function could be described locally by its derivative. -Historically, this notion came almost 2,000 years after that of quadrature. -It would be a further two centuries until James Gregory would publish a statement and proof of what is today known as the fundamental theorem of calculus. -This theorem states roughly that quadrature, called integration today, is inverse to differentiation: the derivative of an integral of a function is the original function, and the integral of a derivative of a function is the original function—perhaps up to the oft-forgotten '+ C'. -

-

-The fundamental theorem of calculus cannot be described as anything short of astonishing. -There is no reason a priori to believe that the operations of finding area and finding local linear approximations should be related to each other in any reasonable way, but the fundamental theorem of calculus provides exactly this relation. -The fundamental theorem of calculus comprises perhaps the first example of what one might call a 'local-global result': by knowing local information about a function (its derivative at each point), one learns global information about the function (the area under its graph). -This philosophy underlying the fundamental theorem of calculus is omnipresent in day-to-day life, if often invisible—as the sewist closes a sleeve with a stitch in the round or a ship circumnavigates the globe using only an atlas is present the fundamental theorem of calculus, providing rigorous mathematical justification to the idea that local approximations, sufficiently accurate, sum to the whole. -While often exploited as just a computational tool, it would be no exaggeration to call the fundamental theorem of calculus one of the most beautiful in all of mathematics. -

-

-In MATH 106L we will develop the modern integral calculus from a particular kind of quadrature called a Riemann sum, and from this definition prove the fundamental theorem of calculus. -After the fall break, we will begin the study of differential equations and methods of solution. -Finally, after the Thanskgiving break (and throughout the labs) we will study specific examples of differential equations that motivated the historical development of calculus, such as Newton's laws of motion and models for population growth/decay, including the presence of forcing terms. -

- -

-Best practices for writing mathematics: Through the course, you will have the chance in labs to write a number of group reports. -While there is no universal style guide for mathematical writing, there are a number of accepted best practices, available in PDF format here. -When writing reports, you are expected to follow the practices in this document. -

- -

-Textbook problems: In the interest of fairness and accessibility, I will pull practice problems and enrichment reading from the free and openly available MIT OpenCourseWare Calculus text of Strang. Click here to access this textbook. -The practice problems will be updated on a (roughly) week-by-week basis; for some weeks there may be no practice problems. -Many Duke courses use recent editions of Hughes-Hallett; this is a resource you may consider purchasing or finding in the library, but is not required for this class. -My personal favourite calculus texts are those of Michael Spivak. -I highly recommend them for enrichment reading, but again do not require them for this class. -See the syllabus for more information on titles, editions, etc. -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
LessonDateTopicWorksheetDue DateResourcesTextbook practice
(Not to hand in)
External resources
1-12023-08-28105L ReviewWorksheet2023-09-04
Lab2023-08-29Trigonometry, ILab 12023-09-04Section 1.5Basic trig
1-22023-08-30Trigonometry, IIWorksheet2023-09-04Unit circle
Radians
Lab2023-08-31Trigonometric
modelling, I
Lab 2Spreadsheet
Geogebra
Section 1.5Sinusoidal models
1-32023-09-01Trigonometric
identities, limits
Worksheet2023-09-04Section 1.5Trig identities
Angle addition
2023-09-04Labour day, no class
Lab2023-09-05Trigonometric
modelling, II
Report: Global
warming [group]
2023-09-13Section 1.5
2-22023-09-06Trigonometric
Derivatives
Worksheet2023-09-11Section 2.4Differentiating trig functions
Lab2023-09-07Newton's laws
of motion, I
Lab 3
2-32023-09-08Inverse trigonometric
functions
Worksheet2023-09-11Inverse trig functions
3-12023-09-11Trigonometric
inverse derivatives
Worksheet2023-09-18The inverse function theorem
Lab2023-09-12NO LABBIG ASSIGNMENT 12023-09-22
3-22023-09-13Trigonometric
related rates
Worksheet2023-09-18
Lab2023-09-14Newton's laws
of motion, II
Group report: understanding gravity2023-09-20
3-32023-09-15Postition, velocity,
Acceleration
Worksheet2023-09-18
4-12023-09-18Distance from velocityWorksheet2023-09-25
Lab2023-09-19Sums, sigma notation
4-22023-09-20Left- and right-
handed sums
Worksheet2023-09-25
Lab2023-09-21Sums and sigma notation, IILab questions [individual]2023-09-27
4-32023-09-22The definite integralWorksheet2023-09-25
5-12023-09-25Midpoint and
trapezoid sums
Worksheet2023-10-02
Lab2023-09-26Postponed due to technical issues
5-22023-09-27FTC IWorksheet2023-10-02A proof of FTC in an easy case
Lab2023-09-28Riemann sums, ISpreadsheet
5-32023-09-29FTC I, cont.See 5-2
6-12023-10-02Properties of definite
integrals
Worksheet2023-10-09
Lab2023-10-03Riemann sums, II
6-22023-10-04Constructing
antiderivatives
Worksheet2023-10-09
Lab2023-10-05Riemannian Sums, IIIGroup report2023-10-11
6-32023-10-06Integration by substitutionWorksheet2023-10-09
7-12023-10-09Integration by partsWorksheet2023-10-23
Lab2023-10-10Average value of
a function, I
7-22023-10-11Antidifferentiation
practice, I
Worksheet2023-10-23
Lab2023-10-12Average value of a function, IIGroup report2023-10-18Also note:BIG ASSIGNMENT 22023-10-27
2023-10-13Fall break, no class
2023-10-16Fall break, no class
2023-10-17Fall break, no class
8-22023-10-18Antidifferentiation
practice, II
See 7-2
Lab2023-10-19Average Values, II
8-32023-10-20Integrating to infinityWorksheet2023-10-23
9-12023-10-23Other improper integralsWorksheet2023-10-30
Lab2023-10-24NO LAB
9-22023-10-25Big assignment help
Lab2023-10-26Force and Work: I
9-32023-10-27FTC IIWorksheet2023-10-30
10-12023-10-30Differential equations,
initial value problems, I
Worksheet2023-11-06
Lab2023-10-31Force and Work: II2023-11-08
10-22023-11-01Differential equations,
initial value problems, II
Lab2023-11-02Differential equations, I
10-32023-11-03Slope fields, equilibria, IWorksheet2023-11-06
11-12023-11-06Slope fields, equilibria, II
Lab2023-11-07Differential equations, IIReport: Short report [group]2023-11-15
11-22023-11-08Separation of variables, IWorksheet2023-11-13
Lab2023-11-09Euler's methodSpreadsheet
11-32023-11-10Separation of variables, II
12-12023-11-13Growth and decayWorksheet2023-11-20
Lab2023-11-14Euler's methodReport: Short report [group]2023-11-22
12-22023-11-15Applications: heating
and mixing, I
Worksheet2023-11-20
Lab2023-11-16Euler's methodBIG ASSIGNMENT 32023-11-27
12-32023-11-17Applications: heating
and mixing, I cont.
13-12023-11-20Applications: heating
and mixing, II (online only)
Worksheet2023-11-27
2023-11-21Thanksgiving, no class
2023-11-22Thanksgiving, no class
2023-11-23Thanksgiving, no class
2023-11-24Thanksgiving, no class
14-12023-11-27Worksheet2023-12-04
Lab2023-11-28Chemical rates
14-22023-11-29The logistic model for
population, I
Lab2023-11-30
14-32023-12-01The logistic model for
population, II
Worksheet2023-12-04
15-12023-12-04Population models
with migration
Worksheet
Lab2023-12-05Logistic model:
fishing
15-22023-12-06Applications of the
logistic model
Lab2023-12-07Logistic model:
fishing
Report: Short report [group]2023-12-15
15-32023-12-08Course evaluations
- - diff --git a/static/en/academic/teaching/index.html b/static/en/academic/teaching/index.html deleted file mode 100644 index a958bb5..0000000 --- a/static/en/academic/teaching/index.html +++ /dev/null @@ -1,83 +0,0 @@ -Spencer Nicholas Whitehead's Academic Page - - -

Spencer Nicholas Whitehead

- - Research | CV | Teaching | Art -
- -

For the Fall 2023 semester I am instructor of record on MATH 106L. Click here to access the course webpage for MATH 106L.

-

Below are a list of my previous teaching activities.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
RoleCourseTermInstitution
Lab TAMATH 111
Calculus 1
Fall 2022Duke
MarkerPMATH 347
Intro to Groups and Rings
Spring 2022Waterloo
MarkerPMATH 365
Differential Geometry
Winter 2022Waterloo
TAMATH 137
Calculus 1 for Hon. Math
Fall 2021Waterloo
Tutor
(Official)
MATH 136
Lin. Alg. 1 for Hon. Math
Winter 2021Waterloo
TA leadMATH 135
Algebra for Hon. Math
Fall 2020Waterloo
Tutor
(Official)
MATH 136Fall 2019Waterloo
Tutorial lecturerCS 246
Obj. Oriented Soft. Devel
Fall 2019Waterloo
Tutorial lecturerCS 246Winter 2018Waterloo
Instructional
support (full-time)
CS 246Fall 2018Waterloo
- diff --git a/static/en/index.html b/static/en/index.html deleted file mode 100644 index 5d9f514..0000000 --- a/static/en/index.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - Spencer Whitehead - - - -

Pour accéder à la version française, veuillez cliquer ici.

-

This is the personal website of Spencer Whitehead.

-

Resume

- diff --git a/static/en/resume/index.html b/static/en/resume/index.html deleted file mode 100644 index bb03995..0000000 --- a/static/en/resume/index.html +++ /dev/null @@ -1,155 +0,0 @@ - - - - - Spencer Nicholas Whitehead - CV - - - - -
-

Spencer Nicholas Whitehead

-
- Email: spencer@firemail.cc
- Phone: +1 984 312 9089 -
-
- -
-

Education

- -
-

Ph.D. candidate, Department of Mathematics, Duke University | September 2022 – April 2027 (expected)

-
    -
  • Currently researching four- and eight-dimensional geometry with Dr. Mark Stern.
  • -
  • Advanced to candidacy March 2025.
  • -
  • Member in the Certificate in College Teaching program, to be awarded on graduation.
  • -
-
- -
-

M.Math. in Pure Mathematics (research thesis), University of Waterloo | October 2021 – August 2022

-
    -
  • Supervised by Dr. Benoit Charbonneau.
  • -
  • Thesis title: Integrality theorems for symmetric instantons.
  • -
-
- -
-

B.Math. in Pure Mathematics; Minor in East Asian Studies, University of Waterloo | September 2016 – August 2021

-
    -
  • Recipient of 2021 Alumni Gold Medal for the Faculty of Mathematics.
  • -
  • Recipient of 2021 Jessie W.H. Zou Memorial Award for Excellence in Undergraduate Research.
  • -
-
-
- -
-

Industry Experience

- -
-

Software Engineering Intern, Citadel Enterprise, January 2020 – April 2020

-
    -
  • Developed C++ data pipelines to parse and archive data streams from Thompson Reuters.
  • -
  • Handled over 300GB per day of market data at the height of the market impact of COVID-19.
  • -
-
- -
-

Software Engineering Intern, ContextLogic LLC, January 2018 – April 2018

-
    -
  • Worked as a member of the Platform Data team, monitoring the health of policies and shipping estimates.
  • -
  • Conducted shipping time estimate experiments ranging from neutral to gross +2.5% profits.
  • -
  • Created reports and Grafana dashboards combining data from MongoDB and TreasureData tracking merchant policy effectiveness.
  • -
-
- -
-

Software Engineering Intern, Citadel LLC, September 2017 – December 2017

-
    -
  • Worked on the Accounting Development Team, creating and maintaining software for over 100 clients.
  • -
  • Designed, tested, and implemented new response formats reducing response size by 10x and increasing speed 5x.
  • -
-
-
- -
-

Skills

-
-
Languages
-
English, French (DELF B2), Japanese (B2/C1 level).
- -
Programming
-
C, C++, Python, Sage, Maple, Scheme, Haskell.
- -
Software
-
sklearn, numpy, (geo)pandas, pytorch, SQL.
-
-
- -
-

Leadership and Professional Service

-

Steward, Duke Graduate Students Union, Fall 2025 - present

-
    -
  • Mediated workplace disputes and represented graduate workers in grievance proceedings.
  • -
- -

President, AMS Student Chapter, 2024-25 academic year

-
    -
  • Organized and hosted the Triangle Area Graduate Mathematics Seminar with NC State University and UNC Chapel Hill at Duke, February 2025.
  • -
- -

Graduate student representative, Duke Mathematics Departmental Teaching Committee, Fall 2023 - present

-
    -
  • Performed annual interviews and advocated for graduate interests in departmental teaching decisions.
  • -
-
- -
-

Academic Activity

- -
-

Selected Publications

-
    -
  • Edidin, Dan, Matthew Satriano, and Spencer Whitehead. "On a smoothness characterization for good moduli spaces." Advances in Mathematics 442 (April 2024).
  • -
  • Charbonneau, B. and Whitehead, S. "Studying Wythoff and Zometool Constructions using Maple." Maple in Mathematics Education and Research (pp. 65–76), 2020.
  • -
-
- -
-

Supervision

-

Duke Math+ program (joint with Biji Wong, Gregory Herschlag), Spring 2026

-

Supervised four undergraduate students in a project on the application of diffusion maps and machine learning to graph partition problems, with a focus on the study of gerrymandering.

- -

MITACS internship program (joint with Benoit Charbonneau), Spring 2022

-

Supervised two undergraduate students in a computational project on low-dimensional optimal packing problems

-
- -
-

Selected Research Presentations

-
    -
  • [Invited] An asymptotic Nahm transform for Spin(7) instantons. Mathematical Congress of the Americas, Miami, July 2025.
  • -
  • Symmetric instantons. (Poster). Geometric Models of Matter, Leeds, August 2024.
  • -
  • Generalized Pythagorean lutes. Bridges 2022, Helsinki, August 2022.
  • -
  • Integrality theorems for symmetric instantons. Union College Mathematics Conference, Schenectady, June 2022.
  • -
-
-
-

Selected Teaching Experience

-

Instructor of record MATH 106L (Lab calculus 2), Fall 2023.

-
    -
  • Served as primary instructor and coordinator for a class of 18 students with daily meetings.
  • -
  • Managed a team of 4 undergraduate teaching assistants.
  • -
- -

Tutorial lecturer CS 246(E) ([Enriched] Object-Oriented Software Development), Fall 2018, Fall 2019, Winter 2019, University of Waterloo.

-
    -
  • Delivered weekly tutorial lectures for classes of 50+ students.
  • -
  • Designed assignments and managed the course platform for running and evaluating student code.
  • -
-
-
- - - - diff --git a/static/fr/index.html b/static/fr/index.html deleted file mode 100644 index 8d23033..0000000 --- a/static/fr/index.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - Spencer Whitehead - - - -

To access the English version, click here.

-

Ceci est le site web personnel de Spencer Whitehead.

- diff --git a/static/fr/resume/index.html b/static/fr/resume/index.html deleted file mode 100644 index f8be8e5..0000000 --- a/static/fr/resume/index.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - - Spencer Nicholas Whitehead - CV - - - - -
-

Spencer Nicholas Whitehead

-
- Courriel: spencer@firemail.cc
- No de tél.: +1 984 312 9089 -
-
- -
-

Education

- -
-

Doctorant, Department of Mathematics, Université Duke | septembre 2022 – Avril 2027

-
    -
  • Currently researching four- and eight-dimensional geometry with Prof. Mark Stern.
  • -
  • Member of the Certificate in College Teaching program, to be awarded on graduation.
  • -
-
- -
-

M.Math. in Pure Mathematics (research thesis), Université de Waterloo | Octobre 2021 – août 2022

-
    -
  • Supervisé de Prof. Benoit Charbonneau.
  • -
  • Titre du thèse: Integrality theorems for symmetric instantons.
  • -
-
- -
-

B.Math. in Pure Mathematics; Minor in études de l'Asie d'Est, Université de Waterloo | septembre 2016 – août 2021

-
    -
  • Recipient of 2021 Alumni Gold Medal for the Faculty of Mathematics.
  • -
  • Recipient of 2021 Jessie W.H. Zou Memorial Award for Excellence in Undergraduate Research.
  • -
-
-
- -
-

Industry Experience

- -
-

Stagiaire en ingénierie logicielle, Citadel Enterprise, Janvier 2020 – Avril 2020

-
    -
  • Developed C++ data pipelines to parse and archive data streams from Thompson Reuters.
  • -
  • Handled over 300GB per day of market data at the height of the market impact of COVID-19.
  • -
-
- -
-

Stagiaire en ingénierie logicielle, ContextLogic LLC, Janvier 2018 – Avril 2018

-
    -
  • Worked as a member of the Platform Data team, monitoring the health of policies and shipping estimates.
  • -
  • Conducted shipping time estimate experiments ranging from neutral to gross +2.5% profits.
  • -
  • Created reports and Grafana dashboards combining data from MongoDB and TreasureData tracking merchant policy effectiveness.
  • -
-
- -
-

Stagiaire en ingénierie logicielle, Citadel LLC, septembre 2017 – décembre 2017

-
    -
  • Worked on the Accounting Development Team, creating and maintaining software for over 100 clients.
  • -
  • Designed, tested, and implemented new response formats reducing response size by 10x and increasing speed 5x.
  • -
-
-
- -
-

Skills

-
-
Langages
-
anglais, français (DELF B2), japonais (niveau B2/C1).
- -
Langages de programmation
-
C, C++, Python, Sage, Maple, Haskell.
- -
Logiciel
-
sklearn, numpy, (geo)pandas, pytorch, SQL.
-
-
- -
-

Leadership and Professional Service

-

Délegué syndical, Duke Graduate Students Union, septembre 2025 - prèsent

-
    -
  • Mediated workplace disputes and represented graduate workers in grievance proceedings.
  • -
- -

Président, Chapitre étudiant de l'American Mathematical Society, année scolaire 2024-25

-
    -
  • Organized and hosted the Triangle Area Graduate Mathematics Seminar with NC State University and UNC Chapel Hill at Duke, fevrier 2025.
  • -
- -

Représentant des doctorants, Duke Mathematics Departmental Teaching Committee, novembre 2023 - present

-
    -
  • Performed annual interviews and advocated for graduate interests in departmental teaching decisions.
  • -
-
- -
-

Academic Activity

- -
-

Selected Publications

-
    -
  • Edidin, Dan, Matthew Satriano, et Spencer Whitehead. "On a smoothness characterization for good moduli spaces." Advances in Mathematics 442 (Avril 2024).
  • -
  • Charbonneau, B. et Whitehead, S. "Studying Wythoff and Zometool Constructions using Maple." Maple in Mathematics Education and Research (pp. 65–76), 2020.
  • -
-
- -
-

Supervision

-

Duke Math+ program (joint with Biji Wong, Gregory Herschlag), Spring 2026

-

Supervised four undergraduate students in a project on the application of diffusion maps and machine learning to graph partition problems, with a focus on the study of gerrymandering.

- -

MITACS internship program (joint with Benoit Charbonneau), Spring 2022

-

Supervised two undergraduate students in a computational project on low-dimensional optimal packing problems

-
- -
-

Selected Research Presentations

-
    -
  • [Invité] An asymptotic Nahm transform for Spin(7) instantons. Mathematical Congress of the Americas, Miami, juliet 2025.
  • -
  • Symmetric instantons. (Poster). Geometric Models of Matter, Leeds, août 2024.
  • -
  • Generalized Pythagorean lutes. Bridges 2022, Helsinki, août 2022.
  • -
  • Integrality theorems for symmetric instantons. Union College Mathematics Conference, Schenectady, juin 2022.
  • -
-
-
-

Selected Teaching Experience

-

Chargé de cours MATH 106L (Lab calculus 2), août - décembre 2023, Université Duke

-
    -
  • Instruction et coordination d'une classe de 18 élèves.
  • -
  • Gestion d'un equipe de 4 auxiliaires d'enseignment
  • -
- -

Auxiliaire d'enseignment CS 246(E) ([Enriched] Object-Oriented Software Development), septembre 2018 - décembre 2019, Université de Waterloo.

-
    -
  • Delivered weekly tutorial lectures for classes of 50+ students.
  • -
  • Designed assignments and managed the course platform for running and evaluating student code.
  • -
-
-
- - - -