This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (request.method == 'POST') { | |
var data = ''; | |
request.on('data', function(d) { data += d; }); | |
request.on('end', function() { console.log(data); }); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
NewerOlder