Skip to content

Instantly share code, notes, and snippets.

View pagameba's full-sized avatar

Paul Spencer pagameba

View GitHub Profile
import Options
import sys
from os import unlink, symlink, popen
from os.path import exists
srcdir = "."
blddir = "build"
VERSION = "0.0.1"
def set_options(opt):
if (request.method == 'POST') {
var data = '';
request.on('data', function(d) { data += d; });
request.on('end', function() { console.log(data); });
}
static int EIO_AfterDrawMap(eio_req *req) {
HandleScope scope;
drawmap_request *drawmap_req =(drawmap_request *)req->data;
ev_unref(EV_DEFAULT_UC);
drawmap_req->map->Unref();
Local<Value> argv[2];
argv[0] = Local<Value>::New(Null());
if (drawmap_req->data != NULL) {
Buffer * buffer = Buffer::New(drawmap_req->data, drawmap_req->size, FreeImageBuffer, NULL);
static int EIO_AfterDrawMap(eio_req *req) {
HandleScope scope;
drawmap_request *baton =(drawmap_request *)req->data;
ev_unref(EV_DEFAULT_UC);
baton->map->Unref();
Local<Value> argv[1];
Buffer * buffer = Buffer::New(baton->data, baton->size, FreeImageBuffer, NULL);
argv[0] = buffer;