Skip to content

Instantly share code, notes, and snippets.

View strobe's full-sized avatar

strobe strobe

View GitHub Profile
class RouterActor extends Actor with ActorLogging {
// Our worker Actor handles the work of the request.
var router = Router(RoundRobinRoutingLogic(), Vector.empty)
def receive = {
// router related handlers
case AddRoutee1(actor: ActorRef) =>
val a: ActorRefRoutee = ActorRefRoutee(actor)
router = router.addRoutee(a)
[root@broker ~]# oo-diagnostics
No request sent, we did not discover any nodes.FAIL: test_node_profiles_districts_from_broker
No node hosts found. Please install some,
or ensure the existing ones respond to 'oo-mco ping'.
OpenShift cannot host gears without at least one node host responding.
FAIL: run_script
oo-accept-broker had errors:
--BEGIN OUTPUT--
@strobe
strobe / Add Force Impulse to Actor
Last active February 15, 2016 20:55
UE4 snippets
const FVector Impulse = FVector(0.f, 0.f, JumpImpulse);
Ball->AddImpulse(Impulse);
@strobe
strobe / InSlickUserService.scala
Last active January 3, 2016 20:29
Simple Play 2, Slick 1.x UserService for SecureSocial
package service
import play.api.{Logger, Application}
import securesocial.core._
import securesocial.core.providers.Token
import models._
import models.UserIdentity
import models.UserToken
import scala.Some