Skip to content

Instantly share code, notes, and snippets.

@patmood
patmood / model.scad
Created July 16, 2026 00:08
[fiddlecad] B550M-C Motherboard IO Shield
// ============================================================
// Parametric Motherboard I/O Shield — Gigabyte B550M-C style
// ============================================================
/* [Overall Dimensions] */
// Outer width (ATX standard ≈ 158.75)
width = 158.75; // [120:0.25:180]
// Outer height (ATX standard ≈ 44.45)
height = 44.45; // [35:0.25:55]
// Face plate thickness
@patmood
patmood / model.scad
Last active July 15, 2026 02:08
[fiddlecad] Parametric Tap Drip Tray
// Parametric bathroom tap drip tray
// Clean planar construction for reliable STL rendering
// Units: millimetres
tray_width = 200;
tap_diameter = 50.2; // measured diameter of round tap base
tap_clearance = 1.0; // radial print-fit clearance
tap_cutout_depth = 38; // rear edge to front of clearance cutout
lip_inside_to_tap_edge = 50.2; // inside face of lip to physical tap edge
@patmood
patmood / model.scad
Last active July 14, 2026 11:21
[fiddlecad] Modern Ladder-Back Chair
// Parametric modern dining chair
$fn = 48;
seat_w = 48; seat_d = 46; seat_h = 45; seat_t = 4;
leg = 4.2; back_h = 42; back_t = 3.2;
module rounded_box(size=[10,10,10], r=2) {
hull() {
for (x=[r,size[0]-r], y=[r,size[1]-r])
translate([x,y,r]) sphere(r=r);
for (x=[r,size[0]-r], y=[r,size[1]-r])
@patmood
patmood / model.scad
Last active June 24, 2026 10:33
[fiddlecad] Square Pyramid
// Base width of the pyramid
base_width = 30; // [5:100]
// Height of the pyramid
height = 25; // [5:100]
// Number of sides for the pyramid base
sides = 4; // [3:12]
module pyramid(base, h, n) {
@patmood
patmood / model.scad
Last active June 21, 2026 09:37
Parametric Router Jig
// Parametric rectangular buckle / retention clip
// Inspired by: plastic rectangular frame with a central tongue
// connected to the top, bottom, and side frame by tabs.
/* [Overall dimensions] */
// Total width of the part (mm)
width = 42; // [10:200]
// Total height of the part (mm)
height = 83; // [10:200]
@patmood
patmood / model.scad
Created June 21, 2026 06:29
Parametric Hinge – Improved Fit
// Parametric divided storage box OpenSCAD source.
// Project Home: https://hackaday.io/project/164516/
// Author: https://hackaday.io/daren
//
// Creative Commons License exists for this work. You may copy and alter the content
// of this file for private use only, and distribute it only with the associated
// Parametric divided storage box content. This license must be included with
// the file and content.
// For a copy of the current license, please visit http://creativecommons.org/licenses/by/2.0/
@patmood
patmood / model.scad
Last active June 21, 2026 06:50
Parametric Door Hinge
// Parametric divided storage box OpenSCAD source.
// Project Home: https://hackaday.io/project/164516/
// Author: https://hackaday.io/daren
//
// Creative Commons License exists for this work. You may copy and alter the content
// of this file for private use only, and distribute it only with the associated
// Parametric divided storage box content. This license must be included with
// the file and content.
// For a copy of the current license, please visit http://creativecommons.org/licenses/by/2.0/
@patmood
patmood / model.scad
Created June 21, 2026 06:09
Parametric Door Hinge
// Parametric Door Hinge (closed, simple)
hinge_height = 80; // [20:200]
leaf_width = 25; // [10:80]
leaf_thickness = 2; // [1:5]
knuckle_diameter = 10; // [5:20]
knuckles = 3; // [2:7]
screw_hole_diameter = 4; // [2:8]
screw_holes_per_leaf = 4; // [1:10]
clearance = 0.4;
@patmood
patmood / mailchimp-firebase.js
Created October 1, 2017 21:34 — forked from eibrahim/mailchimp-firebase.js
A node worker for firebase to add a user to mailchimp
var mcapi = require('./node_modules/mailchimp-api/mailchimp');
var usersRef = db.ref('users');
var mc = new mcapi.Mailchimp('xxxxxxxxxx-api-key-us4');
usersRef.orderByChild('added_to_mailchimp').equalTo(null).on('child_added',function(snapshot){
var user = snapshot.val();
var key = snapshot.key;
if(user && user.email){
var listId = 'xxxx-list-id-xxxx';
var name = user.displayName || '';
@patmood
patmood / basscss.css
Created July 14, 2017 04:40
Basscss in a single file
/* Basscss Type Scale */
.h1 { font-size: var(--h1) }
.h2 { font-size: var(--h2) }
.h3 { font-size: var(--h3) }
.h4 { font-size: var(--h4) }
.h5 { font-size: var(--h5) }
.h6 { font-size: var(--h6) }
:root {