Skip to content

Instantly share code, notes, and snippets.

View nakasyou's full-sized avatar

Shotaro Nakamura nakasyou

View GitHub Profile
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#
@nakasyou
nakasyou / favorite-fonts.md
Created May 21, 2024 11:00
Google Fontsお気に入り
@nakasyou
nakasyou / eruda.ts
Created June 2, 2024 03:45
eruda vite
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)
}
@nakasyou
nakasyou / tailwind.css
Last active June 2, 2024 03:46
tailwind postcss
@tailwind base;
@tailwind components;
@tailwind utilities;
@nakasyou
nakasyou / setup_deno.sh
Created August 23, 2024 15:09
setup deno ChatGPT
#!/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
@mizchi
mizchi / あなたのパフォーマンスを倍にする Frontend Ops はいかがですか.md
Last active July 24, 2025 17:43
あなたのパフォーマンスを倍にする Frontend Ops の傭兵はいかがですか

あなたのプロジェクトに Frontend Ops を。

現状

  • Full Plan: 1ヶ月 120万
    • 秘密保持契約を行い、ソースコードを分析し、改善を行います
    • 現在受付可能なのは、1月以降です
    • 調査費用は50万~になります
  • Lightweight Plan: 外部計測のみ 50万
  • 秘密保持契約抜きで外部からの監視を行います
@VictorTaelin
VictorTaelin / ai_reasoning_challenge_v2.md
Last active June 15, 2025 00:20
INVERT A BINARY TREE - $10k AI REASONING CHALLENGE (v2)

THE PROBLEM

🌲 Invert a binary tree! 🌲

Except with 3 catches:

  1. It must invert the keys ("bit-reversal permutation")
  2. It must be a dependency-free, pure recursive function
  3. It must have type Bit -> Tree -> Tree (i.e., a direct recursion with max 1 bit state)
@mizchi
mizchi / getDeclaration.ts
Created January 30, 2025 12:47
Get .d.ts from input path
/**
* @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 = {

Beast Mode

Beast Mode is a custom chat mode for VS Code agent that adds an opinionated workflow to the agent, including use of a todo list, extensive internet research capabilities, planning, tool usage instructions and more. Designed to be used with 4.1, although it will work with any model.

Below you will find the Beast Mode prompt in various versions - starting with the most recent - 3.1

Installation Instructions

  • Go to the "agent" dropdown in VS Code chat sidebar and select "Configure Modes".
  • Select "Create new custom chat mode file"