Skip to content

Instantly share code, notes, and snippets.

View apstndb's full-sized avatar

apstndb

View GitHub Profile
@apstndb
apstndb / README.md
Last active July 13, 2026 20:37
k0kubun/pp #114 nested-rendering ablation benchmark

k0kubun/pp nested-rendering ablation benchmark

This harness reproduces the four-way benchmark reported in k0kubun/pp#114:

  1. the upstream baseline;
  2. streaming nested rendering only;
  3. regular-expression precompilation only;
  4. the combined pull-request branch.
@apstndb
apstndb / Gemini 3.5 Flash in Gemini Code Assist.md
Last active June 14, 2026 06:23
AI 難民のための Gemini 3.5 Flash in Gemini CLI

定額サブスクリプションによる AI の利用はあまり持続性がないとされ、法人向けには選択肢が減っていっている。 その中で Google Gemini の最新のモデルである Gemini 3.5 Flash を定額利用できる選択肢が密かに生まれていたので共有する。

  • An important update: Transitioning Gemini CLI to Antigravity CLI によると
    • 個人向けの Gemini CLI およびツールとしての Gemini Code Assist は Antigravity に置き換えられていくことが発表済。
      • 無償版の Gemini Code Assist for individuals だけでなく、Google AI Pro/Ultra を契約しても 2026-06-18 時点で使えなくなる。

        On June 18, 2026, Gemini CLI and Gemini Code Assist IDE extensions will stop serving requests for Google AI Pro and Ultra, as well as those using it free of charge using Gemini Code Assist for individuals.

    • 主に法人向けの Gemini Code Assist では Gemini CLI は継続してサポートするし、モデルも追加されると書かれている。 > If your organization uses Gemini CLI or our IDE extensions via a Gemini Code Assist Standard or Enterprise license, or if your organization uses Gemini Code Assist for GitHub through Google

Copilot Premium Request — 原価厨のためのコスト効率分析

原価厨向け。GitHub Copilot の premium request の multiplier と、各モデルの実トークン単価を比較し、 どのモデルが premium request 枠に対して割安・割高かを分析する。

2026年5月1日時点の情報に基づく。

⚠ 本分析の目的について: 本分析はユーザが premium request 枠を賢く活用し、損をせずに満足度の高い使い方をするためのものであり、GitHub に損をさせることを目的としたものではない。premium request の過度な消費や制度の裏をかくような利用は、GitHub による rate limit の強化や、最終的にはプランの課金制度自体の変更に繋がる可能性がある。持続可能なサービスのために、適切な利用を心がけてほしい。

📝 本記事について: 本記事は Claude Opus 4.6 をはじめとする複数の AI モデルを使い、人の監修の下で書かれている。

from google.cloud import bigquery
import google.auth
def query():
credentials, project = google.auth.default( scopes=[ "https://www.googleapis.com/auth/bigquery.readonly"] )
client = bigquery.Client(credentials=credentials, project=project)
query = "SELECT 1"
results = client.query(query, api_method=bigquery.enums.QueryApiMethod.QUERY).result()
for row in results:
@apstndb
apstndb / Google Cloud document feedbacks.md
Last active May 25, 2026 15:10
Google Cloud document feedbacks
@apstndb
apstndb / main.go
Created September 12, 2024 15:42
memefish cloud-spanner-emulator test runner
package main
import (
"context"
"encoding/csv"
"flag"
"fmt"
parser "github.com/cloudspannerecosystem/memefish"
"github.com/cloudspannerecosystem/memefish/token"
"log"
SELECT SUBSTR(TO_HEX(x), 0, 8), SUBSTR(TO_HEX(x), 0, 16)
FROM(SELECT SHA256(CAST(FirstName AS BYTES)) @{DISABLE_INLINE=FALSE} AS x FROM Singers LIMIT 1)
SELECT SUBSTR(TO_HEX(x), 0, 8), SUBSTR(TO_HEX(x), 0, 16)
FROM(SELECT SHA256(CAST(FirstName AS BYTES)) @{DISABLE_INLINE=TRUE} AS x FROM Singers LIMIT 1)
$ export PROJECT_ID=gcpug-public-spanner INSTANCE_ID=merpay-sponsored-instance DATABASE_ID=apstndb-sampledb-with-data-idx
$ sh show-schema-tree.sh
Concerts
Singers
  Albums
    Songs
    SongsBySingerAlbumSongNameDesc on Songs
SongGenres
AlbumsByAlbumTitle on Albums