Skip to content

Instantly share code, notes, and snippets.

View wallabra's full-sized avatar

Gustavo Ramos Rehermann wallabra

View GitHub Profile
@wallabra
wallabra / MushMatch Music.rst
Last active June 6, 2019 22:08
Documentation for MushMatch (GZDoom) music.

MushMatch Music

MushMatch is a Mush-based gameplay ormat, introduced in 2018 as an Unreal Tournament gametype (the spotlight of GusPack 2), and that in 2019 will have a Sentient Mushes version (with planned Zandronum compatibility).

To accompany its diversity of situations is a special soundtrack, meant to represent many kinds of moments.

func int() PrintBottles(int bottles, float* myPointer, int%* iterListPtr) {
int iters;
while (> bottles, 0) {
array:append(*iterListPtr, bottles);
print(+ "There are ", (+ (set bottles, (- bottles, 1)), 1), " bottles on the wall! Take one, ");
set iters, + iters, 1;
set *myPointer, (* *myPointer, 2);
if (> bottles, 0) print(+ "there are ", bottles, " to go! \n");
else print("there are no more!\n\n");
@wallabra
wallabra / zenmap-traceroute.log
Created November 15, 2018 20:36
Me tracerouting to Hellomouse
Starting Nmap 7.60 ( https://nmap.org ) at 2018-11-15 18:31 -02
Nmap scan report for hellomouse.net (91.92.144.105)
Host is up (0.25s latency).
Other addresses for hellomouse.net (not scanned): 2a07:5741:0:12ee::1
rDNS record for 91.92.144.105: new.hellomouse.net
TRACEROUTE (using port 443/tcp)
HOP RTT ADDRESS
1 5.99 ms _gateway (192.168.0.1)
2 15.04 ms 10.116.192.1
@wallabra
wallabra / qappa.js
Created October 28, 2018 18:12
[WIP] Quadtree generation and pathfinding algorithm in JavaScript.
const QUAD_DIRS_DIAG = ['nw', 'ne', 'sw', 'se'];
const QUAD_DIRS_ORTHO = ['n', 'w', 's', 'e'];
const QUAD_DIRS_ORTHO_MIRROR = {
'n': 's',
's': 'n',
'w': 'e',
'e': 'w'
};
const QUAD_MIRRORED_DIRS = {
'n': ['sw', 'se'],
@wallabra
wallabra / mloader.js
Last active October 13, 2018 20:05
JavaScript Bilateral Module Loader (JS-BML) – the core of CrossCore (pun not intended)!
var AjaxRequest = null;
if ((typeof require) === 'undefined') {
if ((typeof XMLHttpRequest) !== 'undefined')
AjaxRequest = function () {
return new XMLHttpRequest();
};
else if ((typeof ActiveXObject) !== 'undefined')
AjaxRequest = function () {
@wallabra
wallabra / ndrl.py
Last active October 8, 2018 01:54
The internal NDRL structure.
import time
import threading
import base64
import io
import random
import socket
import struct
import queue
from typing import Any, Callable, Dict, Generic, Tuple, Type, TypeVar, Union
@wallabra
wallabra / serialization.py
Last active October 1, 2018 05:29
High-level serialization interface.
#!/usr/bin/env python
import os
import string
import random
try:
import simplejson as json
except ImportError:
import json
@wallabra
wallabra / prng.py
Created September 30, 2018 20:51
DS+DLSFR (Delta-State + Double-LSFR) PRNG
import itertools
def bit_slice(x, start, stop=None, relative=True):
if stop is None:
stop = 16
if not relative:
stop -= start
@wallabra
wallabra / betmanplans.md
Last active September 25, 2018 01:13
Plans for Betman

Betman plans

What we want for Betman (previously known as betsys.py): Classes: Competitor, Better, Game, System, Matchmaker, Outlet, Team, SystemInterface.

  • Each Competitor holds at least an ID, a human readable name, and subclasses may hold a tier, like in an ELO system.
  • Each Better holds an ID, a human readable name and a balance.
  • Each Team class holds an ID, a human readable name, and the involved competitors.
  • Each Game class (and its subclasses) holds the involved Competitors, and what Teams they pertain to.
  • The Matchmaker subclasses will find two competitors, create a Game subclass with them, and return the game.
@wallabra
wallabra / JgOfAdl.txt
Created September 21, 2018 19:17
Jungle of Adolescence
Jungle of Adolescence
Everyone is biased, I'll just leave society
And make my own little place where I am the law
And probably die of loneliness
(because I am this eluded, ice that doesn't thaw)