A personal code snippet manager that stores everything as plain JSON in your Google Drive. No vendor lock-in. No subscription. Just you and your snippets.
By continuing, you agree to our Privacy Policy and Terms of Use.
Your snippets, organized and ready whenever you need them.
def retry(fn, max=3, delay=1):
for i in range(max):
try:
return fn()
except Exception:
if i == max - 1: raise
time.sleep(delay * 2 ** i)function useLocalStorage<T>(key: string, init: T) {
const [val, setVal] = useState<T>(() => {
try {
const s = localStorage.getItem(key);
return s ? JSON.parse(s) : init;
} catch { return init; }
});
}SELECT
DATE_TRUNC('month', created_at) AS month,
COUNT(DISTINCT user_id) AS mau
FROM events
WHERE action = 'login'
GROUP BY 1
ORDER BY 1 DESC;#!/bin/bash # Delete local merged branches git branch --merged main \ | grep -v '^\* main$' \ | xargs git branch -d echo "Done."
func writeJSON(w http.ResponseWriter,
code int, v any) {
w.Header().Set(
"Content-Type",
"application/json")
w.WriteHeader(code)
json.NewEncoder(w).Encode(v)
}function debounce<T extends
(...a: unknown[]) => void>(
fn: T, ms: number
) {
let t: ReturnType<typeof setTimeout>;
return (...a: Parameters<T>) => {
clearTimeout(t);
t = setTimeout(() => fn(...a), ms);
};
}Every snippet stored as a JSON file in your own Drive folder. You own your data — always.
CodeMirror 6 with syntax highlighting for 12+ languages, folding, search & replace, and multi-cursor.
Tag snippets freely. Filter by one or multiple tags instantly. Full-text search across titles and descriptions.
As developers, we constantly write utility functions, configuration blocks, and complex database queries that we know we'll need again. Yet, when the time comes, we often find ourselves searching through old repositories or Stack Overflow answers to recreate the exact same logic. Effective code snippet management is the key to breaking this cycle and accelerating your development workflow.
Most snippet managers lock your data into proprietary databases or require expensive monthly subscriptions. By storing your snippets as simple, human-readable JSON files directly in your Google Drive, you ensure complete data sovereignty. Your code remains yours, accessible offline, easily synced across devices, and completely immune to vendor lock-in. If a service ever shuts down, your Drive folder will still contain every line of code you've saved.
react, hooks, and api. This makes it instantly discoverable from multiple logical angles.npm install lodash) or specific environment variables. A snippet is only as useful as the context required to run it.Use a combination of full-text search and specific tags. For example, searching for "debounce" while filtering by the "typescript" tag will quickly narrow down your library to the exact utility you need.
Yes. Google Drive provides enterprise-grade security. Since the snippets are stored in a dedicated folder in your personal account, only you (and applications you explicitly authorize) have access to them.