Value is assignable to | {} |
object |
Record<string, unknown> |
---|---|---|---|
"string" |
Yes | No | No |
true |
Yes | No | No |
42 |
Yes | No | No |
42n |
Yes | No | No |
Symbol() |
Yes | No | No |
null |
No | No | No |
undefined |
No | No | No |
() => {} |
Yes | Yes | No |
This file contains 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
import { | |
useToast as useChakraToast, | |
useMultiStyleConfig, | |
} from '@chakra-ui/react'; | |
type UseToastOptions = Omit<ChakraUseToastOptions, 'render'>; | |
const useToast = (hookOptions: ChakraUseToastOptions) => { | |
const chakraToast = useChakraToast(); |
This file contains 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
home := $${HOME} | |
shell := /bin/bash | |
nix := /nix/var/nix | |
nix_darwin := /run | |
brew := /opt/homebrew | |
key := id_ed25519 | |
public_key := .ssh/$(key).pub | |
github_key := .ssh/github.txt |
This file contains 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
#!/usr/bin/env bash | |
for repository in $(ls -1); do | |
if [ -d $repository ]; then | |
( | |
cd $repository | |
if [ $(git cat-file -t $1 2>/dev/null) ]; then | |
echo $(basename $PWD) | |
fi |
This file contains 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
#!/usr/bin/env bash | |
echo -e "Checking → key: ${1} / secret: ${2}\r" | |
command="docker run -e AWS_ACCESS_KEY_ID=$1 -e AWS_SECRET_ACCESS_KEY=$2 mikesir87/aws-cli bash -c \"env && echo -e '\n' && aws sts get-caller-identity\"" | |
echo -e "Running:\n\n $command \n" | |
eval $command |
This file contains 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
test.txt |
This file contains 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
add-fork () { | |
local source_remote=${1:-upstream} | |
local source_url=$(git remote get-url $source_remote) | |
local target_user=${2:-jrolfs} | |
local target_remote=${3:-origin} | |
local target_url=$(sed "s/:.*\//:$target_user\//" <<< $source_url) | |
git remote add $target_remote $target_url | |
} |
- 🛑 – Blocking; please discuss and address in this PR.
- 📌 – Non-blocking; discussion and resolution would be nice to have in this PR.
- ✏️ – Non-blocking; worth bringing attention to and discussing but any work is outside the scope of PR.
This file contains 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
function! GetColorFromHighlightGroup(group, color, env) | |
return synIDattr(synIDtrans(hlID(a:group)), a:color, a:env) | |
endfunction | |
function! GetBackgroundColors(group) | |
return | |
\ ' ctermbg=' . GetColorFromHighlightGroup(a:group, 'bg', 'cterm') . | |
\ ' guibg=' . GetColorFromHighlightGroup(a:group, 'bg', 'gui') | |
endfunction |
NewerOlder