Skip to content

Instantly share code, notes, and snippets.

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

MichaelDimmitt

:shipit:
𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫
View GitHub Profile
@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

Ruby Journey

A quick ruby journey on a saturday

Commands:

brew install rbenv
brew upgrade ruby-build
rbenv install 3.4.1
rbenv global 3.4.1
@MichaelDimmitt
MichaelDimmitt / parsing-xml-101.md
Last active October 12, 2024 15:17
how to parse xml
@MichaelDimmitt
MichaelDimmitt / regarding-dates.md
Last active October 29, 2024 12:32
What would a history info website look like?

In the immortal words of Rick and Morty:

Don't ... mess ... with ... time!!

Response: I will mess with time!, I will mess with time.

image

Disclaimer, all dates were run in macOs Chrome browser console. Your mileage may vary.

It started with a simple question I asked myself around dates.

@MichaelDimmitt
MichaelDimmitt / timezone.md
Last active September 10, 2024 19:37
change your local timezone.

Change your timezone on mac computer:
Useful when you are travelling to be in your home timezone.

Sourced from here: https://apple.stackexchange.com/a/117995/200795

sudo systemsetup -listtimezones

# copy the <timezone> you want to add
sudo systemsetup -settimezone <timezone>
@MichaelDimmitt
MichaelDimmitt / hhelp.sh
Last active September 16, 2024 14:44
Find the correct help function on command line.
function hhelp() {
help $1 > /dev/null 2>&1 && echo "yes, help $1" || echo "no, help $1" ;
man $1 > /dev/null 2>&1 && echo "yes, man $1" || echo "no, man $1";
$1 --help > /dev/null 2>&1 && echo "yes, $1 --help" || echo "no, $1 --help";
$1 -h > /dev/null 2>&1 && echo "yes, $1 -h" || echo "no, $1 -h";
apropos $1 > /dev/null 2>&1 && echo "yes, apropos $1" || echo "no, apropos $1";
whatis $1 > /dev/null 2>&1 && echo "yes, whatis $1" || echo "no, whatis $1";
which $1 > /dev/null 2>&1 && echo "yes, which $1" || echo "no, which $1";
}
# because sometimes it is hard to find the correct help function on command line.
@MichaelDimmitt
MichaelDimmitt / word-frequency-util.md
Last active September 10, 2024 13:07
quick command line word frequency
@MichaelDimmitt
MichaelDimmitt / project-readthrough.md
Last active October 15, 2025 18:44
A fun way to read through a javascript project.

A fun way to read through a javascript project.

TLDR;

git log --reverse --merges | grep Pull and git log --merges --oneline.

Summary:

Your package. json file will tell the story of the dependencies in your project.
I wanted to find out when a certain dependency changed which caused a project structure change.

To achieve I setup a:

  1. A terminal on the left running the log commands on the package.json file.