Skip to content

Instantly share code, notes, and snippets.

View jackyliang's full-sized avatar

Jacky Liang jackyliang

View GitHub Profile
@jackyliang
jackyliang / eval-summary.md
Last active March 9, 2026 00:51
Vector Search Eval: Pinecone vs pgvector on Supabase

Vector Search Eval: Pinecone vs pgvector on Supabase

Date: March 8, 2026 Dataset: Breather knowledge base (370 files, ~2,400 chunks) Queries: 30 realistic customer questions (generated via Gemini Flash, mix of specific and broad) Judge: Gemini Flash 2.0 scoring relevance, coverage, and noise (1-5 scale)

Setup

| | Pinecone (current) | pgvector (Supabase) |

@jackyliang
jackyliang / SKILL.md
Created February 12, 2026 21:16
Database branching skill for Claude Code — treat Ghost DB forks like git branches for safe schema development
name database-branching
description Use when building any feature that involves database changes (new table, new column, alter column, etc.) — fork the database like a git branch. Only applies to projects using Ghost DB.

Database Branching

Overview

Treat database forks like git branches. Never make schema changes directly on the production database. Fork it, develop against the fork, merge migrations back when ready, then delete the fork.

@jackyliang
jackyliang / SKILL.md
Created February 12, 2026 21:16
TDD skill for Claude Code — write failing tests first against real infrastructure, no mocks, Ghost DB fork isolation
name test-driven-development
description Use when building any feature (small or large), fixing bugs, or refactoring — always write failing tests first against real infrastructure

Test-Driven Development

Overview

Write the test first. Watch it fail. Write minimal code to pass. No exceptions.

module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 11,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
@jackyliang
jackyliang / Owl Carousel URL Hash Auto Update
Last active May 11, 2016 12:28
An Owl Carousel demo with auto-updating URL hash
@jackyliang
jackyliang / Baidu Maps API
Last active September 9, 2021 07:17
Baidu Maps API
Baidu Maps API Detailed Explanation
-
Explanation of [drawing Objects onto Baidu Maps](http://developer.baidu.com/map/jsdemo.htm#f0_7).
Draw Shit Onto Baidu Map:
-
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />