Skip to content

Instantly share code, notes, and snippets.

💭
🐜 🐜 🐜

Stewart C. Russell scruss

💭
🐜 🐜 🐜
Block or report user

Report or block scruss

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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
@scruss
scruss / Neighbourhood_Buildings.geojson
Created Nov 26, 2018
ODB_Ontario, my neighbourhood buildings
View Neighbourhood_Buildings.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@scruss
scruss / CBM_Logo-Chris_Yaneff-1965.scad
Created Nov 24, 2018
Commodore Business Machines Logo - Chris Yaneff, 1965
View CBM_Logo-Chris_Yaneff-1965.scad
// Commodore Business Machines Logo by Chris Yaneff (1965)
// scruss - 2018
// from https://twitter.com/vccmalta/status/1066231884911468544
a=100; // 10 cm
b=0.034*a;
c=0.166*a;
d=0.30*a;
e=0.364*a;
f=0.52*a;
@scruss
scruss / MORCRES
Last active Nov 24, 2018
Mornington Crescent - by Mike Cook, from The Micro User, April 1985
View MORCRES
10MODE7
20PRINTTAB(10,7);
30PROC_LOGO
40PRINT"MORNINGTON CRESCENT"
50PRINT"By Mike Cook"
60INPUT"Enter your name: "A$
70FOR A%=1 TO ASC(LEFT$(A$,1))+LEN(A$)
80T%=RND(A%)
90NEXT
100PRINT"Well that's silly I won't bother"
View Ender3Cura15.ini
[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
@scruss
scruss / output.txt
Created Oct 13, 2018
Knitting punch card image to XOXO file
View output.txt
OXOXOXOXOXOXOXOXOXOXOXXOOOOXXOOXOXOXOXOX
XOXOXOXOXOXOXOXOXOXOXXOOOOOXOOXOXOXOOXXO
OXOXOXOXOXOXOXOXOXOXOXXOOOXOOXOXOXOOXXOX
XOXOXOXOXOXOXOXOXOXOXOXXXXXOXOXOXOXOXOXO
OXOXOXOXOXOXOXOXOXOXOXXOOOXOOXOXOXOOXXOX
XOXOXOXOXOXOXOXOXOXOXXOOOOOXOOXOXOXOOXXO
OXOXOXOXOXOXOXOXOXOXOXXOOOOXXOOXOXOXOXOX
XOXOXOXXXXXOXOXOXOXOXOXXOOXXOXOOXOXOOXXO
OXOXOXXOOOXXXXXXOXOXOXOXXXXOOOXOOXOOXXOX
XOXOXXOOOOOXOOOXXOXOXOXOXXOOOOOXOOOXXOXO
View helicopter.bbc
10MODE 2
20REPEAT
30CLS
40VDU 23,1,0;0;0;0;
50VDU 23,224,0,14,12,104,16,28,8,0
60VDU 23,225,0,112,48,22,8,56,16,0
70VDU 23,226,0,248,32,116,126,116,112,0
80VDU 23,227,0,31,4,46,126,46,14,0
90VDU 23,228,0,102,255,255,255,255,255,255
100VDU 23,229,255,255,0,0,0,0,0,0
You can’t perform that action at this time.