Skip to content

Instantly share code, notes, and snippets.

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

MichaelDimmitt

:shipit:
𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫
View GitHub Profile
@MichaelDimmitt
MichaelDimmitt / daily-commit.yml
Last active May 27, 2022 15:28
github action to add current date to a temp file with current date as commit message.
name: adds todays date to master branch at 7am eastern time, 11am utc
on:
schedule:
- cron: "0 11 * * *"
# on:
# push:
# branches:
# - master
jobs:

Adding this to the doc that I give learning javascript, just posting here too for visibility

So you are a new dev on the team and want to learn object de-structuring ?

const defaultTypes = {
  foo: 'hi',
  bar: 'hi',
  baz: 'extra'
}
@MichaelDimmitt
MichaelDimmitt / developer-diary-1.md
Last active April 13, 2022 22:50
developer-diaries

a good deed counts for much.

a small flaw reveals much.

super is few, repetative flaws lose trust.


Developer Diary, number one:

@MichaelDimmitt
MichaelDimmitt / scss-intro.md
Last active December 21, 2023 19:47
scss intro

Info

less is always more with css

Things to consider with scss

Tips:

  1. look at the browser styles
  2. try to have less scss files
  3. try to have less scss code

Common mistakes I find in scss projects

@MichaelDimmitt
MichaelDimmitt / conversation-angular.md
Created February 14, 2022 15:51
conversation starter for people learning angular

angular 2+ there are a few things to learn

the generate command can give examples of a few of these https://angular.io/cli/generate

component
directive
service https://angular.io/guide/architecture-services
pipe
@MichaelDimmitt
MichaelDimmitt / because-meetup-breaks.md
Last active December 7, 2022 14:34
getting started , meetup graph ql

Meetup api shut down rest

and the graph ql docs are not good

https://www.meetup.com/api/guide/#graphQl-guide

The out of the box example does not work.
However, this version is works:

query='query { self { id name } }'
YOUR_TOKEN='put-a-token'
curl -X POST https://api.meetup.com/gql \
import { act, render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import React from 'react';
import MyComponent from './MyComponent';
const weirdResponseResultStructure = {
results: [ // www.example.com/nameOfUrl
{
id: 'KS',
text: 'KS',
@MichaelDimmitt
MichaelDimmitt / react-recommendations-for-new-users.md
Last active December 21, 2023 19:51
react recommendations for new users

Do you have any good react start up guides you recommend?

My take,

The documentation on hooks is very helpful

  • the fact that it is not the default when you go through the react docs is kind of frustrating.

https://reactjs.org/docs/hooks-intro.html

^ I would read through 1-8

@MichaelDimmitt
MichaelDimmitt / pianobar-usage.md
Last active December 7, 2022 16:11
Keep track of time and listen to music!

Keep track of time and listen to music! πŸŽ‰

I want to listen to my music from command line,
but I have a meeting in 20 minutes!

timeout 20m pianobar || reset

^ use this one

With the timeout command you can specify: minutes, hours, days, seconds