Skip to content

Instantly share code, notes, and snippets.

View scruss's full-sized avatar
💭
🦆

Stewart Russell scruss

💭
🦆
View GitHub Profile
@scruss
scruss / scruss-palm_pen.scad
Created January 15, 2021 20:32
Mirror of Customizable Palm Pen Holder OpenSCAD code - https://www.thingiverse.com/thing:4178663
// palm pen holder - scruss, -customizable!
// 2021-01 - increased max pen size to 22 mm
// 2020-02 - revised nut catch - a bit snug before
//CUSTOMIZER VARIABLES
// Hand Width - mm
hand_width = 110; // [70:150]
// Hand Thickness - thumb side - mm
thumb_thick = 35; // [20:50]
[profile]
layer_height = 0.15
wall_thickness = 1.2
retraction_enable = True
solid_layer_thickness = 1.2
fill_density = 15
print_speed = 50
print_temperature = 200
print_temperature2 = 0
print_temperature3 = 0
10 PR# 3
20 TEXT : HOME
30 HTAB 11
40 HTAB 11
50 PRINT " %,,,,,,,,,,,,,,,,,,,,,,,,, "
60 HTAB 11
70 PRINT " (,,,,,,,*&@@@@@@@@@@@@@@@%,,,,,,,,% "
80 HTAB 11
90 PRINT " ,,,,,,, @@@@@@@@@@@@@@@@@@@@@@@@@@,,,,,,/ "
100 HTAB 11
@scruss
scruss / main.py
Created July 18, 2020 01:23
Itsy Bitsy M0 Express IO demo
# Itsy Bitsy M0 Express IO demo
# Welcome to CircuitPython 2.2 :)
# Updated for CircuitPython 6.0.0-alpha.1: scruss, 2020-07
import board
import gc
import time
from digitalio import DigitalInOut, Direction, Pull
from analogio import AnalogIn
import audioio
@scruss
scruss / PLOTPOURRI2-BRANDY.bas
Last active April 16, 2020 23:11
PLOTPOURRI for BBC Micro
10 REM ******************
20 REM * *
30 REM * PLOTPOURRI *
40 REM * S COTTRELL *
50 REM * SEPT 1979 *
60 REM * *
70 REM ******************
80 REM Washington Apple Pi Journal October 1979
90 REM bbc basic / matrix brandy port - scruss, 2019-07
100 MODE 1
@scruss
scruss / makermask-tc.txt
Last active March 31, 2020 15:47
makermask.com terms and conditions - as viewed March 31, 2020, 11:41:09 a.m. EDT
https://www.makermask.com/terms-and-conditions.html
Maker Mask & RPrime Terms and Conditions
Last updated: March 29, 2020
The following are terms and conditions (“Terms and Conditions”)
of a legal agreement between you and RPrime Foundation, a Washington
State non-profit corporation based in Seattle, Washington and its
affiliates (collectively, “RPrime”, “we”, “us” or “our”).
1MODE4:VDU23,224,24,48,96,193,131,6,12,24:VDU23,225,24,12,6,131,193,96,48,24
2PRINTCHR$(224.5+RND(1));:GOTO2
RUN
@scruss
scruss / taxman.bas
Created November 3, 2019 20:08
Taxman - 1973 PCC Basic game reformatted for 40 columns
100 REM TAXMAN - first published in People's Computer Company
104 REM vol. 2, no. 1 - September 1973
108 REM edited for 40 column screens - scruss, 2019-11
112 DIM l(50),t(10)
116 PRINT
120 PRINT
124 PRINT "Hi, I'm the taxman"
128 PRINT "Do you want the regulations?"
132 PRINT "(1=Yes, 0=No)";
136 INPUT r
1MODE4:VDU23,224,24,48,96,193,131,6,12,24:VDU23,225,24,12,6,131,193,96,48,24
2PRINTCHR$(224.5+RND(1));:GOTO2
@scruss
scruss / Classic2
Last active July 21, 2019 15:46
ejolson's classic basic big fibonacci modded for RISC OS BBC BASIC
10ON ERROR PRINT "LINE : " + STR$(ERL) + " ERROR : " + REPORT$ : END
100REM CLASSIC.BAS -- COMPUTE THE NTH FIBONACCI NUMBER
110REM WRITTEN DECEMBER 25, 2018 BY ERIC OLSON
120REM
130REM THIS PROGRAM DEMONSTRATES THE EXPRESSIVENESS OF THE ORIGINAL
140REM VERSIONS OF MICROSOFT BASIC AS MEASURED BY EXPLICITLY CODING
150REM KARATSUBA MULTIPLICATION FOR BIG-NUMBER ARITHMETIC AND THEN
160REM USING THE DOUBLING FORMULA
170REM
180REM F(2K) = F(K)[2F(K+1)-F(K)]