Skip to content

Instantly share code, notes, and snippets.

View lightstrike's full-sized avatar
🎯
Focusing

Geoffrey Sechter lightstrike

🎯
Focusing
View GitHub Profile
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active July 9, 2025 05:16
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

@MrChocolatine
MrChocolatine / TS - More precise return type method Date#toISOString.d.ts
Last active June 3, 2025 07:09
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}`;
@nderscore
nderscore / TamaguiSolitoTextLink.tsx
Last active October 16, 2024 17:26
Example Tamagui Solito Text Link