Generated from ‘List of programming languages by type’ from Wikipedia: http://en.wikipedia.org/wiki/Categorical_list_of_programming_languages
- Reflective languages
- Machine languages
| App = Ember.Application.create(); | |
| App.ApplicationRoute = Ember.Route.extend({ | |
| model: function() { | |
| return DATA; | |
| } | |
| }); | |
| App.PieChartComponent = Ember.Component.extend({ | |
| tagName: 'svg', |
| var express = require('express') | |
| , app = express.createServer() | |
| , io = require('socket.io').listen(app); | |
| app.use(express.bodyParser()); | |
| app.listen(13002); | |
| var connections = {} |
| 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"); |
| // stupid comment | |
| #include <string> | |
| #include <iostream> | |
| #include <sstream> | |
| #include <memory> | |
| #include <thread> | |
| #include <future> | |
| #include <ratio> | |
| #include <sstream> | |
| #include <boost/range/irange.hpp> |
| 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); |
| #!/bin/bash | |
| # node.js using PPA (for statsd) | |
| sudo apt-get install python-software-properties | |
| sudo apt-add-repository ppa:chris-lea/node.js | |
| sudo apt-get update | |
| sudo apt-get install nodejs npm | |
| # Install git to get statsd | |
| sudo apt-get install git |
| #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); |
| #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); |