Skip to content

Instantly share code, notes, and snippets.

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

MichaelDimmitt

:shipit:
𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫
View GitHub Profile
@MichaelDimmitt
MichaelDimmitt / readme.md
Last active February 11, 2025 16:39
How I learned to organize my programming learning journey.

Disclaimer:

(This is a quick off the cuff post do not take as gospel. I could probably improve or add more research/accuracy.)

As I learned I came to a few conclusions that helped me a lot.

  1. Levels of difficulty of a task/learning
  2. Learning falls into different buckets
  3. Prioritize what you want to learn and have backup plans/objectives.

Levels of difficulty of a task/learning

  1. sleep (easiest)
@MichaelDimmitt
MichaelDimmitt / Readme.md
Last active March 20, 2024 11:06
Things to consider: Get good at things you end up building over and over in your career

Lets get you good at things you end up building over and over in your career

Overall

  • linters and formatters:
    add a config to enforce code standards and code style.

Manually standardizing a coding style is not worth the conflict.
If you cannot enforce it in an automated way with zero communication then you have no standard long term.

  • formatter: the teams formatters must be aligned to avoid formatter override hell.
  • cspell, check english spelling. (you could expose your dictionary of words on the front end too!)
  • vs-code extension, code-spell-checker - puts blue squiggles under words. (uses cspell under the hood)
@MichaelDimmitt
MichaelDimmitt / typescript-discrimintating-unions.md
Last active December 16, 2022 21:53
One good use for Discriminating Unions in Typescript

One good use for Discriminating Unions in Typescript

Today I learned, some new typescript today after facing a simple issue.

The issue I faced, I wanted a type that would enforce:

  1. if defined, both are required.
  2. else, none are required.
  3. bonus, you can have other discriminating unions require other types to be included instead of this one.

This would ensure developers do not miss one of the inputs when you need both for the change to work effectively.

Debug a dropdown in the browser
https://superuser.com/questions/249050/chrome-keyboard-shortcut-to-pause-script-execution
setTimeout(() => {debugger}, 4000)
@MichaelDimmitt
MichaelDimmitt / Readme.md
Last active November 8, 2022 16:51 — forked from khanbhai89/my-first-test.robot
Robot Framework Basic Tests

Robot-Framework-Selenium getting started with 2 files

  1. my-first-test.robot
  2. requirements.txt

How to install python on a macbook computer

brew install python3;
python3 -m pip install --user --upgrade pip;
@MichaelDimmitt
MichaelDimmitt / export-cypress.md
Last active October 20, 2022 20:06
Test Rail Spike

Test rail is a test case management system.

Video on railtest: https://www.youtube.com/watch?v=kBWwMUCYvMk

  1. Rail Test is a test aggregator / dasboard / assignment system that integrates with jira.
  2. This video example shows writing manual tests.
  3. This video example shows importing manual tests.
  4. This video example shows assigning a test to a qa person.

Thoughts:

@MichaelDimmitt
MichaelDimmitt / Readme.md
Last active November 3, 2022 16:16
fix teams by quitting and clearing cache

Problem: (MS teams Status Management)

The "Microsoft Teams Status" shows as away on teams when working from my desktop.

This is due to a weird caching issue! It may be the fact that the desktop application was the first device logged into. The phone being logged in after the desktop application tells teams this is the primary device. By clearing cache the desktop application becomes the primary device once again and regains control of status management.

Issue:

Screen Shot 2022-10-10 at 11 23 46 AM

Fix:

@MichaelDimmitt
MichaelDimmitt / bash-helpers-for-jest.md
Last active November 25, 2024 17:06
bash helpers for jest

Identify what jest files have failing tests:

yarn test --maxWorkers=50% 2>&1 | grep FAIL | sort -u

How to find tests that take longer than 400ms

yarn test --testTimeout=400 2>&1 | grep FAIL

Some of these tests may take some time as they have user interaction.