Howdy y'all!
I hope you had a good week. Mine was fun celebrating birthdays of family and friends, and messing around with some side projects. Let's boogie.
Was this forwarded to you? You can subscribe here!
Designing Scroll Behavior: When to Save a User's Place
Setting Line Length in CSS (and Fitting Text to a Container)
Drawing a Koala with HTML and CSS (video)
Get the index of an element within its parent
This week kind of flew by. I did a lot of walking around Chicago with my family and just tried to be mostly offline, which has been good for my brain.
...that being said I'm also working on some side projects that I'll hopefully ship in the next few days, ha! I also wrote about a handy little GitHub Copilot Chat trick if you wanna check it out.
Level up your app’s auth for your customers and AI agents. Whether you have a B2B or B2C use case or both, Auth0 is a full IdP that provides robust security like MFA, continuous threat monitoring, plus flexible APIs, and over 30 SDKs. You get complete control over the user experience, from sign-up flows to advanced authorization.
Secure your AI Agents, so that you can protect your users. Auth for GenAI can help you do this with advanced user authentication and fine-grained control over data access. Our Token Vault feature simplifies managing API tokens for third-party services, streamlining access for your AI applications, helping you build securely. Try Auth for GenAI today.
Last week, I had you navigate a string with Vim commands! I just can't quit you, Ender, Jen, David, Winnie, Elke, Ten, Ben, Kriszti, Tarang, Andy, Sameer, Wesley, Andrew, and Jeremias!
This week's question:
You’re assembling a custom mechanical keyboard. Each required part has a delivery time in days and an assembly time in hours. You can only assemble a part after it arrives, and you can only work on one part at a time. Given an array of parts where each part is { name, arrivalDays, assemblyHours }
, return the minimum total hours needed to finish assembling all parts, starting from hour 0.
Example:
minAssemblyTime([
{ name: "keycaps", arrivalDays: 1, assemblyHours: 2 },
{ name: "switches", arrivalDays: 2, assemblyHours: 3 },
{ name: "stabilizers", arrivalDays: 0, assemblyHours: 1 },
{ name: "PCB", arrivalDays: 1, assemblyHours: 4 },
{ name: "case", arrivalDays: 3, assemblyHours: 2 }
])
> 74
(you can submit your answers by replying to this email with a link to your solution, or share on Bluesky, Twitter, LinkedIn, or Mastodon)
A Typical Workday at a Japanese Hardware Tool Store (video)
AI doesn't make devs as productive as they think, study finds
‘The way a child plays is the way they live’: how therapists are using video games to help vulnerable children
PC Sirius60 + Oblivion v3.1 + HMX Canglan v2 + acrylic plate + TX AP stabs
To the person who stole my place in line...
I'll be after you, now!
That's all for now, folks! Have a great week. Be safe, make good choices, and be open to new ideas!
Special thanks to Ezell, Ben, Kinetic Labs, and Marta for supporting my Patreon and this newsletter!
cassidoo
website | blog | github | bluesky | twitter | patreon | twitch | codepen | mastodon