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
Server = http://ftp.tsukuba.wide.ad.jp/Linux/archlinux/$repo/os/$arch | |
Server = http://repo.jing.rocks/archlinux/$repo/os/$arch | |
Server = https://mirror.aria-on-the-planet.es/archlinux/$repo/os/$arch | |
Server = https://repo.jing.rocks/archlinux/$repo/os/$arch | |
Server = https://jp.mirrors.cicku.me/archlinux/$repo/os/$arch | |
Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch |
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
/github subscribe <repo> issues pulls reviews comments | |
/github unsubscribe <repo> commits releases deployments |
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
export function parseEnv(env: '1' | '0' | 'true' | 'false' | string | undefined): string | boolean { | |
if (!env) { | |
return false; | |
} | |
try { | |
return Boolean(JSON.parse(env)); | |
} catch { | |
return env; | |
} | |
} |
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
#!/urs/bin/env zsh | |
export EDITOR=nvim | |
export XDG_RUNTIME_DIR=/run/user/$(id -u) | |
# WSL | |
export BROWSER='pwsh.exe /c start' | |
alias chrome='/mnt/c/Program\ Files/Google/Chrome/Application/chrome.exe' | |
alias wezterm=wezterm.exe | |
alias wezterm-mux-server=wezterm-mux-server.exe |
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
repeat 100 pnpm test -- --ci --silent <test file> &>/dev/null && echo -n "." || echo -n x |
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
// @ts-check | |
import typescript from 'typescript-eslint' | |
import reactPlugin from 'eslint-plugin-react' | |
import reactHooksPlugin from 'eslint-plugin-react-hooks' | |
import jsxA11yPlugin from 'eslint-plugin-jsx-a11y' | |
import importPlugin from 'eslint-plugin-import' | |
import unusedImportsPlugin from 'eslint-plugin-unused-imports' | |
import js from '@eslint/js' | |
import globals from 'globals' |
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 { BehaviorSubject } from 'rxjs' | |
import { useSyncExternalStore } from 'react' | |
export function useSyncBehaviorSubject<T>(subject: BehaviorSubject<T>): T { | |
return useSyncExternalStore( | |
(onStoreChange) => { | |
const subscription = subject.subscribe(onStoreChange) | |
return () => subscription.unsubscribe() | |
}, | |
() => subject.value |
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 { ReactNode } from "react"; | |
import { Flex } from "@radix-ui/themes"; | |
export function Center({ children }: { children: ReactNode }) { | |
return ( | |
<Flex justify="center" direction="column" align="center" height="100%" width="100%" gap="4"> | |
{children} | |
</Flex> | |
); | |
} |
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
{ | |
"singleQuote": true, | |
"semi": false, | |
"printWidth": 160 | |
} |
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 typescriptParser from "@typescript-eslint/parser" | |
import typescriptPlugin from "@typescript-eslint/eslint-plugin" | |
import vueParser from 'vue-eslint-parser' | |
import vuePlugin from 'eslint-plugin-vue' | |
export default [ | |
{ | |
files: ["src/**/*.{ts,vue}"], | |
languageOptions: { | |
parser: vueParser, |
NewerOlder