Skip to content

Instantly share code, notes, and snippets.

@daverydan
daverydan / curly-braces-mac-os.md
Last active January 24, 2024 15:56
Curly Braces on Mac OS

Curly Quotes

Unlike straight marks, curly quotes are usually more legible in paragraphs and long texts, and match the other characters better. They are more suitable for reading, and should be used when writing documents, articles, blog posts, etc.

Usage
It turns out that producing curly quotes on a computer is super easy. I’ve committed these simple shortcuts to memory.

Mac OSX
Alt + ] produces an opening single curly quote ()

Alt + Shift + ] produces a closing single curly quote ()

@daverydan
daverydan / es6-array-destructuring.md
Created November 30, 2022 17:30
ES6: Array Destructuring

Array Destructuring

let numbers = [1,2,3];

let [a, b] = numbers;

console.log(a); // 1
console.log(b); // 2
@daverydan
daverydan / es6-for-of-for-in-loop.md
Last active November 30, 2022 17:07
ES6: For of vs. For in Loop

For of

Loop over array, string, etc., but not an object

const results = [1.23, 1.10, 4.1];

for (let result of results) {
  conosle.log(result);
}
@daverydan
daverydan / es6-rest-spread-operators.md
Last active November 30, 2022 16:47
ES6: Rest vs. Spread

Rest Operator

Values get packed into an array.

function sumUp(...toAdd) {
  console.log(toAdd);
  let result = 0;
  for (let i = 0; i < toAdd.length; i++) {
 result += toAdd[i];

zhs Aliases

Access

vi ~/.zshrc

Add Aliases

alias ga="git add"
alias bci="brew cask install"
@daverydan
daverydan / ssh-keys.md
Last active August 17, 2022 02:01
SSH Keys
@daverydan
daverydan / ports-processes.md
Last active August 3, 2022 18:09
Ports & Processes
@daverydan
daverydan / vue-3-laravel.md
Last active May 23, 2022 04:47
Add Vue 3 to Laravel
@daverydan
daverydan / laravel-sail-how-to.md
Last active July 17, 2021 02:34
Laravel Sail Instructions

Before Running Laravel Sail

Laravel Valet & MySQL services interfere with Laravel Sail.

  • Stop Valet
    $ valet stop

  • Check Services Running with Brew
    $ brew services