Skip to content

Instantly share code, notes, and snippets.

View MichaelDimmitt's full-sized avatar
:shipit:
𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫

MichaelDimmitt

:shipit:
𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫
View GitHub Profile
@MichaelDimmitt
MichaelDimmitt / draft2-how-context-actually-works-working.md
Last active March 9, 2026 15:14
draft: how context actually works

How Context Actually Works:

Model β†’ Inference Server β†’ Client
(Local vs SaaS)

Most developers use AI coding tools every day without understanding what's happening to their context under the hood. Here's what's actually going on and why the same prompt behaves differently depending on where you run it.

Disclaimer: Written with AI β€” Claude Opus 4.6 via claude.ai alongside human feedback.


The bigsby challenge... get the ai tool to try to sound like mission impossible by prompting only raw materials no shortcuts. reference: https://www.youtube.com/watch?v=CgX4uJSj00Y

Read this as if you had never heard seen anything like this before and are like what the heck is this! And you are being forced to read it.

Remember YOU ARE UNDER DURESS and that should have stress and moments of elevated volume such as a shout or two.

Speaker 1: (Squinting at the paper, speaking slowly and hesitantly) "Uh, okay... 'The pleasure of... Buzby's company... is what I most enjoy.' (Looks up briefly, mildly confused but pushing through) 'He put a tack on Miss Yancy's chair... when she called him a horrible boy.' (Frowns, shifting uncomfortably) Geez, okay...

@MichaelDimmitt
MichaelDimmitt / listAllEventListeners.js
Created September 16, 2025 15:37 — forked from dmnsgn/listAllEventListeners.js
List all event listeners in a document
const listeners = (function listAllEventListeners() {
let elements = [];
const allElements = document.querySelectorAll('*');
const types = [];
for (let ev in window) {
if (/^on/.test(ev)) types[types.length] = ev;
}
for (let i = 0; i < allElements.length; i++) {
const currentElement = allElements[i];
@MichaelDimmitt
MichaelDimmitt / gist:5e1d82e032f811bb6d12249588fa13c4
Last active June 26, 2025 13:22
Quick thoughts on product management

Thoughts lately

What does it mean to manage a product?

aka. How to evaluate the value that is present in an existing product

Ask yourself:

What have we built from a deconstruction and page type perspective?

  • list page

As an app owner/maintainer how do I know that the user is not a bot?

5 senses

  1. see

    • organizer takes a video of checkpoint and then user takes a video of
    • participant takes a video of same checkpoint (video has to be different but still valid)
  2. smell

  3. hear

  4. touch

@MichaelDimmitt
MichaelDimmitt / eslint-investigation.md
Last active June 18, 2025 22:44
eslint-investigation

Boolean() or !! (double bang, double negation)?

What's the best way to answer the question "true or false?" in JavaScript

JavaScript does not bother you too much with types (at first), which is both a blessing and a cure. But we all know the Boolean type. Boolean variables can either be true or false. Yes or no.

Every value in JavaScript can be translated into a boolean, true or false. Values that translate to true are truthy, values that translate to false are falsy. Simple.

This is about two ways to make that translation.

@MichaelDimmitt
MichaelDimmitt / optional-element-access-with-typescript.md
Last active June 3, 2025 17:04
optional-element-access with typescript

Filling some Typescript gaps:

The longer you have been around, the more the landscape shifts.
We often learn just enough to move forward.
You might even study intently.
But then, you may have studied and learned a feature set that has since had more features published/released.

Looking at some tan-stack table code today ran into some typescript that was foreign to myself: link.

According to the typescript docs this is called optional-element-access, which lets you access both objects and arrays with strings and/or numbers.

@MichaelDimmitt
MichaelDimmitt / activation-energy.md
Last active April 3, 2025 16:40
When Learning / Teaching new topics. ex. Typescript and Git

Had a fun thought today around teaching others.

Curious to see if anyone violently disagrees. πŸ™‚
Or violently agrees. Or has a more tempered reaction or adjacent take.
Feel free to post in the comments.

My hot take on learning/teaching things to set people up for success:

The key thing for you with learning typescript is to keep it as simple as possible.

@MichaelDimmitt
MichaelDimmitt / re-writes2.md
Last active February 22, 2026 05:12
thoughts for next week with MB

Your challenge, If you choose to accept...
(mission impossible music)

This is going to be a weird assignment. For now a week long effort and we re-evaluate at the end of the week.

If you accomplishing one thing would be huge. I am just going to throw a ton of stuff at you and see where we end up. I will also probably be involved at some points working on stuff.

Terms

  1. pick up time around 7am? (negotiable, also I might oversleep πŸ˜…)
  2. we work from the home office (I will have it all clean)
  3. when we go out for coffee or lunch I can buy.
  4. end the day