Skip to content

Instantly share code, notes, and snippets.

/**
* To get started:
* git clone https://github.com/twitter/algebird
* cd algebird
* ./sbt algebird-core/console
*/
/**
* Let's get some data. Here is Alice in Wonderland, line by line
*/
#!/usr/bin/env ruby
if `git diff --cached spec` =~ /,\s?(:focus|focus:\s?true|:focus\s?=>\s?true)/
puts "\e[31mPlease focus and remove your :focus tags before committing :)"
exit 1
end
/** Reads queue of new users to index */
class NewUserQueue extends Actor with ActorLogging { ... }
// Define our messages for the NewUserQueue
object NewUserQueue {
case class Listen(ref: ActorRef)
case class StopListen(ref: ActorRef)
case class NewUsers(users: Seq[User])
}