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
#include <v8.h> | |
#include <node.h> | |
#include <alloca.h> | |
#include <node_buffer.h> | |
using namespace v8; | |
using namespace node; | |
static Handle<Value> dummy(const Arguments& args) { | |
HandleScope scope; |
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
### fs.utimes(path, atime, mtime, [callback]) | |
Asynchronous utimes(2). Updates the last access and last modified timestamps of | |
the file pointed to by `path`. | |
`atime` and `mtime` may be a (fractional) UNIX timestamp or a Date object. | |
No arguments other than a possible exception are given to the completion callback. | |
### fs.futimes(fd, atime, mtime, [callback]) |
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
From 360b7b57b2e0261f6ba84f023fdc31f4f6e514f2 Mon Sep 17 00:00:00 2001 | |
From: Ben Noordhuis <[email protected]> | |
Date: Mon, 1 Nov 2010 20:34:11 +0100 | |
Subject: [PATCH] Fix 'undefined symbol' errors when loading native modules. | |
--- | |
Makefile | 2 +- | |
1 files changed, 1 insertions(+), 1 deletions(-) | |
diff --git a/Makefile b/Makefile |
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
From 1ee950ffaccdf61c102b11990a07a22038a1ec7a Mon Sep 17 00:00:00 2001 | |
From: Ben Noordhuis <[email protected]> | |
Date: Fri, 5 Nov 2010 23:27:55 +0100 | |
Subject: [PATCH] Ensure that non-ASCII characters in the status line are allowed. | |
--- | |
test.c | 23 +++++++++++++++++++++++ | |
1 files changed, 23 insertions(+), 0 deletions(-) | |
diff --git a/test.c b/test.c |
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
From 047a5e55a0ec54ff517fb2f0f6eac426e26f4127 Mon Sep 17 00:00:00 2001 | |
From: Ben Noordhuis <[email protected]> | |
Date: Mon, 8 Nov 2010 11:57:47 +0100 | |
Subject: [PATCH] Backport base64 encoder/decoder changes from master to v0.2. | |
--- | |
src/node_buffer.cc | 78 ++++++++++++++++++++++++++++++++++++--------------- | |
1 files changed, 55 insertions(+), 23 deletions(-) | |
diff --git a/src/node_buffer.cc b/src/node_buffer.cc |
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
// | |
// test case: fs.readSync() eventually starts busy-looping in C++ land | |
// | |
// create a writer with `while true; do date >> /tmp/time.log; sleep 1; done` | |
// then run `node tail.js /tmp/time.log` | |
// | |
Buffer = require('buffer').Buffer; | |
fs = require('fs'); | |
b = new Buffer(256); |
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
http = require('http'); | |
fs = require('fs'); | |
fd = fs.openSync(__filename, 'r'); | |
size = fs.fstatSync(fd).size; | |
server = http.createServer(function(req, res) { | |
res.writeHead(200, { | |
'Content-Length': size, | |
'Content-Type': 'text/plain' |
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
s = require('http').createServer(function(req, res) { | |
res.writeHead(200, {'Content-Length':0}); | |
res.end(); | |
}); | |
s.listen(8080); |
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
http = require('http'); | |
client = http.createClient(80, 'www.google.com'); | |
req = client.request('POST', '/', {'Content-Type':'application/x-www-form-urlencoded'}); | |
req.on('response', console.log); | |
req.end(); |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <assert.h> | |
#include <sys/select.h> | |
#include <curl/curl.h> | |
#define IMAP_URL "imap://testuser:testuser@localhost/Drafts" |
OlderNewer