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.

Kanin Kanin

🦊
The day we have world peace is the day I will finish a project.
View GitHub Profile
@melmsie
melmsie / cards.ts
Last active June 29, 2024 10:43
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 September 25, 2024 08:59
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).