Skip to content

Instantly share code, notes, and snippets.

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

MichaelDimmitt

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

@MichaelDimmitt
MichaelDimmitt / how-it-works-watch-function.md
Last active May 8, 2024 17:49
React Form Hook, how watch works notes.

React hook form notes, How the watch function works:

Summary:
The watch operator uses .subscribe function that creates a generator. That generator progresses forward by next() being called. This then gets evaluated to see if a re-render needs to occur and gets passed to useState.

useWatch():
useWatch.ts#L68
useWatch.ts#L184

Note: uses a syntax similar to a generator, when .next is called it executes a callback function that triggers updateValue from the useState.

@MichaelDimmitt
MichaelDimmitt / Readme.md
Last active April 3, 2024 17:53
my thoughts: guidelines for code reviews

My Thoughts: Guidelines for Code Reviews

Does anyone have a document they follow for having guidelines reviewing code within a team?

I read through this document today and it was helpful for this task:
https://github.com/mawrkus/pull-request-review-guide?tab=readme-ov-file

Different ways developers can review a pr

  • sanity check (confirm it looks good and logs are on the pr, tests are written or a checklist followed)
  • devs should check this themselves but it sometimes slips.
@MichaelDimmitt
MichaelDimmitt / readme.md
Last active March 9, 2024 20:57
Regarding the copy and paste pattern in development.

Regarding the copy and paste pattern in development.

“A good plan violently executed now is better than a perfect plan next week.” -General George S. Patton, Jr.

When what is defined as a "good pattern" is setup And it is sufficiently complex. Be mindful that there are probably ways to automate and simplify.

But for the time being you need others to execute that pattern. Find the person who knows the pattern best and can accomplish the task most efficiently and accurately

Have a meeting with them and note how long the meeting took.

@MichaelDimmitt
MichaelDimmitt / plan.md
Last active February 25, 2024 16:34
Plan for moving to a different solution to gist for conveying my ideas.

I need to fix all of my gists by moving them somewhere.

Each of my gists probably have a specific intended use.
I.e. book summaries - for helping people understand what I got out of a combination of books.

Current challenges: (what do I need?)

  1. I am not able to quickly get to the gist by typing 'gist tmux' - to get to my tmux keybinding gist.
  2. I need an auto generated re-arrangable table of contents. - this could be cool! drag and drop.
  3. no preview shows when I post it in slack
@MichaelDimmitt
MichaelDimmitt / cold-terms-warm-terms-javascript-and-react.md
Last active March 20, 2024 16:21
hot terms javascript and react

This document is
an effort to get people up to speed where they feel confident about react and javascript

I am putting together an organized list of what I grab for when solving various problems.
"what I know cold", and these are just the things that currently come to mind it can be updated later.

There are also "warm items", that I know to google and reach for when encountering a situation
an example of that would be an IIFE - immediately invoked function expression.

Fundamentals, Javascript Logic.

@MichaelDimmitt
MichaelDimmitt / cors.md
Created January 10, 2024 20:17 — forked from jesperorb/cors.md
Handle CORS Client-side

Handle CORS Client-side

Cross-origin resource sharing (CORS) is a mechanism that allows restricted resources (e.g. fonts) on a web page to be requested from another domain outside the domain from which the first resource was served. This is set on the server-side and there is nothing you can do from the client-side to change that setting, that is up to the server/API. There are some ways to get around it tho.

Sources : MDN - HTTP Access Control | Wiki - CORS

CORS is set server-side by supplying each request with additional headers which allow requests to be requested outside of the own domain, for example to your localhost. This is primarily set by the header:

Access-Control-Allow-Origin
@MichaelDimmitt
MichaelDimmitt / score-cards.md
Created December 12, 2023 18:27
report cards from "fundamentals of software architecture"
@MichaelDimmitt
MichaelDimmitt / remarkable-ssh-troubleshooting.md
Last active November 17, 2023 00:07
Finding my epub book and notes by ssh-ing into my remarkable2 device.

My epub book and notes dissappeared!

This gist documents my journey:

To find my epub book and notes by ssh into my remarkable2 device.