Skip to content

Instantly share code, notes, and snippets.

💭
Rarely around

Felix felixplesoianu

View GitHub Profile
@felixplesoianu
felixplesoianu / land-lord.sh
Last active Oct 3, 2018
Shell script port of LAND/LORD, a clone of the classic game Hamurabi.
View land-lord.sh
#!/usr/bin/env bash
# This is a shell script port of LAND/LORD, by No Time To Play,
# itself a clone of the classic game Hamurabi. Use as you wish.
# Tested in bash, zsh and pdksh as of 2018-10-03. Beware of bugs.
typeset -i population land grain starved immigrants
typeset -i rats planted yield price year plague
population=100
@felixplesoianu
felixplesoianu / tb.lua
Created May 4, 2018
Beginning of a Tinycat Basic port to Lua.
View tb.lua
-- Minimal BASIC in Lua using only # and string.sub for lexing.
-- Goal is a compact implementation that can run on the Pico-8.
local char = {
digit = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"},
lower = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j",
"k", "l", "m", "n", "o", "p", "q", "r", "s", "t",
"u", "v", "w", "x", "y", "z"}
}
@felixplesoianu
felixplesoianu / voxeldesc.cpp
Last active May 2, 2018
UI mockup for a native port of VoxelDesc using FLTK.
View voxeldesc.cpp
#include <FL/Fl.H>
#include <FL/fl_ask.H>
#include <FL/Fl_File_Chooser.H>
#include <FL/Fl_Color_Chooser.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Pack.H>
#include <FL/Fl_Button.H>
#include <FL/Fl_Menu_Button.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Input.H>
@felixplesoianu
felixplesoianu / retro-sf-tower.stl
Last active Oct 7, 2017
Retro-futuristic building in a Brutalist style.
View retro-sf-tower.stl
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@felixplesoianu
felixplesoianu / tosm.css
Last active Sep 12, 2017
Custom CSS for the Sugarcane Twine format.
View tosm.css
@import url("https://fontlibrary.org/face/germano");
body {
Font-size: 15pt;
Font-family: GermanoRegular, sans-serif;
Background-color: white;
}
#passages {
Background-color: white;
Color: black;
@felixplesoianu
felixplesoianu / jungle.lua
Last active Oct 3, 2018
Silly little survival game you can play on a coffeebreak.
View jungle.lua
-- Lost in the Jungle: a silly little survival game.
-- 2017-07-06 Felix Pleşoianu <https://felix.plesoianu.ro/>
-- Use as you like, and enjoy!
math.randomseed(os.time())
local fatigue = 0
local health = 5
local bullets = 6
View star-spire-crazyhorse.stl
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@felixplesoianu
felixplesoianu / dialog-demo.go
Last active Feb 13, 2017
Simple API for writing Go apps with an Xdialog interface.
View dialog-demo.go
// Simple API for writing Go apps with an Xdialog interface.
package main
import "os/exec"
import "fmt"
import "strings"
const (
Progname = "Xdialog"
@felixplesoianu
felixplesoianu / hexgame.svg
Created Oct 27, 2016
Two triangle grid gameboards on A4 paper.
View hexgame.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@felixplesoianu
felixplesoianu / dualpane-mockup.py
Created Aug 14, 2016
UI mockup for a dual-pane file manager, in Python and Tkinter
View dualpane-mockup.py
#!/usr/bin/python3
import sys
if sys.version_info.major >= 3:
from tkinter import *
from tkinter import ttk
else:
from Tkinter import *
import ttk
You can’t perform that action at this time.