Skip to content

Instantly share code, notes, and snippets.

https://hitchhikers-guide-to-agentic-ai.netlify.app
title: "ブラウザ完結型・日本語句読点復元モデルの設計と軽量化技術"
description: "キャラクターレベルTransformerの構築、ONNX変換、およびINT8動的量子化によるモデル軽量化を行い、ブラウザ上でのセキュアかつ低遅延な句読点復元推論を実現するプロセス。"
blocks:
- type: card
title: "1. 開発背景と音声文字起こしの課題"
icon: "mic"
color: "context"
body:
- type: markdown
text: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@45deg
45deg / wan2_2_i2v_colab.ipynb
Created April 28, 2026 18:10
WAMU V2 - Wan 2.2 I2V (14B) on google colab
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@45deg
45deg / sqlglot_on_ts.md
Last active April 4, 2026 18:03
Using sqlglot from JavaScript and TypeScript

Using sqlglot from JavaScript and TypeScript

Pyodide, package persistence, and testing BigQuery SQL on DuckDB

Read time: 15 minutes

The sqlglot library is a Python SQL parser and transpiler. When working with SQL in a JavaScript or TypeScript application, you can call sqlglot directly from Node.js using Pyodide.

This is useful for handling SQL dialect differences if your production environment runs on BigQuery and your local testing environment uses DuckDB. This post explains the initial setup and how to persist packages for regular use.

Minimal setup for sqlglot

@45deg
45deg / CLAUDE.md
Last active March 26, 2026 17:41
A Claude.md for translating English TeX into Japanese.

Role & Purpose

あなたは学術文献の翻訳および技術解説の専門家であり、CLI環境で動作する自律型エージェントである。 本プロジェクトの目的は、英語で記述されたTeX原稿を日本語のQuartoドキュメントに翻訳し、同時に原文における論理的飛躍(行間)を補完して、完全な解説文書として再構築することである。

Translation & Explicitation Guidelines

1. 用語のメモリ管理(SQLite CLI)

翻訳の一貫性と専門性を厳格に保持するため、CLI環境の sqlite3 を用いて専門用語の動的なメモリ管理を実行すること。

  • データ構造の初期化: 翻訳作業の開始時に、sqlite3 work.db コマンドを実行してプロジェクトローカルのDBファイルを作成し、以下のスキーマを定義する。
@45deg
45deg / main.js
Created October 3, 2024 19:03
pglite with pgvector example code with file dump/load
import { PGlite } from "@electric-sql/pglite";
import { vector } from '@electric-sql/pglite/vector';
import fs from 'node:fs/promises';
import { createReadStream } from "node:fs";
import zlib from 'node:zlib';
import { pipeline } from 'node:stream/promises';
const pg = new PGlite({
@45deg
45deg / tsp.py
Last active April 20, 2024 15:58
Traveling Salesman Problem (TSP) using the 2-opt algorithm (Japan's prefectoral capital) 都道府県庁所在地の巡回セールスマン
import random
import matplotlib.animation as animation
import matplotlib.pyplot as plt
capitals = {
'Hokkaido': (43.0646, 141.3468),
'Aomori': (40.8246, 140.7406),
'Iwate': (39.7036, 141.1527),
'Miyagi': (38.2688, 140.8721),
@45deg
45deg / delete_all_tweets.js
Created April 9, 2023 10:49
Farewell to Elon
const Twit = require('twit');
const fs = require('fs');
const { promisify } = require('util');
const ProgressBar = require('progress');
const asyncPool = require('tiny-async-pool');
const T = new Twit({
consumer_key: 'HERE',
consumer_secret: 'HERE',
access_token: 'HERE',
@45deg
45deg / tsp.gif
Last active April 4, 2023 20:01
2-opt tsp
tsp.gif