Skip to content

Instantly share code, notes, and snippets.

View eraserhd's full-sized avatar

Jason Felice eraserhd

View GitHub Profile
#!/usr/bin/env bb
(def width 60);
(def extrusion-size 20);
(def extrusion-vertical-distance 75)
(def linear-rail-carriage-height 13)
(def linear-rail-carriage-width 27)
(def linear-rail-screw-distance 20)
@eraserhd
eraserhd / test.ngc
Created July 9, 2026 15:59
bCNC pocket cutting issue
(entered)
g1 x13.423929 y70.747512 z0 f1200
g1 x13.341937 y70.730447 z0
g1 x13.204077 y70.704917 z0
g1 x13.107837 y70.68916 z0
g1 x12.877566 y70.657394 z0
g1 x12.781213 y70.64602 z0
g1 x12.640767 y70.632786 z0
g1 x12.542907 y70.625629 z0
g1 x12.307841 y70.614424 z0

Broom Threads

Broom handle

It turns out the threads on broom handles aren’t any standard thread. I mean, look at that. Round! Who makes a round thread?

Apparently they are called "broom threads" or "knuckle threads"?

To make a broom nut in OpenSCAD, I first tried to linear_extrude a circle

I would like to take a moment to talk to you about a peeve that I've been feeding, caring for, and walking for the last ten or so years -- well, not so much walking lately, as this peeve is now over seventy in peeve-years, and her health is declining.

The Desire to Separate Everything Into Files by the Type of Thing, an Pet Peeve

Programmers are peculiar creatures who constantly deal with the fact that computers are infuriatingly logical and reproducible, while brains are infuriatingly illogical and take nine months to reproduce a stupid basic model. As such, programmers like to rely on organization to deal with large amounts of information, since brain reproduction is expensive and, in my limited experience, unlikely to produce programming help let alone wash their own dishes.

The challenge, though, is that programming as a profession or hobby selects for odd people, and none of the sort who partake in it are willing to come up with an organization scheme that's specific to a specific project. No, o

from build123d import *
from gridfinity_build123d import *
import math
# Defaults are for this set:
# https://littlemachineshop.com/products/product_view.php?ProductID=1893
parallel_pair_count = 10
parallel_width = 3.0 * 25.4
parallel_thickness = 1.0/8.0 * 25.4
shortest_parallel_height = 1/2 * 25.4
diff --git a/bindings/aws/sqs/sqs.go b/bindings/aws/sqs/sqs.go
index 465e061b..356062e4 100644
--- a/bindings/aws/sqs/sqs.go
+++ b/bindings/aws/sqs/sqs.go
@@ -33,13 +33,14 @@ import (
// AWSSQS allows receiving and sending data to/from AWS SQS.
type AWSSQS struct {
- Client *sqs.SQS
- QueueURL *string
package main
import (
"encoding/json"
"fmt"
"math/rand"
)
type T struct {
Value int64
@eraserhd
eraserhd / defer.go
Created July 13, 2023 16:38
defer.go
package tkt
import (
"sync"
)
type Deferred[T any] interface {
Get() T
}
Only in zmk/app: build
Only in zmk: build
Only in zmk/modules/bsim_hw_models/nrf_hw_models: .git
Only in zmk/modules/crypto/mbedtls: .git
Only in zmk/modules/crypto/tinycrypt: .git
Only in zmk/modules/debug/mipi-sys-t: .git
Only in zmk/modules/debug/TraceRecorder: .git
Only in zmk/modules/fs/fatfs: .git
Only in zmk/modules/fs/littlefs: .git
Only in zmk/modules/hal/atmel: .git
package conf
import (
"list"
"strings"
"text/template"
)
#URLEncoding: {
let doNotEncode = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_."