Skip to content

Instantly share code, notes, and snippets.

View net-tech's full-sized avatar
💭
Am I testing my code or is it testing me?

net_tech_ net-tech

💭
Am I testing my code or is it testing me?
View GitHub Profile
@ciiqr
ciiqr / zod-optional-null.ts
Last active June 18, 2024 13:47
zod optional/nullable/nullish differences
// zod schema
z.object({
// valid if string or:
optional: z.string().optional(), // field not provided, or explicitly `undefined`
nullable: z.string().nullable(), // field explicitly `null`
nullish: z.string().nullish(), // field not provided, explicitly `null`, or explicitly `undefined`
});
// type
{
@almostSouji
almostSouji / TOKEN
Last active June 19, 2024 15:50
You leaked your token. This is probably how you get here
Do not leak your token!
@advaith1
advaith1 / top bots.md
Last active June 16, 2024 21:57
The top Discord bots ranked by server count
Rank Bot Approximate Server Count Library
1 MEE6 21,600,000 Custom Python
2 Rythm 🪦 15,200,000 JDA
3 Groovy 🪦 10,400,000 JDA, Discord4J
4 carl-bot 🅱️ 9,770,000 Pycord
5 ProBot