Skip to content

Instantly share code, notes, and snippets.

Avatar

Joe Taber infogulch

View GitHub Profile
@infogulch
infogulch / trusted.py
Created Aug 9, 2012
Before/After changes
View trusted.py
"""
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 Jul 27, 2012
Excerpt from slab6.c: savevox()
View slab6.c
void savevox (char *filnam)
{
FILE *fil;
long i, x, y, z;
voxtype *vptr, *vptr2;
optimizexdimen();
optimizeydimen();
optimizezdimen();
View gist:1235959
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
}
View gist:1224206
# 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'