A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
| function scrollToLoadMore() { | |
| // keep scrolling if twitter tries to stop loading more. | |
| // scroll up, then down to force infinite load. | |
| window.scrollTo(0, 0); | |
| setTimeout(function() { | |
| window.scrollBy(0, 9999999999); | |
| }, 200); | |
| } | |
| function removeTweet(tweetEl) { |
To push container images to ghcr, you need peronal access token (PAT) - see how to create PAT
Personal Settings > Developer settings > Personal access tokens
| import { z } from "zod"; | |
| // 1. Şemayı Tanımla | |
| // Zod, veriyi hem doğrular hem de dönüştürür | |
| const UserSchema = z.object({ | |
| id: z.number(), | |
| name: z.string().min(2), | |
| email: z.string().email(), | |
| // Backend null dönse bile biz fallback değer atıyoruz | |
| role: z.enum(["admin", "user"]).default("user"), |