Skip to content

Instantly share code, notes, and snippets.

View jacklynrose's full-sized avatar

Jacklyn Rose jacklynrose

  • Australia
View GitHub Profile
// Set on window
this.foobar = "V1"
//=> (result) "V1"
console.log(this.foobar)
//=> (output) V1
//=> (result) undefined
// Uses window
(() => {
console.log(this.foobar);

Keybase proof

I hereby claim:

  • I am watsonhamblin on github.
  • I am fluffyjack (https://keybase.io/fluffyjack) on keybase.
  • I have a public key whose fingerprint is 8203 E7C0 359A 6B05 1787 ED6E C1C5 3A42 6E34 5928

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am jacklynrose on github.
  • I am jacklynrose (https://keybase.io/jacklynrose) on keybase.
  • I have a public key ASAGELIJ_qqqVpzqBdWg5tf1du-j18KPnIc-DXiKOkOzYAo

To claim this, I am signing this object:

@jacklynrose
jacklynrose / .zshrc
Last active October 31, 2021 23:57
Generate a branch name with ZSH prompts that has the ticket name and description
# Other zushy stuff
sluggify() {
# 1. Convert upper to lower
# 2. Remove all non-alphanumeric chars or non-space char
# 3. Convert spaces to dashes
# 4. Convert multiple dashes to single dash
echo $1 | tr '[:upper:]' '[:lower:]' | tr -dc '[:alnum:] ' | tr '[:space:]' '-' | sed -E 's/-+/-/g'
}