This file contains hidden or 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
| #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); |
This file contains hidden or 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 "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" |
This file contains hidden or 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
| App = Ember.Application.create(); | |
| App.ApplicationRoute = Ember.Route.extend({ | |
| model: function() { | |
| return DATA; | |
| } | |
| }); | |
| App.PieChartComponent = Ember.Component.extend({ | |
| tagName: 'svg', |
This file contains hidden or 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
| %% ------------------------------------------------------------------- | |
| %% | |
| %% 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 |
This file contains hidden or 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
| // stupid comment | |
| #include <string> | |
| #include <iostream> | |
| #include <sstream> | |
| #include <memory> | |
| #include <thread> | |
| #include <future> | |
| #include <ratio> | |
| #include <sstream> | |
| #include <boost/range/irange.hpp> |
This is not intended to be comprehensive or authoritative, just free online resources I've found valuable while learning more about Erlang.
https://web.archive.org/web/20070429181654/http://www.sics.se/~joe/
This file contains hidden or 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
| 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"); |
This file contains hidden or 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.bootstrap('bootstrap.json'); | |
| var agent = new RTBkit.BiddingAgent('myAgent', services); |
This file contains hidden or 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
| 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. |