Skip to content

Instantly share code, notes, and snippets.

@nderscore
nderscore / TamaguiSolitoTextLink.tsx
Last active October 16, 2024 17:26
Example Tamagui Solito Text Link
@MrChocolatine
MrChocolatine / TS - More precise return type method Date#toISOString.d.ts
Last active October 25, 2024 10:42
TypeScript – How to accurately type dates in ISO 8601 format
// In TS, interfaces are "open" and can be extended
interface Date {
/**
* Give a more precise return type to the method `toISOString()`:
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString
*/
toISOString(): TDateISO;
}
type TYear = `${number}${number}${number}${number}`;
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active November 18, 2024 16:45
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example