Skip to content

Instantly share code, notes, and snippets.

@phaller
phaller / gist:3604839
Created September 2, 2012 21:50
Fast Track to Akka (Sep 3-4): Training Materials
Slides:
https://www.dropbox.com/s/2j50hcqb8rk8x0i/fast-track-to-akka-preparations.pdf
https://www.dropbox.com/s/04beouos9bbhw2z/fast-track-to-akka.pdf
https://www.dropbox.com/s/fv8gtqs3p8h1dr6/fast-track-to-akka-part2.pdf
Solutions:
https://www.dropbox.com/s/ocxx0rf0wt07asa/training-akka-solutions.zip
Futures and Promises in Scala 2.10 (a recent talk):
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@viktorklang
viktorklang / minscalaactors.scala
Last active March 25, 2024 19:01
Minimalist Scala Actors
/*
Copyright 2012-2021 Viktor Klang
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@viktorklang
viktorklang / CQRS_ES_Actor.scala
Created February 1, 2011 15:05
CQRS and EventSourcing using Akka Actors
import scala.collection.mutable.ListBuffer
import akka.actor.{Actor,ActorRef}
import akka.actor.Actor._
import akka.routing.{ Listeners, Listen }
//Represents a domain event
trait Event
//A builder to create domain entities
trait EntityBuilder[Entity] {
@retronym
retronym / type-bounds.scala
Created December 16, 2009 11:17
Tour of Scala Type Bounds
class A
class A2 extends A
class B
trait M[X]
//
// Upper Type Bound
//
def upperTypeBound[AA <: A](x: AA): A = x