Skip to content

Instantly share code, notes, and snippets.

#pragma once
#include "rtbkit/plugins/exchange/http_exchange_connector.h"
namespace RTBKIT {
struct SmaatoExchangeConnector : public HttpExchangeConnector {
SmaatoExchangeConnector(ServiceBase & owner, const std::string & name);
SmaatoExchangeConnector(const std::string & name,
std::shared_ptr<ServiceProxies> proxies);
#include "smaato_exchange_connector.h"
#include "rtbkit/plugins/bid_request/openrtb_bid_request.h"
#include "rtbkit/plugins/exchange/http_auction_handler.h"
#include "rtbkit/core/agent_configuration/agent_config.h"
#include "openrtb/openrtb_parsing.h"
#include "soa/types/json_printing.h"
#include <boost/any.hpp>
#include <boost/lexical_cast.hpp>
#include "jml/utils/file_functions.h"
@jgwhite
jgwhite / app.js
Created September 15, 2013 14:59
Ember SVG Example
App = Ember.Application.create();
App.ApplicationRoute = Ember.Route.extend({
model: function() {
return DATA;
}
});
App.PieChartComponent = Ember.Component.extend({
tagName: 'svg',
@bowrocker
bowrocker / riak_kv_vnode.erl
Created September 12, 2013 20:09
riak_kv_vnode.erl changes to compile with YZ merge problem
%% -------------------------------------------------------------------
%%
%% riak_kv_vnode: VNode Implementation
%%
%% Copyright (c) 2007-2010 Basho Technologies, Inc. All Rights Reserved.
%%
%% This file is provided to you under the Apache License,
%% Version 2.0 (the "License"); you may not use this file
%% except in compliance with the License. You may obtain
%% a copy of the License at
@jsulmont
jsulmont / C++11.cpp
Last active December 22, 2015 12:29
RTBkit Tracking. The command: c++ -std=c++11 -stdlib=libc++ -g -o C++11 ./C++11.cpp -lboost_thread-mt -lzmq&&./C++11 should produce something like: {"uuid":"90b6acb4-c24e-429d-9537-4fb9b09e2899","pid":"5","id":"6","tag":"dummy4_0x105b76000","t1":"172721123568","t2":"172721523753"} {"uuid":"90b6acb4-c24e-429d-9537-4fb9b09e2899","pid":"4","id":"5"…
// stupid comment
#include <string>
#include <iostream>
#include <sstream>
#include <memory>
#include <thread>
#include <future>
#include <ratio>
#include <sstream>
#include <boost/range/irange.hpp>
@macintux
macintux / erlang-resources.md
Last active December 15, 2025 22:31
Erlang online resources

This is not intended to be comprehensive or authoritative, just free online resources I've found valuable while learning more about Erlang.

Joe Armstrong's Swedish Institute of Computer Science homepage (Wayback Machine)

https://web.archive.org/web/20070429181654/http://www.sics.se/~joe/

Similar lists

BOOST_AUTO_TEST_CASE( test_service_zk_disconnect )
{
cerr << "Starting multiple service zk disconnect " << endl;
auto proxies = std::make_shared<ServiceProxies>();
// proxies->useZookeeper(ML::format("localhost:%d", zookeeper.getPort()));
proxies->useZookeeper(ML::format("localhost:2181"));
ZmqMultipleNamedClientBusProxy connection(proxies->zmqContext);
connection.init(proxies->config, "client1");
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.bootstrap('bootstrap.json');
var agent = new RTBkit.BiddingAgent('myAgent', services);
@kachayev
kachayev / channels_streams.erl
Last active December 20, 2015 13:19
Functional approach to deal with "google search" example from Rob Pike talk
search(Ch, Kind, Query) ->
timer:sleep(random:uniform(100) + 10),
enqueue(Ch, {Kind, Query}).
fake(Kind) ->
Ch = make(),
fun(Query) ->
spawn(?MODULE, search, [Ch, Kind, Query]), Ch
end.