Skip to content

Instantly share code, notes, and snippets.

View cellularmitosis's full-sized avatar

Jason Pepas cellularmitosis

View GitHub Profile
cellularmitosis /
Created May 16, 2024 02:40
Factorio misc. blueprints

magenta 1:

cellularmitosis /
Last active April 12, 2024 09:38
Upgradeable Factorio walls, v2

Upgradeable Factorio walls, v2

Here are some walls I've been working on.

The core concept behind these walls is the notion of upgradeability. Simply paste the next stage on top of your existing walls.

These walls snap to a 20x20 grid for convenience.

Screen Shot 2024-04-09 at 9 44 37 PM

cellularmitosis /
Last active April 18, 2024 05:50
Factorio robot frame rush blueprint

Factorio robo-rush blueprint (v3)

Here's a mini-base blueprint for rushing to personal roboport.

  • 30 SPM red+green+blue
  • hand-fed 18 SPM black (requires hand-fed walls)
  • Small mall (mostly via overflow chests)

Screen Shot 2024-04-18 at 12 49 52 AM

cellularmitosis /
Last active April 1, 2024 01:23
Factorio bot-rush

Factorio Bot-rush example

Here are some screenshots of a recent Factorio game I played where the goal was to get to personal roboport as quickly as possible.

Smelting columns

  • One column of iron (upgrade to red belts as needed)
  • One column of copper
  • One column of integrated iron-to-steel
import lxml
from lxml import html
import urllib.request
import os

class HTMLNode:
    """A wrapper around lxml nodes with a fluent interface which supports optional chaining."""
cellularmitosis /
Last active May 11, 2024 19:08
Factorio city blocks

Factorio City Blocks v1.1

I've been working on some city blocks which are designed to be simple and cheap:

  • 1-1 trains
  • assembler-2's
  • yellow belts


  • yellow science related blocks are missing
  • migrate train stop names to include "1-1"
cellularmitosis /
Last active January 21, 2024 04:38
Factorio icon set scripts

Here is a script I use to crop out 64x64 item icons from the Factorio icon mini-sprite-sheet png's.

cellularmitosis /
Last active March 7, 2024 03:43
Some notes on Factorio

Factorio notes

Some notes on the game Factorio.

Pre-belt Engineering

Red Science

Stage 1:

cellularmitosis / Makefile
Last active August 14, 2023 09:47
'Hello, world!' HTTP/1.1 servers in C
serve: serve.c
gcc -std=c99 -Wall -Werror -O3 -o serve serve.c
rm -f serve
.PHONY: clean
cellularmitosis / Makefile
Created May 4, 2023 04:35
Snake in C and SDL 1.2, revisited
SDL=$(shell sdl-config --cflags --libs)
default: snake run
run: snake
snake: snake.c
gcc -std=c99 -Wall -Werror -O2 $(SDL) snake.c -o snake