Skip to content

Instantly share code, notes, and snippets.

View liltechnomancer's full-sized avatar
🏠
Remote Only

Levi liltechnomancer

🏠
Remote Only
View GitHub Profile
#!/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;
@liltechnomancer
liltechnomancer / gist:00c6bbae446105e6c5c8f0904c0b225c
Last active October 15, 2022 06:46
Folder structure thoughts
Lets consider this file structure which I see fairly often.
```
.
└── /src
├── /hooks
├── /utils
├── /containers
| ├── /LoginForm
| │ ├── /hooks
| │ │ ├── useLogin.js
const flatRecursive = arr => {
return arr.reduce((acc, val) => Array.isArray(val) ? acc.concat(flatRecursive(val)) : acc.concat(val), []);
}
@liltechnomancer
liltechnomancer / page "monoid"
Created October 5, 2017 18:15
how I am running browser automation.
class Base
def initialize
@page_name = 'base'
end
def >>(fn)
fn.call(self)
end