Skip to content

Instantly share code, notes, and snippets.

View darrylnoakes's full-sized avatar

Darryl Noakes darrylnoakes

View GitHub Profile
@cullylarson
cullylarson / config.ts
Last active January 10, 2025 03:18
Example configuration file
const stages = ['production', 'staging', 'development', 'test'] as const;
type Stage = typeof stages[number];
function getStage(stages: Stage[]) {
if (!stages.length) return 'production';
for (const stage of stages) {
// if any of the provided stages is production, assume we are in production
if (stage === 'production') {
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active June 30, 2025 16:59
Conventional Commits Cheatsheet