Skip to content

Instantly share code, notes, and snippets.

View wallabra's full-sized avatar

Gustavo Ramos Rehermann wallabra

View GitHub Profile
@wallabra
wallabra / taskman.py
Last active September 21, 2018 16:52
Python 3 Taskman
import time
import collections
class TaskList(object):
def __init__(self, tasker, name=None):
self.tasker = tasker
self.name = name
self.tasks = collections.deque()
@wallabra
wallabra / what is a game.md
Last active October 6, 2018 03:39
What makes a game a game?

The Definition of Game

Something can be defined as a game when there one or more main agents, called players, have a set of actions they can do, that will alter the current state or the environment, and when, alongside that, there are two kinds of reward possible for such actions:

  • Positive reward: think grabbing a coin, a powerup or a life.
  • Negative reward: think being hit by an enemy, or just plain dying.

To help understand more about games, why they are so, and why (most) games are perfectly fine, we

@wallabra
wallabra / VOVolume.md
Last active September 7, 2018 23:30
How to create UT99 ladders

VOVolume Tutorial

VOVolumes can be confusing for those who have never mapped for Unreal Tournament 2003/2004, and even for those it'll confuse, because it's not an actual freeform volume, but a cylinder!

To explain it, we'll need to look at analogies.

What is an VOVolume? Or a VOVolumeModifier? Or a VOVolumeTrigger?

@wallabra
wallabra / actor.cpp
Last active August 28, 2018 03:03
Simple C++ actor system.
/*
* GAS - the Gustavo Actor System
* (with Event System included)
*
* Author: Gustavo Ramos "Gustavo6046" Rehermann.
* (c)2018. The MIT License.
*
* This system basically allows the creation of
* Actors (entities), in a game world. This does
* not handle 3D coordinates nor collision. I
@wallabra
wallabra / Medley of Danger.inform
Created August 14, 2018 02:48
Medley of Danger - a stub shooter interactive finction (aka text adventure) game.
[Please remember that, in order to compile, you'll most likely need the sounds and cover art. Do not redistribute pre-final compiled versions of the game without the author (Gustavo6046)'s permission!]
"Medley of Danger" by Gustavo Ramos Rehermann
Use American dialect. Use scoring.
Release along with cover art ("Medley of Danger").
Part 1 - Vibes of War
Section 1 - Basics of the world
@wallabra
wallabra / pollmeister.py
Last active July 27, 2018 18:35
IRC GAPS (Group-based Automatic Poll System) bot.
import nltk
import logging
import traceback
import textwrap
import yaml
import string
import time
from irc.bot import ServerSpec, SingleServerIRCBot
from threading import Thread
@wallabra
wallabra / brazilian.md
Created July 16, 2018 14:39
You know you're Brazilian when...

Welcome to the Brazilian Culture

...by Natacha Marins

...translated to Portuguese and converted to website by Gustavo Rehermann


You know you're being Brazilian when...

@wallabra
wallabra / aur-install.sh
Last active March 10, 2018 17:14
Install AUR packages automatically.
#!/bin/bash
#------------
# This script installs Arch User Repository packages automatically.
# Learn more here:
# https://wiki.archlinux.org/index.php/Arch_User_Repository
#
# (C)2018 Gustavo R. Rehermann. The MIT License.
#------------
@wallabra
wallabra / triangle.coffee
Created November 23, 2017 13:53
Make and print right triangles
class RightTriangle
constructor: (@angle) ->
@angle = (@angle % 90) * Math.PI / 180
print: (size) =>
res = ""
last = 0
ot = Math.tan(@angle)
for i in [0...size]
@wallabra
wallabra / BreadcrumbII.uc
Created November 6, 2017 17:31
A* search (beta) in Unreal Tournament (1999)
class BreadcrumbII extends Actor;
// A* Search stuff
var(Breadcrumb_Search) float AdditionalCost;
var(Breadcrumb_Search) float DistanceFactor;
var(Breadcrumb_Search) float HeuristicFactor;
// Breadcrumb Linking stuff
var(Breadcrumb_Linker) float MaxLinkDistance;
var(Breadcrumb_Linker) float MinLinkDistance;