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). |
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
--- | |
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
// docker run -d -p 8080:8080 -v /git/myproj:/tmp/here wernight/phantomjs phantomjs /tmp/here/renderpage.js | |
var system = require('system'); | |
var fs = require('fs'); | |
var webserver = require('webserver'); | |
var args = system.args; | |
var page = require('webpage').create(); | |
phantom.onError = function(msg, trace) { |
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
### Keybase proof | |
I hereby claim: | |
* I am mhowlett on github. | |
* I am mhowlett (https://keybase.io/mhowlett) on keybase. | |
* I have a public key whose fingerprint is F551 3FA0 3800 AFAA 67DD EF5C 0144 9978 76EE BE4C | |
To claim this, I am signing this object: |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using RdKafka; | |
namespace AdvancedConsumer | |
{ | |
public class Program | |
{ |
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": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "SimpleProducer", | |
"type": "coreclr", | |
"request": "launch", | |
"preLaunchTask": "build", | |
"program": "${workspaceRoot}/examples/SimpleProducer/bin/Debug/netcoreapp1.0/SimpleProducer.dll", | |
"args": ["localhost:9092", "mytt"], |
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
#!/usr/local/bin/python | |
with open ("/git/confluent-kafka-dotnet/src/Confluent.Kafka/project.json", "r") as myfile: | |
data = myfile.readlines() | |
out = [] | |
for line in data: | |
line2 = line[:-1] | |
if "net451" in line2: | |
if line2[0:2] == "/*": |
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
package main | |
import ( | |
"context" | |
"flag" | |
"math/rand" | |
crand "crypto/rand" | |
"os" | |
"time" | |
"log" |
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
using System; | |
using System.Text; | |
using System.Collections.Generic; | |
using Confluent.Kafka; | |
using Confluent.Kafka.Serialization; | |
namespace Issue470 | |
{ | |
class Program |
OlderNewer