Skip to content

Instantly share code, notes, and snippets.

View cellularmitosis's full-sized avatar

Jason Pepas cellularmitosis

View GitHub Profile
@cellularmitosis
cellularmitosis / README.md
Last active October 6, 2025 16:49
MinBOM (17 auto launches)

See more cheap ships

MinBOM (17 auto launches)

A ship designed to be cheap when built in auto-launch mode, by minimizing the number of component types (BOM = Bill of Materials).

Screenshot 2025-10-06 at 11 00 47 AM
@cellularmitosis
cellularmitosis / README.md
Last active October 4, 2025 16:20
9-tile-wide ships

See more cheap ships

9-tile-wide ships

Plank (16 launches)

A 5-furnace, 2-bay, solar

@cellularmitosis
cellularmitosis / README.md
Last active October 4, 2025 16:18
14-tile-wide ships

See more cheap ships

14-tile-wide ships

Cuban (25 launches)

A 14-furnace (equivalent) 4-bay nuclear

@cellularmitosis
cellularmitosis / README.md
Last active October 4, 2025 16:17
Pencil (22 launches)

See more cheap ships

Pencil (22 launches)

An 11.2-furnace (equivalent) 5-bay nuclear hauler.

@cellularmitosis
cellularmitosis / README.md
Last active July 14, 2025 15:13
Factorio "Gleba start" iron + copper factory

Factorio Iron and Copper factories for "Gleba start"

I'm using the "Any planet start" mod for Factorio to force myself to really understand Gleba.

These blueprints produce half a belt of iron and copper, with a little power plant as well.

These use minimal technology (you'll need to research assembler 2's), but still have some nice circuit tricks, bootstrapping by dropping about 200 spoilage in each wooden box, plus some fuel in the power plant (with automatic restart if fruits get interrupted).

No unprocessed Yumako and Jelly Nut are used directly, ensuring the seed ratio stays positive. However, you'll need to implement some sort of control on your Agricultural towers to ensure you don't overproduce and allow fruit to rot.

@cellularmitosis
cellularmitosis / README.md
Last active May 8, 2025 15:56
A stdin-stdout passthrough which ignores SIGPIPE

Blog 2025/5/8

<- previous | index

A stdin-stdout passthrough which ignores SIGPIPE

One of the problems with using bash's set -o pipefail is that a command may fail with SIGPIPE if the next command in the pipepine exits before receiving all of its input.

@cellularmitosis
cellularmitosis / README.md
Last active May 8, 2025 15:56
A demo of Python 3.10's match statement

Blog 2025/4/11

<- previous | index | next ->

A demo of Python 3.10's match statement

Python's match statement is more powerful than I had at first realized.

@cellularmitosis
cellularmitosis / README.md
Last active April 11, 2025 21:06
Running an x86_64 Terminal.app on arm64 Macs
@cellularmitosis
cellularmitosis / README.md
Last active April 10, 2025 18:37
A simple Python function to parse command line arguments
@cellularmitosis
cellularmitosis / README.md
Last active April 10, 2025 16:19
A general-purpose symbolic expression parser in Python