Skip to content

Instantly share code, notes, and snippets.

View Enichan's full-sized avatar

Emma Maassen Enichan

View GitHub Profile
@Enichan
Enichan / index.html
Last active December 17, 2022 15:56
Mastodon redirect HTML template
<!DOCTYPE html>
<html lang="en">
<!--
Just search and replace the following tags:
{name} replace with your printed name (ex 'Elon Musk')
{image-url} replace with a 4:3 image, presumably your avatar
{twitter-username} replace with your twitter username (ex 'elonmusk')
{profile-url} replace with your mastodon profile url (ex 'https://mastodon.social/@Gargron')
@Enichan
Enichan / DoubleDabble.cs
Created December 18, 2022 12:38
Double dabble algorithm in C#
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DoubleDabble {
class Program {
static void Main(string[] args) {
@Enichan
Enichan / test.bas
Last active December 25, 2022 22:50
160x120 256 color VGA display mode in QBasic 1.1
DEFINT A-Z
' this program sets 160x120 256 color VGA mode in QB1.1
' downsides: qbasic drawing commands absolutely don't work correctly
' trick qbasic into thinking we're in VGA mode
SCREEN 13
' set EGA mode 0Dh through int 10h in assembly
' this is equivalent to SCREEN 7 and using SCREEN 7 will work, but
@Enichan
Enichan / jrpg.js
Created September 17, 2023 16:54
Tiny Tiled Map Editor binary exporter plugin
var binaryFormat = {
name: "jRPG binary format",
extension: "bin",
write: function(map, fileName) {
var m = {
width: map.width,
height: map.height,
layers: []
};