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
--- | |
version: '2' | |
services: | |
zk1: | |
image: confluentinc/cp-zookeeper:3.0.1 | |
ports: | |
- "22181:22181" | |
environment: | |
ZOOKEEPER_SERVER_ID: 1 | |
ZOOKEEPER_CLIENT_PORT: 22181 |
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
<html> | |
<script type="text/javascript"> | |
var testObj = function() { | |
var a = []; | |
var i = 0; | |
for (; i<10000000; ++i) { | |
a.push({ | |
time: Math.random(), | |
value: Math.random() | |
}); |
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 "nanomsg/nn.h" | |
#include "nanomsg/reqrep.h" | |
// On Ubuntu 12.04, the final lines printed by the server are all 0 (or quite possibly garbage) instead | |
// of cycling through numbers 0 to 126. For smaller values of N there is no problem. The Vagrantfile in | |
// https://github.com/mhowlett/NNanomsg should produce an environment in which this happens. | |
// Under Windows I think there is no problem (based on running a more complex application on both platforms). |
NewerOlder