Skip to content

Instantly share code, notes, and snippets.

View mathesond2's full-sized avatar
🧹

Dave 3.0 mathesond2

🧹
View GitHub Profile
@mathesond2
mathesond2 / cobb-salad.md
Created September 15, 2023 15:35
How to make the perfect Cobb salad
  1. Boil 2 eggs
  2. Cut one ear of corn
  3. Make a big bowl with 1/2 spinach and 1/2 butter lettuce (or spring mix)
  4. Pan fry 2 pieces of bacon crispy, let sit out to harden afterward
  5. Toss all bacon grease except leftover in pan, cook corn in it
  6. Cut up 1 avocado and crumble bacon over salad
  7. Slice eggs to desired thickness and put in salad
  8. Make dressing and pour over salad: 
    • 2 tbsp Honey
    • 1/2 cup of Red wine vinegar 
@mathesond2
mathesond2 / effortless.md
Created September 14, 2023 17:43
Notes from "Effortless" by Scott McKeown

State

'clear the clutter in our heads and our minds'

Invert

  • we're evolutionarily wired for 'easy', embrace it
  • Carl Jacobi, Mathematician - "one must invert, always invert" ^ transform a problem into a different representation to make it easier to work with

just asking, "what if this could be easy?" is a simple way to reset your thinking

choosing an indirect approach - for a really difficult task (as opposed to hitting it head-on)..how do you do this in practice? Consider strategy before doing aka "how should I approach this for ease?"

@mathesond2
mathesond2 / how-to-read--practical.md
Last active September 13, 2023 04:14
How to read a book - a practical guide
@mathesond2
mathesond2 / how-to-read-a-book.md
Last active October 11, 2023 18:53
How To Read A Book

Notes taken from reading How To Read a Book by Mortimer Adler.

"Knowledge is not as much a prerequisite to understanding as is commonly supposed. We don't have to know everything about something in order to understand it; too many facts are often as much of an obstacle to understanding as too few. There is a sense in which we moderns are inundated with facts to the detriment of our understanding." - p.4

"Reading is a complex activity that consists of several acts, all of which must be performed to be 'good reading'."

Levels of Reading
  1. Elementary - "what does the sentence say?"
@mathesond2
mathesond2 / higher-cohesion.md
Created March 28, 2023 14:22
Notes from "Putting An Age-Old Battle To Rest" by J. B. Rainsberger

Traditional rules of simple code design:

  1. pass its tests
  2. minimalizes duplication
  3. reveals its intent
  4. reduces the number of classes/modules/packages

^This is put in order of importance. Now some have argued over the order of 2 & 3, because when you're doing one you're doing the other...these 2 rules inform each other in a rapid feedback cycle.

@mathesond2
mathesond2 / react-performance.md
Last active January 25, 2024 09:26
Notes on React Performance

React Performance

Notes From Steve Kinney's "React Performance" Frontend Masters Course

General

re: optimizations: "Start with a problem first, then solve it. dont go looking for problems."

"measure first before you optimize for performance. And then measure again."

@mathesond2
mathesond2 / typescript-fundamentals.md
Created February 25, 2023 17:46
Notes from Mike North's "Typescript Fundamentals" Frontend Master's course
@mathesond2
mathesond2 / react-and-ts-v2.md
Last active February 21, 2023 02:29
Unabridged notes from Steve Kinney's "React and Typescript, v2" Frontend Masters Course

Notes

Course notes via Steve Kinney

typing component children

PropsWithChildren allows you to define props within a children prop

import {PropsWithChildren} from 'react';
@mathesond2
mathesond2 / promises.md
Created July 22, 2022 17:58
old notes on JS promises

at its root, a promise is an object to which you attach callbacks. these callbacks happen once the 'value' property changes.

example with callback

function successCallback(result) {
  console.log('Audio file ready at URL: ' + result);
}
 
function failureCallback(error) {
@mathesond2
mathesond2 / the-culture-code.md
Created July 22, 2022 17:36
personal notes from reading "The Culture Code"
  • author speaks of promoting a 'familial' feeling in the group for psych safety and promoting connection
  • lots of proximity, eye contact, mixing ideas, courtesy, humor, fist bumps, etc...these are called 'belonging cues'

we look often at the rhythms of social interaction rather than the content of those interactions

belonging needs continually to be refreshed and reinforced, like telling your partner you love them.

spurs' coach papavich - masterful at connecting the team, "hug em and hold em" he says, uses food and wine as a bridge to build relationships. but what about when he has to give bad feedback to the players?