Skip to content

Instantly share code, notes, and snippets.

View learosema's full-sized avatar
👋
Hello World!

Lea Rosema learosema

👋
Hello World!
View GitHub Profile
@learosema
learosema / .vimrc
Created January 17, 2015 17:35
My vim configuration
set nocp
set directory=~
source $VIMRUNTIME/mswin.vim
" Laden der GUI-Menues verhindern
if has("gui_running")
set guioptions-=m
set guioptions-=T
set guifont=Droid_Sans_Mono:h12:cANSI
endif
@learosema
learosema / README.md
Last active November 30, 2016 16:21
16 bit DOS assembly animation

Made for DOS/DOSBox. Compile via NASM: nasm -f bin -o anim.com anim.asm

License

COFFEE PUBLIC LICENSE (CPL)

@terabaud made this. You can do whatever you want with it. If we meet some day, and you think this stuff is worth it, you can buy me a coffee in return.

@learosema
learosema / README.md
Last active January 30, 2019 14:23
Quick and dirty wake on lan script

Simple php script that broadcasts a magic wake on lan packet with a given mac address. The accepted formattings of the mac adress parameter are xx:xx:xx:xx:xx:xx or xx-xx-xx-xx-xx-xx or without :/-.

##License

            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
                    Version 2, December 2004

Copyright (C) 2019 Lea Rosema

@learosema
learosema / Array.prototype.group.js
Last active January 30, 2019 15:37
Group table-like arrays by column
Array.prototype.group = function(column,i,r) {
for(r={},i=0;i<this.length;i++)
if (this[i][column]){
if(!r[this[i][column]])r[this[i][column]]=[]
r[this[i][column]].push(this[i])
}
return r
}
@learosema
learosema / README.md
Last active April 8, 2020 19:58
Node Express Guestbook API

A little Guestbook API in node express :)

This is a little guestbook API. It uses a JSON file as a database. And for laziness, I used synchronous writes. Yes, this is bad practice.

npm i express body-parser
node server
@learosema
learosema / README.md
Created May 22, 2020 21:27
LeaSans8bitMono

font

uses crt,playcd;
var cd:record
danz,drive:word;
mintrk,maxtrk,anztrk:byte;
traks:array[0..63] of longint;
len:array[0..63] of longint;
ttyp:array[0..63] of byte;
end;
i:integer; m,s:byte;
@learosema
learosema / README.md
Last active April 13, 2021 16:43
Simple animation using 16 bit dos assembly and mode 0x13 (320x200 with 256 colors)

Instructions

  • Download a DOS emulator like DOSBox
  • Get NASM
  • Compile with nasm -f bin -o anim.com anim.asm
  • Run anim.com and enjoy!

License

FRUIT TEA PUBLIC LICENSE (FTPL)

@learosema
learosema / README.md
Last active September 16, 2021 14:58
Rule 90 cellular automaton in x86 assembler.

One-dimensional cellular automaton written in x86 assembler for DOSBox, using the rule 90 algorithm. The algorithm was published 1983 by Stephen Wolfram.

##Compiling and running this gist

  1. Get DOSBox
  2. Get FreeDOS DEBUG
  3. Compile: debug < RULE90.ASM
  4. Run: RULE90.COM
  5. Customize it! For example, you can choose another rule in line 35
@learosema
learosema / README.md
Last active March 22, 2022 13:32
16 bit DOS assembly, circular rainbow pattern

Circular rainbow pattern

Made for DOS/DOSBox. Compile via NASM: nasm -f bin -o anim.com anim.asm

License

FRUIT TEA PUBLIC LICENSE (FTPL)

@lea_rosema made this. You can do whatever you want with it. If we meet some day, and you think this stuff is worth it, you can buy me a fruit tea in return.