WIP https://github.com/mizchi/x-lang-proto2
- 最小限の構文:
let
キーワードは=
があれば不要 - 順序独立: do式以外では定義の順序は関係ない
- 統一的なスコープ:
let in
とwhere
を統合した設計
WIP https://github.com/mizchi/x-lang-proto2
let
キーワードは=
があれば不要let in
とwhere
を統合した設計できたもの
Next.js 視点で leptos のチュートリアル https://book.leptos.dev/01_introduction.html でなぞって、評価して。
#!/usr/bin/env -S deno run -A | |
// Install deno install -Afg blog.ts | |
// edit your own zenn sync dir | |
const homeDir = Deno.env.get("HOME"); | |
if (!homeDir) { | |
$.log("HOME環境変数が設定されていません"); | |
Deno.exit(1); | |
} |
cloudflare containers の 使い方を Claude Code にまとめさせた
https://github.com/yusukebe/image-resize-containers/tree/main
/** | |
* My Portable RAG | |
* $ pnpm add sqlite-vec @ai-sdk/google ai | |
* SQLite Vector Search + Google AI Embeddings | |
* | |
* Required environment variables: | |
* GOOGLE_GENERATIVE_AI_API_KEY=your-api-key | |
* | |
* Usage: | |
* # Index text content |
This document contains essential MoonBit knowledge that LLMs cannot know without external environment access. Last updated: December 2024.
Current Status: Beta (as of December 2024)
import React, { useState } from "react"; | |
import { render } from "ink-testing-library"; | |
import { Text, Box, useInput, useApp } from "ink"; | |
import { describe, it, expect, beforeAll } from "vitest"; | |
// テスト環境設定 | |
beforeAll(() => { | |
process.stdin.isTTY = true; | |
process.stdout.isTTY = true; | |
}); |
// node --test ask-claude.test.ts | |
import { test } from "node:test"; | |
import { query, type Options } from "@anthropic-ai/claude-code"; | |
async function assertAI(prompt: string, options: Options = {}): Promise<void> { | |
const MARKER = "**ASSERT_OK**"; | |
const abortController = new AbortController(); | |
const finalPrompt = `Assert user query. Return ${MARKER} if it is true. \n\n${prompt}`; | |
for await (const message of query({ | |
prompt: finalPrompt, |