Skip to content

Instantly share code, notes, and snippets.

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

MichaelDimmitt

:shipit:
𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫
View GitHub Profile
@MichaelDimmitt
MichaelDimmitt / regarding-dates.md
Last active September 19, 2024 14:10
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 July 23, 2024 16:11
A fun way to read through a javascript project.

A fun way to read through a javascript project.

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.
  2. A terminal on the right showing a diff of only the package.json file via git show.
@MichaelDimmitt
MichaelDimmitt / vs-code-ui-architecture.md
Last active June 20, 2024 00:06
VS-Code, UI architecture
@MichaelDimmitt
MichaelDimmitt / Readme.md
Last active June 3, 2024 15:58
globalRenderCounter

globalRenderCounter

In different parts of the codebase add:

// file1
countRender('render1');
// file2
countRender('render2')
// file3
countRender('render3')
@MichaelDimmitt
MichaelDimmitt / usdwsresearch.md
Last active June 3, 2024 16:53
some usdws research.
@MichaelDimmitt
MichaelDimmitt / typescript_perf_experiments.md
Last active May 10, 2024 12:49
typescript performance lsp experiments

Status: Test has not been completed.

Things to test, to learn how to speed up a typescript lsp.

If config file is at root of project:

  1. only open the folders that you will be working in for your editor.
    is it smart enough to know to only check that folder?
  2. does number of files open in the editor matter?
  3. does it matter if you have multiple config files? (one in each folder)

a. The test ... make a significantly annoying typescript project.