Skip to content

Instantly share code, notes, and snippets.

Roman Grebennikov romangrebennikov

Block or report user

Report or block romangrebennikov

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
romangrebennikov / Main.scala
Last active Aug 29, 2015
scala-md5 for quest at
View Main.scala
package mdfive
import{Props, Actor, ActorSystem}
import org.apache.commons.codec.binary.Hex
import scala.annotation.tailrec
class RangeWorker(from:Array[Byte], to:Array[Byte]) extends Actor {
val digest = MessageDigest.getInstance("MD5")
romangrebennikov / list-avg
Created Feb 4, 2015
Scala's pimp-my-library example for list average
View list-avg
object ListAvg {
implicit class ListWithAverage(val list:List[Int]) {
def avg:Int = list.sum / list.size
import ListAvg._
val list = List(1,2,3)
You can’t perform that action at this time.