Skip to content

Instantly share code, notes, and snippets.

View zbtnot's full-sized avatar
💥
undefined is not a function

Giorgio Arcamone zbtnot

💥
undefined is not a function
View GitHub Profile
@zbtnot
zbtnot / index.html
Last active March 5, 2024 01:54
Reading a file from C that was written from Javascript ( Emscripten )
<!DOCTYPE html>
<html lang="en">
<head>
<title>
A webassembly demo
</title>
</head>
<body>
<button id="load-lua">Click here to load the lua file</button>
<script type="module">
@zbtnot
zbtnot / Makefile
Created May 27, 2023 15:20
Miyoo Mini Plus / Ubuntu desktop makefile
# Building and uploading binaries to the mini is kinda tedious, so this helps facilitate local development
# assumes an ubuntu desktop with the SDL 1.2 dev packages installed
# i.e., `apt install libsdl1.2-dev libsdl-image1.2 libsdl-mixer1.2 libsdl-ttf2.0`
# then run `TARGET=ubuntu make` or `TARGET=miyoo make` as needed
MIYOO_CXX := arm-linux-gnueabihf-g++
MIYOO_PREFIX := /opt/miyoomini-toolchain/arm-linux-gnueabihf/libc
MIYOO_CXXFLAGS := -I$(MIYOO_PREFIX)/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
MIYOO_LDFLAGS := -L$(MIYOO_PREFIX)/usr/lib -lSDL -lSDL_image -lSDL_ttf -lSDL_mixer -lpthread
MIYOO_TARGET_EXEC := app.miyoo.bin