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.