Skip to content

Instantly share code, notes, and snippets.

View nakasyou's full-sized avatar
📖
何やってるんですか 勉強してください

Shotaro Nakamura nakasyou

📖
何やってるんですか 勉強してください
View GitHub Profile
@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 = {
@VictorTaelin
VictorTaelin / ai_reasoning_challenge_v2.md
Last active April 17, 2025 08:38
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 / あなたのパフォーマンスを倍にする Frontend Ops はいかがですか.md
Last active April 22, 2025 13:30
あなたのパフォーマンスを倍にする Frontend Ops の傭兵はいかがですか

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

現状

  • Full Plan: 1ヶ月 120万
    • 秘密保持契約を行い、ソースコードを分析し、改善を行います
    • 現在受付可能なのは、1月以降です
    • 調査費用は50万~になります
  • Lightweight Plan: 外部計測のみ 50万
  • 秘密保持契約抜きで外部からの監視を行います
@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
@nakasyou
nakasyou / tailwind.css
Last active June 2, 2024 03:46
tailwind postcss
@tailwind base;
@tailwind components;
@tailwind utilities;
@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 / favorite-fonts.md
Created May 21, 2024 11:00
Google Fontsお気に入り
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#
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.