Skip to content

Instantly share code, notes, and snippets.

View aeurielesn's full-sized avatar

Alexander Urieles aeurielesn

View GitHub Profile
# for usage: ruby timecard.rb --help
require 'rubygems'
require 'optparse'
# This requires the 'cyberfox-gchart' gem (0.5.4), as the standard
# gchart gem is woefully broken for this kind of graph. Broken to the
# point that it's an inherent design choice that doesn't work well for
# this kind of chart. I'm sure that the cyberfox-gchart gem won't
@aeurielesn
aeurielesn / gist:618782
Created October 10, 2010 00:46 — forked from anonymous/gist:618773
[eAthena] enhanced callnpcevent
BUILDIN_FUNC(callnpcevent)
{
int i, j;
const char *event_name = script_getstr(st, 2);
struct event_data *event = 0;
struct script_retinfo *ri;
event = strdb_get(ev_db, event_name);
if (!event)