Skip to content

Instantly share code, notes, and snippets.

View infogulch's full-sized avatar

Joe Taber infogulch

View GitHub Profile
@infogulch
infogulch / trusted.py
Created August 9, 2012 14:59
Before/After changes
"""
Adds the ability to 'trust' certain players, i.e. they cannot be votekicked
or rubberbanded.
Maintainer: mat^2 / hompy
"""
from commands import add, admin, get_player
import votekick
@infogulch
infogulch / slab6.c
Created July 27, 2012 23:42
Excerpt from slab6.c: savevox()
void savevox (char *filnam)
{
FILE *fil;
long i, x, y, z;
voxtype *vptr, *vptr2;
optimizexdimen();
optimizeydimen();
optimizezdimen();
AppendText(text) {
; appends text to the end without changing the entire contents or scrolling to the top
; thanks TheGood http://www.autohotkey.com/forum/topic56717.html
editHWND := ??
SendMessage, 0x000E, 0, 0,, ahk_id %editHWND% ;WM_GETTEXTLENGTH
SendMessage, 0x00B1, ErrorLevel, ErrorLevel,, ahk_id %editHWND% ;EM_SETSEL
SendMessage, 0x00C2, False, &text,, ahk_id %editHWND% ;EM_REPLACESEL
}
# On branch stable-v2
nothing to commit (working directory clean)
The previous cherry-pick is now empty, possibly due to conflict resolution.
If you wish to commit it anyway, use:
git commit --allow-empty
Otherwise, please use 'git reset'