Day 1 #!/usr/bin/env python input = open("puzzle_input").read().strip() def part1(input): elfs = input.split("\n\n") elfs_int = [] for elf in elfs: e = elf.split("\n") e = map(int, e) e = sum(e) elfs_int.append(e) return max(elfs_int) def part2(input): elfs = input.split("\n\n") elfs_int = [] for elf in elfs: e = elf.split("\n") e = map(int, e) e = sum(e) elfs_int.append(e) elfs_int = sorted(elfs_int, reverse=True) return sum(elfs_int[:3]) print(part2(input)) Day 2 #!/usr/bin/env python from enum import Enum input = open("puzzle_input")....
16 Wednesday
Larry was right
10 Thursday
.NET 7 was released recently. https://devblogs.microsoft.com/dotnet/announcing-dotnet-7/ Some C# Code static T Add<T>(T left, T right) where T : INumber<T> { return left + right; } Testing Twitter Embed jerome powell: we’re going to do whatever it takes to combat inflation market: bid high beta to the moon as soon as we get a slightly cooler cpi print? jerome powell: no, absolutely not market: pic.twitter.com/PWlLUjQOc9 — sophie (@netcapgirl) November 10, 2022 https://twitter....
Blog meta - Blogging in Hugo with Obsidian
Problem: Images not handled correctly Solution Turn off “Use Wikilinks” in Obsidian Settings->Files & Links. Create a folder public/static/ in your vault and set Obsidian to use this this as “Default location for new attachments” in Obsidian Settings->Files & Links Problem: Hugo shortcodes with Obsidian-Export Hugo supports “shortcodes” to - for example - add Twitter and YouTube embeds. The problem is that obsidian-export, which uses the Rust library pulldown-cmark under the hood, escapes the angle brackets, turning this:...
09 Wednesday
Photo by Anton Maksimov 5642.su on Unsplash I’ve switched the setup for this site It now runs Hugo generated HTML on Markdown edited with Obsidian and Helix. Published to Render.com via git and GitHub Actions. Mobile https://forum.obsidian.md/t/mobile-setting-up-ios-git-based-syncing-with-mobile-app-using-working-copy/16499 SolidStart Interesting experiments in future web frameworks. https://www.solidjs.com/blog/introducing-solidstart
08 Tuesday
Molly White talk Is Web3 bullshit? https://www.youtube.com/watch?v=AGsllEF7w_g CPUs: Speculative execution "Speculative execution is an optimization technique in which a processor (CPU) performs a series of tasks before it is prompted to, in order to have the information ready if it is required at any point." https://www.techtarget.com/whatis/definition/speculative-execution HMR for Remix dev experience with Vite https://github.com/sudomf/remix-vite