See also Resume
See also Tech Links
Some notes on the game Factorio.
Stage 1:
Blog 2020/9/30
<- previous | index | next ->
Let's simulate a zener diode voltage regulator using LTspice.
a.out: sudoku.c | |
gcc -std=c89 -Wall -Werror -Os sudoku.c -o a.out | |
ccbench: | |
@cat /proc/cpuinfo | grep 'model name' | head -n1 | |
@tcc -v || true | |
@gcc --version | head -n1 | |
@echo | |
@tcc sudoku.c | |
time tcc sudoku.c 2>&1 && mv a.out a.out.tcc |
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 |
Here is a script I use to crop out 64x64 item icons from the Factorio icon mini-sprite-sheet png's.
Blog 2022/9/26
<- previous | index | next ->
The Marlin 3D printer firmware project has support for setting travel limits:
import UIKit | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { | |
let window = UIWindow(frame: UIScreen.main.bounds) |
Blog 2019/9/1
<- previous | index | next ->
When implementing a regex-based lexer / tokenizer, coming up with a regex which matches string literals can be a bit tricky.
Blog 2020/4/19
<- previous | index | next ->
I threw together a few trivial benchmarks to compare the rect filling performance of golang vs. python.