This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Setting environment variables using $(gum style --foreground "#2CD4BF" 'skate'). It's a little slow 🐢" | |
export KEYGEN_ACCOUNT_ID="$(skate get keygen-account-id)" | |
export KEYGEN_PRODUCT_ID="$(skate get double-zero-product-id)" | |
export KEYGEN_PRODUCT_TOKEN="$(skate get double-zero-keygen-token)" | |
echo "Environment set" | |
sleep 1; | |
clear; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Lets consider this file structure which I see fairly often. | |
``` | |
. | |
└── /src | |
├── /hooks | |
├── /utils | |
├── /containers | |
| ├── /LoginForm | |
| │ ├── /hooks | |
| │ │ ├── useLogin.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const flatRecursive = arr => { | |
return arr.reduce((acc, val) => Array.isArray(val) ? acc.concat(flatRecursive(val)) : acc.concat(val), []); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Base | |
def initialize | |
@page_name = 'base' | |
end | |
def >>(fn) | |
fn.call(self) | |
end |