This file contains hidden or 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
Certificate: | |
Data: | |
Version: 3 (0x2) | |
Serial Number: | |
04:00:00:00:00:01:31:89:c6:44:c9 | |
Signature Algorithm: sha256WithRSAEncryption | |
Issuer: OU=GlobalSign Root CA - R3, O=GlobalSign, CN=GlobalSign | |
Validity | |
Not Before: Aug 2 10:00:00 2011 GMT | |
Not After : Aug 2 10:00:00 2022 GMT |
This file contains hidden or 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
'use strict'; | |
var common = require('../common'); | |
var assert = require('assert'); | |
if (!common.hasCrypto) { | |
console.log('1..0 # Skipped: missing crypto'); | |
return; | |
} | |
var tls = require('tls'); |
This file contains hidden or 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
var stream = require('stream'); | |
var express = require('express'); | |
var multiparty = require('multiparty'); | |
var app = express(); | |
var maxlimit = 2 * 1024 * 1024; // 2M byte | |
var postHandler = function(req, res, next) { | |
var length = 0; | |
var buflist = []; | |
var content_length = req.get('content-length'); |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Ajax GET Test</title> | |
<script> | |
window.addEventListener('DOMContentLoaded', function() { | |
if (window.chrome.loadTimes().npnNegotiatedProtocol) { | |
var protocol = document.getElementById("protocol"); | |
protocol.innerHTML = window.chrome.loadTimes().npnNegotiatedProtocol; |
This file contains hidden or 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 <unistd.h> | |
#include <pthread.h> | |
#include <queue> | |
#include "uv.h" | |
using namespace std; | |
uv_loop_t *loop; |
This file contains hidden or 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 "uv.h" | |
uv_loop_t *loop; | |
uv_async_t async; | |
static int closed = 0; | |
static int async_called = 0; | |
void print_progress(uv_async_t *handle, int status /*UNUSED*/) { |
This file contains hidden or 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
var http = require('http'); | |
var WebSocketServer = require('websocket').server; | |
var port = 8080; | |
process.stdin.resume(); | |
process.stdin.setEncoding('utf8'); | |
var index = '<!DOCTYPE html><html><head><title>stdin-to-ws</title></head>' | |
+ '<body><div id="msg"></div><script>' | |
+ 'var msg = document.getElementById("msg");' | |
+ 'var ws = new WebSocket("ws:localhost:8080/stdin-to-ws", "stdin-to-ws");' |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Standalone.sample</title> | |
<script src="http://localhost:8080/socket.io/socket.io.js"></script> | |
<script type="text/javascript"> | |
var appname = io.connect('http://localhost:8080/appname'); | |
appname.on('available_channel', function(channels) { | |
console.log('channels', channels); | |
// リスト先頭のチャネルIDを利用する |
This file contains hidden or 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
var net = require('net'); | |
var maxreq = 1000; | |
var para = 10; | |
var port = 12345; | |
var counter = 0; | |
var server = net.createServer(function(socket) { | |
if (counter === maxreq) server.close(); | |
}).listen(port, function() { | |
function client_connect() { | |
if (counter++ >= maxreq) return; |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Object.observer() demo4</title> | |
<style> | |
table, td, th { | |
border: 2px #000000 solid; | |
} | |
</style> |
NewerOlder