Skip to content

Instantly share code, notes, and snippets.

View Kanin's full-sized avatar
🦊
The day we have world peace is the day I will finish a project.

Joshua Waters Kanin

🦊
The day we have world peace is the day I will finish a project.
View GitHub Profile
@Dziurwa14
Dziurwa14 / codes.md
Last active December 8, 2025 22:08
Discord error codes

Error Codes

All collected Discord error codes, categorized by type. See on Userdoccers.

Unknown Entity

Code Message
10001 Unknown Account
10002 Unknown Application
10003 Unknown Channel
10004 Unknown Guild
@melmsie
melmsie / cards.ts
Last active January 10, 2025 01:54
Dank Memer Blackjack Command Files
import * as Constants from './constants';
const randomInArray = <T>(arr: readonly T[]): T =>
arr[Math.floor(Math.random() * arr.length)];
export interface Card {
suit: typeof Constants.SUITS[number];
face: typeof Constants.FACES[number];
baseValue: number;
};
@cyyynthia
cyyynthia / discord-pitch-black.scss
Last active March 22, 2020 03:07
Ultra simple, no bullshit pitch-black theme. Compatible with all client mods.
.theme-dark {
&:root {
--background-primary: #000;
--background-secondary: #000;
--background-tertiary: #000;
--deprecated-panel-background: #000;
--channeltextarea-background: #101010;
}
.topSectionNormal-2-vo2m, .body-3ND3kc, .container-3ayLPN, .modal-yWgWj-, .autocomplete-1vrmpx, .emojiPicker-3m1S-j {
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active December 14, 2025 22:27
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).