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/bin/env node | |
var assert = require('assert'); | |
var childProcess = require('child_process'); | |
var express = require('express'); | |
var request = require('request'); | |
var app = express(); |
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
var express = require('express'); | |
var subApp = express(); | |
subApp.get('/', function(req, res, next) { | |
res.send('Hallo Welt'); | |
}); | |
var app = express(); |
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
var RTBkit = require('./build/x86_64/bin/rtb.node'); | |
var services = require('./build/x86_64/bin/services.node'); | |
var zookeeperUri = "localhost:2181"; // must point to same Zookeeper as routers | |
var services = new services.ServiceProxies(); | |
services.useZookeeper(zookeeperUri); | |
services.logToCarbon('localhost:2003'); | |
var agent = new RTBkit.BiddingAgent("myAgent", services); |
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
#define _GNU_SOURCE | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
typedef void *(*aquire) (void *context); | |
struct IO { | |
aquire aquire; |