Beta — free forever

Your code snippets. In your Drive. Always.

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.

Everything in one place

Your snippets, organized and ready whenever you need them.

pytRetry with Backoff
2h ago
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)
pythonutils
8 lines
typuseLocalStorage Hook
1d ago
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; }
  });
}
reacthooks
12 lines
sqlMonthly Active Users
3d ago
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;
sqlanalytics
7 lines
basGit Branch Cleanup
1w ago
#!/bin/bash
# Delete local merged branches
git branch --merged main \
  | grep -v '^\* main$' \
  | xargs git branch -d

echo "Done."
gitbashdevops
7 lines
goJSON Response Helper
2d ago
func writeJSON(w http.ResponseWriter,
    code int, v any) {
  w.Header().Set(
    "Content-Type",
    "application/json")
  w.WriteHeader(code)
  json.NewEncoder(w).Encode(v)
}
gohttpapi
8 lines
typDebounce Utility
5d ago
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);
  };
}
typescriptutils
10 lines

Google Drive Storage

Every snippet stored as a JSON file in your own Drive folder. You own your data — always.

Rich Code Editor

CodeMirror 6 with syntax highlighting for 12+ languages, folding, search & replace, and multi-cursor.

Smart Tag System

Tag snippets freely. Filter by one or multiple tags instantly. Full-text search across titles and descriptions.