Skip to content

Instantly share code, notes, and snippets.

View wallabra's full-sized avatar

Gustavo Ramos Rehermann wallabra

View GitHub Profile
@wallabra
wallabra / listcheck.py
Last active November 9, 2015 20:27
Module that checks sequences in lists in Python
def checklisting(inputlist, repts):
result = []
temprs = []
for z in input1:
ic = 1;
ic2 = 0;
if ic2 > (len(inputlist) / repts):
print 'Did not found'
# Python Audio List Module (PyMus)
#
# by Gustavo Ramos "Gustavo6046" Rehermann
#
# =========================
#
# Creates and manipulates .pyal files to store
# MIDI-style music data. Be warned they are big
# filetypes and may occupy some space.
@wallabra
wallabra / AS_ACS.acs
Last active March 1, 2016 19:18
Assault ACS code for Zandronum
#library "as_acs"
#include "zcommon.acs"
int PlayersReady[64];
int PR_Size = 0;
int GoalsCompleted = 0;
int NumGoals = 0;
int ECT;
int ASTIC;
bool bInitialized;
@wallabra
wallabra / ircbot.py
Created March 20, 2016 21:40 — forked from habnabit/ircbot.py
an example IRC bot using twisted
import sys
from twisted.internet import defer, endpoints, protocol, reactor, task
from twisted.python import log
from twisted.words.protocols import irc
class MyFirstIRCProtocol(irc.IRCClient):
nickname = 'MyFirstIrcBot'
@wallabra
wallabra / conditionalsplit.py
Created March 28, 2016 00:19
A simple function that splits a string IF and ONLY IF the condition returned by the call to the first argument is True.
from argparse import ArgumentError
def conditional_split(split_function, input_string, separator=None):
# splits the string into a list
result = input_string.split(separator)
# makes the check in each item of the list
for x in xrange(len(result) - 1):
try:
@wallabra
wallabra / DECORATE.decorate
Created July 4, 2016 15:31
DECORATE for the new upcoming GusEmpathy v1.2
//////////////////////////////////
// Standard Empathic Classes //
/////////////////@V@//////////////
// (for any case) |
//================A
actor PlayerIsEmpathic : Inventory
{
Inventory.Amount 1
Inventory.MaxAmount 1
}
@wallabra
wallabra / Ludacris-MoveBiatchLyrics
Created July 23, 2016 22:41
Ludacris lyrics for Move B****
Move bitch, get out the way
Get out the way bitch, get out the way
Move bitch, get out the way
Get out the way bitch, get out the way
OH NO! The fight's out
I'ma 'bout to punch yo...lights out
Get the FUCK back, guard ya grill
There's somethin' wrong, we can't stay still
I've been drankin' and bustin' two
@wallabra
wallabra / Gustavo r. Rehermann -- Back through the Lightyears.txt
Last active July 23, 2016 23:13
My poem, "Back through the Lightyears"
When the sun fades
And the night comes
The stars start to bright
And with them, the desire
To return to Tau Ceti someday
Because that's where's my home
Somewhere in this sea of dark
Everyone by here
@wallabra
wallabra / filline.sh
Last active August 14, 2016 17:01
WIP Bash renderer for a possible future platforming game 100% in Bash
#!/bin/bash
colsize=$(tput cols)
for n in {1..$((colsize / ${#1}))};
do
echo -n "$1"
done
@wallabra
wallabra / StrategicalVortex.uc
Last active February 26, 2021 03:15
UT99 air/gravity vortex source code
//=============================================================================
// StrategicalVortex.
//=============================================================================
class StrategicalVortex expands Effects;
// Physics variables
var(Vortex) float CyclesPerSecond;
var(Vortex) float ActionRadius;
var(Vortex) float ActionStrenght;
var(Vortex) float ActionMassIgnorance; /* This variable dictates how much is mass ignored during