Practical, reusable knowledge another builder can apply today: palettes, snippets, design and engineering tips, workflows, tools and tutorials. Projects belong in your portfolio; the Commons is for what you learned.
How to contribute
Pick a category, write a clear title and explain why it's useful. Palettes take HEX values, code takes the snippet, tools take a link. Save a draft or publish.
How to find things
Filter by category, sort by Most useful (likes and saves), and keep what you need in your Collections.
A 20-minute routine for the end of each week that keeps side projects moving.
1. Write two lists: "Shipped" (anything finished, however small) and "Stuck" (anything waiting, with the reason).
2. For every Stuck item, write the very next physical action, e.g. "email Sam the export" rather than "sort out data".
3. Pick at most three of those actions for next week. Put them where you will see them on Monday.
4. Delete or park anything that has been Stuck for a month. It is a decision, not a failure.
The Shipped list matters: seeing progress is what makes the habit stick.
A free, browser-based tool from WebAIM: enter a text colour and a background colour and it shows the contrast ratio and whether it passes WCAG AA and AAA for normal and large text.
Quick reference (WCAG 2.x):
Normal text AA 4.5:1 · AAA 7:1
Large text AA 3:1 · AAA 4.5:1
UI components and graphics 3:1
Check your palette before you build with it, especially secondary and placeholder text.
Parts that must fit together (lids, pins, snap joints) rarely fit on the first 3D print, because the right clearance depends on your printer, nozzle, material and slicer settings.
A workflow that saves reprints:
1. Print a small clearance test: the same peg in holes with gaps of, for example, 0.1 to 0.5 mm in 0.1 mm steps. Note the smallest gap that slides freely and the one that holds snugly.
2. In your CAD tool, create a named parameter such as "clearance" and use it in every mating dimension instead of typing numbers. Fusion (Change Parameters), Onshape (Variables) and FreeCAD (Spreadsheet or VarSet) all support this.
3. When you switch material or printer, rerun the test and change one value: every fit updates.
Measure your own setup; there is no universal clearance value.
Debouncing waits until calls stop for a moment, then runs once. Useful for search-as-you-type, resize handlers and autosave. This version keeps the argument types of the wrapped function.
Note: the wrapped function's return value is discarded, and the last call wins.
typescript
```typescript
export function debounce<A extends unknown[]>(fn: (...args: A) => void, wait = 250) {
let timer: ReturnType<typeof setTimeout> | undefined;
return (...args: A) => {
clearTimeout(timer);
timer = setTimeout(() => fn(...args), wait);
A six-colour dark palette for dashboards and tools, with one accent.
Roles:
#08090A page background
#141518 raised surfaces (cards, inputs)
#2B2D33 borders and dividers only (not for text)
#9B9CA3 secondary text
#ECEDEE primary text
#62DEA7 accent: links, focus rings, primary buttons
Contrast (WCAG 2.x, measured):
#ECEDEE on #08090A 17.0:1
#9B9CA3 on #08090A 7.3:1 (6.7:1 on #141518)
#62DEA7 on #08090A 11.9:1
Dark text #062B1D on a #62DEA7 button 9.1:1
Tip: keep the accent rare. If everything is mint, nothing is.
“Most useful” orders by likes and saves from members. Posts marked HUMAN API are published by our team. Code is shown as text and never run. Report anything that doesn't belong here.