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 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
cellularmitosis / README.md
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
cellularmitosis / README.md
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
cellularmitosis / README.md
Last active March 20, 2024 05:09
Factorio city blocks

Factorio City Blocks

I've been working on some simple city block designs:

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

So far I have city blocks for:

  • power plants
  • smelters
@cellularmitosis
cellularmitosis / README.md
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
cellularmitosis / factorio.md
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
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
clean:
rm -f serve
.PHONY: clean
@cellularmitosis
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: snake.c
gcc -std=c99 -Wall -Werror -O2 $(SDL) snake.c -o snake
@cellularmitosis
cellularmitosis / Makefile
Last active May 4, 2023 04:36
Simple gravity game in C and SDL 1.2
SDL=$(shell sdl-config --cflags --libs)
default: gravity run
run: gravity
./gravity
gravity: gravity.c
gcc -std=c99 -Wall -Werror $(SDL) gravity.c -o gravity