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
M2_HOME=/usr/local/apache-maven/apache-maven-3.2.3 | |
M2=$M2_HOME/bin | |
PATH=$M2:$PATH |
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
sudo yum install -y git |
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
git clone https://github.com/personium/io |
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
cd io | |
mvn compile |
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
[INFO] ------------------------------------------------------------------------ | |
[INFO] Reactor Summary: | |
[INFO] | |
[INFO] dc1-es-api-1_2 ..................................... SUCCESS [ 22.188 s] | |
[INFO] dc1-common ......................................... SUCCESS [ 0.969 s] | |
[INFO] dc1-logback Maven Module ........................... SUCCESS [ 7.718 s] | |
[INFO] dc1-core Maven Webapp .............................. SUCCESS [ 18.645 s] | |
[INFO] dc1-client ......................................... SUCCESS [ 38.538 s] | |
[INFO] dc1-engine-extension-common ........................ SUCCESS [ 0.710 s] | |
[INFO] dc1-engine Maven Webapp ............................ FAILURE [ 5.669 s] |
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
var _ = require("underscore"); | |
var Backbone = require("backbone"); | |
require("./mymixin"); | |
describe("Backbone.Model.mixin", function () { | |
it("should mixin MyInterface's methods into MyModel", function () { | |
var MyModel = Backbone.Model.extend({ | |
initialize: function () {} | |
}); |
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
var _ = require("underscore"); | |
var Backbone = require("backbone"); | |
Backbone.Model.mixin = function(from) { | |
var to = this.prototype; | |
_.defaults(to, from); | |
extendMethod(to, from, "initialize"); | |
}; |
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
var _ = require("underscore"); | |
var Backbone = require("backbone"); | |
var MyInterface = { | |
myMethod: function () { | |
return "myMethod"; | |
} | |
}; | |
var MyModel = Backbone.Model.extend( |
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 <uv.h> | |
#include "timer.h" | |
static void timer_cb(uv_timer_t* handle) { | |
Timer* timer = static_cast<Timer*>(handle->data); | |
timer->InvokeCallback(); | |
if (handle->repeat == 0) { | |
delete timer; | |
} |
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 <v8.h> | |
#include <uv.h> | |
using namespace v8; | |
class Timer { | |
public: | |
Timer( | |
Isolate* isolate, | |
Handle<Function> callback, |