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:
// Set on window | |
this.foobar = "V1" | |
//=> (result) "V1" | |
console.log(this.foobar) | |
//=> (output) V1 | |
//=> (result) undefined | |
// Uses window | |
(() => { | |
console.log(this.foobar); |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# 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' | |
} |