Skip to content

Instantly share code, notes, and snippets.

Jonas Dohse dohse

Block or report user

Report or block dohse

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View rebasematic.js
#!/usr/bin/env node
var assert = require('assert');
var childProcess = require('child_process');
var express = require('express');
var request = require('request');
var app = express();
View gist:8005532
var express = require('express');
var subApp = express();
subApp.get('/', function(req, res, next) {
res.send('Hallo Welt');
});
var app = express();
@dohse
dohse / biddingAgentEx.js
Last active Dec 16, 2015
RTBKit bidding agent in node
View biddingAgentEx.js
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);
@dohse
dohse / monad.c
Created Oct 24, 2011
C monad example
View monad.c
#define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
typedef void *(*aquire) (void *context);
struct IO {
aquire aquire;
You can’t perform that action at this time.