Skip to content

Instantly share code, notes, and snippets.

View simonhaenisch's full-sized avatar
💪
Staying fefeka.

Simon Hänisch simonhaenisch

💪
Staying fefeka.
View GitHub Profile
@simonhaenisch
simonhaenisch / remove-dot-from-dotfiles.sh
Last active January 1, 2019 04:03
remove dot from dotfiles
#! /bin/zsh
setopt dotglob
for f in *; do mv "$f" "${f:1}"; done
unsetopt dotglob
@ericelliott
ericelliott / defaults-overrides.md
Last active May 7, 2023 13:52
ES6 defaults / overrides pattern

ES6 Defaults / Overrides Pattern

Combine default parameters and destructuring for a compact version of the defaults / overrides pattern.

function foo ({
    bar = 'no',
    baz = 'works!'
  } = {}) {
@radavis
radavis / cli.md
Last active February 12, 2018 15:19

Using the OS X Command Line

Directory Shortcuts

~ - Home Directory
. - Current Directory
.. - Enclosing Directory
/ - Root Directory