Skip to content

Instantly share code, notes, and snippets.

View lee2sman's full-sized avatar

Lee T lee2sman

  • W/O/R/L/D/W/I/D/E
View GitHub Profile
@lee2sman
lee2sman / blog-serve.fish
Last active August 14, 2025 01:01
A fish function to automatically detect which static site server i'm in and run the correct build/serve command.
#!/usr/bin/env fish
function blog-serve
set current_dir (basename (pwd))
# Directory-specific detection
switch $current_dir
case nosebook
echo "🌸 Detected Jekyll blog (nosebook)"
bundle exec jekyll serve --baseurl ''
@lee2sman
lee2sman / p5js-to-l5-converter.sh
Created August 1, 2025 01:06
A p5.js to L5 script converter - used for converting reference and example code from the p5 site for L5
#!/bin/bash
# p5.js to L5 Converter
# Usage: ./p5js-to-l5-converter.sh input.js [output.lua]
if [ $# -eq 0 ]; then
echo "Usage: $0 input.js [output.lua]"
echo "Converts p5.js JavaScript files to L5 Lua syntax"
exit 1
fi
@lee2sman
lee2sman / tweetjam.md
Created May 14, 2025 06:07 — forked from kometbomb/tweetjam.md
PICO-8 tweetjam stuff

PICO-8 size optimization stuff for tweetcarts

Here are some simple ways to make your PICO-8 code fit in 140 280 characters (as in the #tweetjam #tweetcart craze). I did not invent these, I merely observed and collected them from the tweetjam thread.

LUA syntax stuff

  • Use single character variable names
  • Use x=.1 and x=.023, not x=0.1 or x=0.023
  • x=1/3 is shorter than x=.3333
  • You don't need to separate everything with spaces or write them on their own lines, e.g. circ(x,y,1)pset(z,q,7) works just as well
@lee2sman
lee2sman / game.txt
Created April 6, 2025 17:28
flickgame
{"gameLink":"www.flickgame.org","activeIndex":12,"canvasses":[[67,"0",2,"f",4,"0",1,"e",4,"f",4,"0",1,"6",1,"f",4,"e",2,"0",1,"2",4,"0",4,"e",3,"0",1,"e",111,"0",1,"f",11,"0",1,"e",2,"f",4,"0",2,"f",2,"e",1,"0",4,"6",6,"e",2,"1",1,"2",5,"1",3,"e",2,"1",3,"e",2,"0",1,"6",106,"0",2,"f",3,"0",1,"f",4,"0",3,"f",1,"e",1,"f",5,"0",5,"e",3,"6",7,"e",3,"1",1,"e",4,"1",3,"e",2,"1",3,"e",1,"1",3,"6",104,"0",3,"f",1,"0",3,"f",2,"0",7,"f",3,"0",2,"6",5,"e",2,"6",9,"e",1,"1",3,"e",4,"1",1,"e",3,"1",3,"e",3,"2",2,"6",103,"0",4,"f",1,"0",2,"f",1,"0",5,"f",3,"e",5,"6",6,"e",1,"1",4,"e",1,"1",4,"e",1,"1",3,"e",6,"1",1,"2",4,"e",1,"1",1,"6",1,"1",3,"6",99,"0",14,"f",5,"e",5,"6",6,"e",1,"1",8,"e",1,"1",4,"e",1,"2",3,"1",2,"2",1,"1",4,"e",4,"1",3,"6",99,"0",6,"f",1,"0",3,"1",8,"e",3,"6",2,"1",20,"e",4,"2",3,"1",4,"e",5,"1",3,"6",98,"0",3,"f",1,"e",2,"f",1,"1",3,"6",8,"e",4,"1",21,"e",2,"2",4,"1",5,"e",6,"1",3,"6",96,"0",1,"e",2,"f",4,"e",4,"6",8,"e",4,"1",14,"e",1,"1",6,"e",1,"1",1,"2",4,"1",5,"e",6,"1",4,"6",85,"0",6,"f",4,"0",
@lee2sman
lee2sman / game.txt
Created April 6, 2025 17:24
flickgame
{"gameLink":"www.flickgame.org","activeIndex":11,"canvasses":[[67,"0",2,"f",4,"0",1,"e",4,"f",4,"0",1,"6",1,"f",4,"e",2,"0",1,"2",4,"0",4,"e",3,"0",1,"e",111,"0",1,"f",11,"0",1,"e",2,"f",4,"0",2,"f",2,"e",1,"0",4,"6",6,"e",2,"1",1,"2",5,"1",3,"e",2,"1",3,"e",2,"0",1,"6",106,"0",2,"f",3,"0",1,"f",4,"0",3,"f",1,"e",1,"f",5,"0",5,"e",3,"6",7,"e",3,"1",1,"e",4,"1",3,"e",2,"1",3,"e",1,"1",3,"6",104,"0",3,"f",1,"0",3,"f",2,"0",7,"f",3,"0",2,"6",5,"e",2,"6",9,"e",1,"1",3,"e",4,"1",1,"e",3,"1",3,"e",3,"2",2,"6",103,"0",4,"f",1,"0",2,"f",1,"0",5,"f",3,"e",5,"6",6,"e",1,"1",4,"e",1,"1",4,"e",1,"1",3,"e",6,"1",1,"2",4,"e",1,"1",1,"6",1,"1",3,"6",99,"0",14,"f",5,"e",5,"6",6,"e",1,"1",8,"e",1,"1",4,"e",1,"2",3,"1",2,"2",1,"1",4,"e",4,"1",3,"6",99,"0",6,"f",1,"0",3,"1",8,"e",3,"6",2,"1",20,"e",4,"2",3,"1",4,"e",5,"1",3,"6",98,"0",3,"f",1,"e",2,"f",1,"1",3,"6",8,"e",4,"1",21,"e",2,"2",4,"1",5,"e",6,"1",3,"6",96,"0",1,"e",2,"f",4,"e",4,"6",8,"e",4,"1",14,"e",1,"1",6,"e",1,"1",1,"2",4,"1",5,"e",6,"1",4,"6",85,"0",6,"f",4,"0",
@lee2sman
lee2sman / game.txt
Created April 6, 2025 17:23
flickgame
{"gameLink":"www.flickgame.org","activeIndex":12,"canvasses":[[67,"0",2,"f",4,"0",1,"e",4,"f",4,"0",1,"6",1,"f",4,"e",2,"0",1,"2",4,"0",4,"e",3,"0",1,"e",111,"0",1,"f",11,"0",1,"e",2,"f",4,"0",2,"f",2,"e",1,"0",4,"6",6,"e",2,"1",1,"2",5,"1",3,"e",2,"1",3,"e",2,"0",1,"6",106,"0",2,"f",3,"0",1,"f",4,"0",3,"f",1,"e",1,"f",5,"0",5,"e",3,"6",7,"e",3,"1",1,"e",4,"1",3,"e",2,"1",3,"e",1,"1",3,"6",104,"0",3,"f",1,"0",3,"f",2,"0",7,"f",3,"0",2,"6",5,"e",2,"6",9,"e",1,"1",3,"e",4,"1",1,"e",3,"1",3,"e",3,"2",2,"6",103,"0",4,"f",1,"0",2,"f",1,"0",5,"f",3,"e",5,"6",6,"e",1,"1",4,"e",1,"1",4,"e",1,"1",3,"e",6,"1",1,"2",4,"e",1,"1",1,"6",1,"1",3,"6",99,"0",14,"f",5,"e",5,"6",6,"e",1,"1",8,"e",1,"1",4,"e",1,"2",3,"1",2,"2",1,"1",4,"e",4,"1",3,"6",99,"0",6,"f",1,"0",3,"1",8,"e",3,"6",2,"1",20,"e",4,"2",3,"1",4,"e",5,"1",3,"6",98,"0",3,"f",1,"e",2,"f",1,"1",3,"6",8,"e",4,"1",21,"e",2,"2",4,"1",5,"e",6,"1",3,"6",96,"0",1,"e",2,"f",4,"e",4,"6",8,"e",4,"1",14,"e",1,"1",6,"e",1,"1",1,"2",4,"1",5,"e",6,"1",4,"6",85,"0",6,"f",4,"0",
@lee2sman
lee2sman / game.txt
Created April 6, 2025 17:22
flickgame
{"gameLink":"www.flickgame.org","activeIndex":2,"canvasses":[[67,"0",2,"f",4,"0",1,"e",4,"f",4,"0",1,"6",1,"f",4,"e",2,"0",1,"2",4,"0",4,"e",3,"0",1,"e",111,"0",1,"f",11,"0",1,"e",2,"f",4,"0",2,"f",2,"e",1,"0",4,"6",6,"e",2,"1",1,"2",5,"1",3,"e",2,"1",3,"e",2,"0",1,"6",106,"0",2,"f",3,"0",1,"f",4,"0",3,"f",1,"e",1,"f",5,"0",5,"e",3,"6",7,"e",3,"1",1,"e",4,"1",3,"e",2,"1",3,"e",1,"1",3,"6",104,"0",3,"f",1,"0",3,"f",2,"0",7,"f",3,"0",2,"6",5,"e",2,"6",9,"e",1,"1",3,"e",4,"1",1,"e",3,"1",3,"e",3,"2",2,"6",103,"0",4,"f",1,"0",2,"f",1,"0",5,"f",3,"e",5,"6",6,"e",1,"1",4,"e",1,"1",4,"e",1,"1",3,"e",6,"1",1,"2",4,"e",1,"1",1,"6",1,"1",3,"6",99,"0",14,"f",5,"e",5,"6",6,"e",1,"1",8,"e",1,"1",4,"e",1,"2",3,"1",2,"2",1,"1",4,"e",4,"1",3,"6",99,"0",6,"f",1,"0",3,"1",8,"e",3,"6",2,"1",20,"e",4,"2",3,"1",4,"e",5,"1",3,"6",98,"0",3,"f",1,"e",2,"f",1,"1",3,"6",8,"e",4,"1",21,"e",2,"2",4,"1",5,"e",6,"1",3,"6",96,"0",1,"e",2,"f",4,"e",4,"6",8,"e",4,"1",14,"e",1,"1",6,"e",1,"1",1,"2",4,"1",5,"e",6,"1",4,"6",85,"0",6,"f",4,"0",7
@lee2sman
lee2sman / game.txt
Created April 6, 2025 17:17
flickgame
{"gameLink":"www.flickgame.org","activeIndex":13,"canvasses":[[67,"0",2,"f",4,"0",1,"e",4,"f",4,"0",1,"6",1,"f",4,"e",2,"0",1,"2",4,"0",4,"e",3,"0",1,"e",111,"0",1,"f",11,"0",1,"e",2,"f",4,"0",2,"f",2,"e",1,"0",4,"6",6,"e",2,"1",1,"2",5,"1",3,"e",2,"1",3,"e",2,"0",1,"6",106,"0",2,"f",3,"0",1,"f",4,"0",3,"f",1,"e",1,"f",5,"0",5,"e",3,"6",7,"e",3,"1",1,"e",4,"1",3,"e",2,"1",3,"e",1,"1",3,"6",104,"0",3,"f",1,"0",3,"f",2,"0",7,"f",3,"0",2,"6",5,"e",2,"6",9,"e",1,"1",3,"e",4,"1",1,"e",3,"1",3,"e",3,"2",2,"6",103,"0",4,"f",1,"0",2,"f",1,"0",5,"f",3,"e",5,"6",6,"e",1,"1",4,"e",1,"1",4,"e",1,"1",3,"e",6,"1",1,"2",4,"e",1,"1",1,"6",1,"1",3,"6",99,"0",14,"f",5,"e",5,"6",6,"e",1,"1",8,"e",1,"1",4,"e",1,"2",3,"1",2,"2",1,"1",4,"e",4,"1",3,"6",99,"0",6,"f",1,"0",3,"1",8,"e",3,"6",2,"1",20,"e",4,"2",3,"1",4,"e",5,"1",3,"6",98,"0",3,"f",1,"e",2,"f",1,"1",3,"6",8,"e",4,"1",21,"e",2,"2",4,"1",5,"e",6,"1",3,"6",96,"0",1,"e",2,"f",4,"e",4,"6",8,"e",4,"1",14,"e",1,"1",6,"e",1,"1",1,"2",4,"1",5,"e",6,"1",4,"6",85,"0",6,"f",4,"0",
@lee2sman
lee2sman / game.txt
Created April 6, 2025 06:41
flickgame
{"gameLink":"www.flickgame.org","activeIndex":14,"canvasses":[[67,"0",2,"f",4,"0",1,"e",4,"f",4,"0",1,"6",1,"f",4,"e",2,"0",1,"2",4,"0",4,"e",3,"0",1,"e",111,"0",1,"f",11,"0",1,"e",2,"f",4,"0",2,"f",2,"e",1,"0",4,"6",6,"e",2,"1",1,"2",5,"1",3,"e",2,"1",3,"e",2,"0",1,"6",106,"0",2,"f",3,"0",1,"f",4,"0",3,"f",1,"e",1,"f",5,"0",5,"e",3,"6",7,"e",3,"1",1,"e",4,"1",3,"e",2,"1",3,"e",1,"1",3,"6",104,"0",3,"f",1,"0",3,"f",2,"0",7,"f",3,"0",2,"6",5,"e",2,"6",9,"e",1,"1",3,"e",4,"1",1,"e",3,"1",3,"e",3,"2",2,"6",103,"0",4,"f",1,"0",2,"f",1,"0",5,"f",3,"e",5,"6",6,"e",1,"1",4,"e",1,"1",4,"e",1,"1",3,"e",6,"1",1,"2",4,"e",1,"1",1,"6",1,"1",3,"6",99,"0",14,"f",5,"e",5,"6",6,"e",1,"1",8,"e",1,"1",4,"e",1,"2",3,"1",2,"2",1,"1",4,"e",4,"1",3,"6",99,"0",6,"f",1,"0",3,"1",8,"e",3,"6",2,"1",20,"e",4,"2",3,"1",4,"e",5,"1",3,"6",98,"0",3,"f",1,"e",2,"f",1,"1",3,"6",8,"e",4,"1",21,"e",2,"2",4,"1",5,"e",6,"1",3,"6",96,"0",1,"e",2,"f",4,"e",4,"6",8,"e",4,"1",14,"e",1,"1",6,"e",1,"1",1,"2",4,"1",5,"e",6,"1",4,"6",85,"0",6,"f",4,"0",
@lee2sman
lee2sman / readme.txt
Created November 25, 2024 06:54
Beats of Babylon (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html