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 July 26, 2024 06:58
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 July 23, 2024 22:49
You leaked your token. This is probably how you get here
MTI2NDMxMjU5MDQ3ODIxNzIzNg.G6ueBL.IpA3-9YeScYr9ou9K1utMApP9p-KJwNxcIXUi8
@advaith1
advaith1 / top bots.md
Last active July 23, 2024 20:49
The top Discord bots ranked by server count
Rank Bot Approximate Server Count Library
1 MEE6 21,500,000 Custom Python
2 Rythm 🪦 15,200,000 JDA
3 Groovy 🪦 10,300,000 JDA, Discord4J
4 carl-bot 🅱️ 10,300,000 Pycord
5 ProBot