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
(python279_1)oberstet@thinkpad-t430s:~/scm/crossbar/crossbarexamples/containers/failures$ make | |
crossbar start --cbdir=./working/.crossbar | |
2015-08-28T14:46:36+0200 [Controller 21216] __ __ __ __ __ __ __ __ | |
2015-08-28T14:46:36+0200 [Controller 21216] / `|__)/ \/__`/__`|__) /\ |__) |/ \ | |
2015-08-28T14:46:36+0200 [Controller 21216] \__,| \\__/.__/.__/|__)/~~\| \. |\__/ | |
2015-08-28T14:46:36+0200 [Controller 21216] | |
2015-08-28T14:46:36+0200 [Controller 21216] Version: 0.11.0 | |
2015-08-28T14:46:36+0200 [Controller 21216] | |
2015-08-28T14:46:36+0200 [Controller 21216] Starting from node directory /home/oberstet/scm/crossbar/crossbarexamples/containers/failures/working/.crossbar | |
2015-08-28T14:46:37+0200 [Controller 21216] Loading node configuration file '/home/oberstet/scm/crossbar/crossbarexamples/containers/failures/working/.crossbar/config.json' |
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
$ make install | |
npm install websocket | |
... | |
npm install when | |
... | |
$ cat foo.js | |
var websocket = require('websocket'); | |
console.log(websocket); |
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
from autobahn.asyncio.websocket import WebSocketServerProtocol, \ | |
WebSocketServerFactory | |
import asyncio | |
import json | |
def fastsquare(x): | |
return x * x | |
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
<!doctype html> | |
<html> | |
<body> | |
<script> | |
function carre(){ | |
ws = new WebSocket("ws://127.0.0.1:9000"); | |
ws.onopen = function(){ | |
console.log("Connection is open..."); | |
// Web Socket is connected, send data using send() |
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
/** | |
* POJO for Activity JSON objects. | |
*/ | |
public final static class Activity { | |
public String id; | |
public String label; | |
public Date created; | |
public Date modified; | |
public boolean is_visible; |
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
#include <iostream> | |
#include <string> | |
#define BOOST_THREAD_PROVIDES_FUTURE | |
#define BOOST_THREAD_PROVIDES_FUTURE_CONTINUATION | |
#include <boost/thread/future.hpp> | |
using namespace boost; |
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
oberstet@vbox-ubuntu1310:~/scm/AutobahnCpp$ scons | |
scons: Reading SConscript files ... | |
scons: done reading SConscript files. | |
scons: Building targets ... | |
clang++ -o build/test/test8 -stdlib=libc++ -pthread build/test/test8.o -L/home/oberstet/boost_1_55_0/stage/lib -L/home/oberstet/msgpack_clang/lib -lboost_thread -lboost_system | |
scons: done building targets. | |
oberstet@vbox-ubuntu1310:~/scm/AutobahnCpp$ ./build/test/test8 | |
done: | |
^C | |
oberstet@vbox-ubuntu1310:~/scm/AutobahnCpp$ ldd ./build/test/test8 |
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
auto f = session.call("com.mathservice.add2", {7, 33}); | |
f.then([](decltype(f) res) { | |
cerr << "Result: " << any_cast<uint64_t>(res.get()) << endl; | |
}); | |
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
$ python | |
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> from twisted.internet.endpoints import clientFromString | |
>>> from twisted.internet import reactor | |
>>> c = clientFromString(reactor, "tcp:127.0.0.1:8080") | |
>>> import twisted | |
>>> twisted.__version__ | |
'13.2.0' | |
>>> |
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
#include <iostream> | |
#define BOOST_THREAD_PROVIDES_FUTURE | |
#define BOOST_THREAD_PROVIDES_FUTURE_CONTINUATION | |
#define BOOST_THREAD_PROVIDES_FUTURE_WHEN_ALL_WHEN_ANY | |
#include <boost/thread/future.hpp> | |
using namespace boost; | |
int main() { |
OlderNewer