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 | |
tags="nature,background" | |
first_resolution="1920x1200" | |
second_resolution="2560x1440" | |
third_resolution="3840x2160" | |
wallpaper_path="$HOME/wallpapers" | |
set_bg () { | |
kill $(pgrep swaybg) |
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
import { | |
decode, | |
encode, | |
} from "https://deno.land/std@0.158.0/encoding/base64.ts"; | |
export function isString(value: unknown): value is string { | |
return typeof value === "string"; | |
} | |
class SingleStreamSource<T> implements UnderlyingSource<T> { |
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 NOOP = () => {} | |
type PageVisiblityChangeListener = (isHidden: boolean) => void | |
export class PageVisiblity { | |
private static BROWSER_SPECIFIC = [ | |
{ hiddenField: 'hidden', changeEvent: 'visibilitychange' }, | |
{ hiddenField: 'msHidden', changeEvent: 'msvisibilitychange' }, | |
{ hiddenField: 'webkitHidden', changeEvent: 'webkitvisibilitychange' }, | |
] as const |
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
nvim -q <(npx eslint -- . --ext .js,.ts,.tsx --cache -f unix) |
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/sh | |
files=`fd -g "*spec.rb" -X ls -rt` | |
if [ -z "$files" ]; then | |
exit 1 | |
fi | |
selected=`echo $files | tr " " "\n" | fzf --tac --no-sort` |
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/sh | |
selected=`fd -e 'test.ts' -e 'test.tsx' -X ls -rt | tr " " "\n" | fzf --exact --tac --no-sort` | |
[ -z "$selected" ] && exit 0 | |
cd `dirname $selected` | |
npx jest $1 $selected |
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
#!/usr/bin/env bash | |
active_marker="◉ " | |
inactive_marker="◯ " | |
green="\x1B[38;5;151m\x1B[1D" | |
red="\x1B[38;5;217m\x1B[1D" | |
configured_sessions=( | |
"zellij" |