Skip to content

Instantly share code, notes, and snippets.

View cellularmitosis's full-sized avatar

Jason Pepas cellularmitosis

View GitHub Profile
@cellularmitosis
cellularmitosis / Makefile
Last active August 14, 2023 09:47
'Hello, world!' HTTP/1.1 servers in C
View Makefile
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
View Makefile
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
View Makefile
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
@cellularmitosis
cellularmitosis / README.md
Last active August 14, 2023 02:39
Scheme man pages
View README.md
@cellularmitosis
cellularmitosis / main.m
Created December 29, 2022 02:36
A trivial inches-to-mm converter application for OS X Tiger.
View main.m
//
// main.m
// Project1
//
// Created by Mac User on 12/22/22.
// Copyright __MyCompanyName__ 2022. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@cellularmitosis
cellularmitosis / README.md
Last active October 31, 2023 09:52
Arduino math timings (Pro Micro / ATMega32u4 5V 16MHz)
View README.md

Blog 2022/10/18

<- previous | index | next ->

Arduino math timings (Pro Micro / ATMega32u4 5V 16MHz)

I threw together a quick series of Arduino sketches to measure the relative performance

@cellularmitosis
cellularmitosis / README.md
Last active October 1, 2022 07:08
"EZOFF": Easy offsets and keepouts for Marlin firmware
View README.md
@cellularmitosis
cellularmitosis / README.md
Last active October 1, 2022 07:08
Creality Ender 3 End-stop Capacitors (C5, C6, C7)
View README.md

Blog 2022/9/18

<- previous | index | next ->

Creality Ender 3 End-stop Capacitors (C5, C6, C7)

In late 2018, the Creality Ender 3 shipped with the Melzi 1.1.3 board:

@cellularmitosis
cellularmitosis / README.md
Last active October 18, 2023 09:02
Arduino LCD display for HP 34401A
View README.md