Skip to content

Instantly share code, notes, and snippets.

View pawel-kaminski-krk's full-sized avatar

Paweł Kamiński pawel-kaminski-krk

View GitHub Profile
@pawel-kaminski-krk
pawel-kaminski-krk / AddNewNodes
Created January 15, 2018 06:23
adding node to cluster in paralel
package io.carousel.it;
import com.google.common.io.Files;
import com.google.common.util.concurrent.Uninterruptibles;
import io.atomix.cluster.Node;
import io.atomix.core.Atomix;
import io.atomix.messaging.Endpoint;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@pawel-kaminski-krk
pawel-kaminski-krk / App.js
Created October 7, 2014 20:31
test module
angular
.module('appModule', [])
.controller('App', function($scope, Service) {
$scope.value = Service
.callServer()
.then(Server.process)
.catch(function() {
return 1;
})
})