Skip to content

Instantly share code, notes, and snippets.

View mathesond2's full-sized avatar
🧹

Dave 3.0 mathesond2

🧹
View GitHub Profile
@mathesond2
mathesond2 / copy.ts
Created May 10, 2022 21:03
copy to clipboard
export const copyToClipBoard = async (copyText: string): Promise<boolean> => {
if (navigator.clipboard) {
try {
await navigator.clipboard.writeText(copyText);
return true;
} catch (err) {
throw err;
}
}
// Legacy fallback
@mathesond2
mathesond2 / design-patterns-coursera-notes.md
Last active August 4, 2021 18:35
Coursera notes from 'software and architecture' specialization course bundle

design patterns in code = tropes in storytelling (ex: the story pattern of the "heroes journey)

pattern types

creational patterns

  • how you handle creating new objects

structural patterns

  • how objects are attached to each other
  • previously we studied design principles like decomposition and generalization` and how theyre expressed in UML class diagrams with:
  • association, aggregation, composition, inheritance

To run the default version of any command, use a backslash (). For example, \rm

would bypass my alias of 'rm -i' on line 31.

OS-Level

alias show-hidden-files='defaults write com.apple.finder AppleShowAllFiles TRUE' alias hide-hidden-files='defaults write com.apple.finder AppleShowAllFiles FALSE'

Sublime Text

alias subl='/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl' alias st='/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl'

@mathesond2
mathesond2 / making-BA-developers--notes.md
Created March 27, 2018 01:49
notes from 'Making BA Developers' talk
  • cognitive resources in thinking is linked also to self control....aka cake vs. fruit and 2 digits vs. 7 digits...at the end of the day, its all one tank.
  • the more you use your brain to think, the less ability you have to resist a drive-thru on your way home
  • using willpower = losing cognitive processing...so vice versa
  • death by 1000 cognitive mico-leaks...tiny things you have to deal with, like losing your tv remote or other little things.
  • where there is high expertise, theres a great deal of cognitive resource management when learning and actually doing the thing.

how to get better faster

3 areas:

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets