Skip to content

Instantly share code, notes, and snippets.

View nfd9001's full-sized avatar
🕶️
i drew this icon when i was in philosophy class, when i was 16

nfd (aka alex) nfd9001

🕶️
i drew this icon when i was in philosophy class, when i was 16
View GitHub Profile
@nfd9001
nfd9001 / traderjoes-shampoobar-box.scad
Created August 22, 2023 04:42
Trader Joe's shampoo bar box
include <BOSL2/std.scad>
$fn=200;
//Warning: the tolerances here follow the shape of the bar *very* closely and it's too snug of a fit.
//Probably adjust another several tenths of a mm out or scale the whole thing up a few percent in your slicer
//82,65.5, depth 24.75
//base
difference(){
linear_extrude(28) ellipse(r=[82/2+1.1,65.5/2+1.1]);
@nfd9001
nfd9001 / debossed-text-flatbox-rev5-top.scad
Created August 4, 2023 23:29
Script to deboss text onto a flatbox rev5 case top
/*tested on flat bed, 0.2mm layer height. YMMV on textured.
be careful on bold/black fonts;
your printer may or may not like large overhangs even ~3 layers up.
bring the default flatbox top STL with you into the directory where this file is saved*/
xshift = 10;
yshift = -55;
rotation = 0; //degrees
deboss_string = "sample text";
font_name = "DejaVu Sans";
@nfd9001
nfd9001 / hexagon_tile.scad
Created April 13, 2023 23:40
Parametric tiled hexagons in scad
outer_hex = 1;
inner_hex = .9;
wall_depth = outer_hex - inner_hex;
tile_height = .5;
module hexagon(x) circle(r=x, $fn=6);
module hollow_hex(x, inner_x) difference(){hexagon(x); hexagon(inner_x);}
module hex_cylinder(height=0.1) linear_extrude(height=height, center=true) hollow_hex(outer_hex, inner_hex);
bump_y_vec = [0,(outer_hex * sqrt(3))-wall_depth/2,0];
@nfd9001
nfd9001 / gen-md-remarkable-highlights.py
Created October 17, 2021 08:19
Use sabidib/remarking to put your Remarkable highlights in Markdown, ready for use in Obsidian
#! /bin/python3
import json
from datetime import datetime
import sys
import subprocess
import os
def readJson(s):
j = json.loads(s)
return (j["documents"], j["highlights"])
@nfd9001
nfd9001 / link-to-rm
Created June 15, 2021 01:23
link-to-rm: Convenience script to send URLs to Remarkable Cloud