Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🦆

Stewart C. Russell scruss

💭
🦆
View GitHub Profile
@scruss
scruss / main.py
Created Jul 18, 2020
Itsy Bitsy M0 Express IO demo
View main.py
# 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 Apr 16, 2020
PLOTPOURRI for BBC Micro
View PLOTPOURRI2-BRANDY.bas
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 Mar 31, 2020
makermask.com terms and conditions - as viewed March 31, 2020, 11:41:09 a.m. EDT
View makermask-tc.txt
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”).
View 10printbbc.bas
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 Nov 3, 2019
Taxman - 1973 PCC Basic game reformatted for 40 columns
View taxman.bas
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
View 2print
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 Jul 21, 2019
ejolson's classic basic big fibonacci modded for RISC OS BBC BASIC
View Classic2
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)]
@scruss
scruss / plotpourri_bbc.bas
Last active Jul 9, 2019
PLOTPOURRI - Apple II BASIC graphics demo ported to BBC BASIC
View plotpourri_bbc.bas
1000 REM ******************
1010 REM * *
1020 REM * PLOTPOURRI *
1030 REM * S COTTRELL *
1040 REM * SEPT 1979 *
1050 REM * *
1060 REM ******************
1070 REM Washington Apple Pi Journal October 1979
1080 REM bbc basic / matrix brandy port - scruss, 2019-07
1090 MODE 1
@scruss
scruss / chamfer_extrude.scad
Created Feb 24, 2019
chamfer_extrude - OpenSCAD operator module to approximate chamfered/tapered extrusion of a 2D path
View chamfer_extrude.scad
module chamfer_extrude(height = 2, angle = 10, center = false) {
/*
chamfer_extrude - OpenSCAD operator module to approximate
chamfered/tapered extrusion of a 2D path
(C) 2019-02, Stewart Russell (scruss) - CC-BY-SA
NOTE: generates _lots_ of facets, as many as
6 * path_points + 4 * $fn - 4
@scruss
scruss / uploading.csv
Created Dec 23, 2018
Sample Internet Archive command-line upload metadata CSV for old scanned computer manuals
View uploading.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 17 columns, instead of 12. in line 3.
identifier,file,description,subject[0],subject[1],subject[2],subject[3],subject[4],subject[5],subject[6],subject[7],title,creator,date,collection,mediatype,language
Acorn409005MemoPlan,409005 - Memo Plan.pdf,User guide for the MemoPlan word processor for CP/M on the Acorn BBC Micro Z80 Second Processor.,acorn,z80,bbc,bbc_micro,manual,userguide,cp/m,wordprocessor,MemoPlan for the BBC Microcomputer with Z80 second processor,Acorn Computers Limited,1984,opensource,texts,eng
Acorn409006FilePlan,409006 - File Plan.pdf,User guide for the FilePlan database for CP/M on the Acorn BBC Micro Z80 Second Processor.,acorn,z80,bbc,bbc_micro,manual,userguide,cp/m,database,FilePlan for the BBC Microcomputer with Z80 second processor,Acorn Computers Limited,1984,opensource,texts,eng
Acorn409007GraphPlan,409007 - Graph Plan.pdf,User guide for the GraphPlan financial modelling package for CP/M on the Acorn BBC Micro Z80 Second Processor.,acorn,z80,bbc,bbc_micro,manual,userguide,cp/m,financial,GraphPlan for the BBC Microcomputer
You can’t perform that action at this time.