BeRealのロゴみたいなやつ(参考)
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
A::B is a system with 4 tokens: `A#`, `#A`, `B#` and `#B`. | |
An A::B program is a sequence of tokens. Example: | |
B# A# #B #A B# | |
To *compute* a program, we must rewrite neighbor tokens, using the rules: | |
A# #A ... becomes ... nothing | |
A# #B ... becomes ... #B A# |
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
if (import.meta.env.DEV) { | |
const script = document.createElement('script') | |
script.src = 'https://cdn.jsdelivr.net/npm/eruda' | |
// @ts-ignore global eruda | |
script.onload = () => globalThis.eruda.init() | |
document.body.append(script) | |
} |
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
@tailwind base; | |
@tailwind components; | |
@tailwind utilities; |
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 | |
# Denoのインストール | |
curl -fsSL https://deno.land/x/install/install.sh | sh | |
# .bashrcまたは.zshrcにパスを追加 | |
if [ -n "$ZSH_VERSION" ]; then | |
echo 'export DENO_INSTALL="$HOME/.deno"' >> ~/.zshrc | |
echo 'export PATH="$DENO_INSTALL/bin:$PATH"' >> ~/.zshrc | |
source ~/.zshrc |
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
/** | |
* @prompt | |
* 指定されたTypeScriptのファイルから型定義とimportを抽出します | |
* $ deno run -A getDeclaration.ts <target> | |
*/ | |
import ts from "npm:[email protected]"; | |
export function getSourceSummary(filePath: string): string { | |
const compilerOptions: ts.CompilerOptions = { |
OlderNewer