Skip to content

Instantly share code, notes, and snippets.

@uarun
uarun / about.md
Created April 12, 2012 21:39 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@uarun
uarun / minscalaactors.scala
Created April 13, 2012 04:18 — forked from viktorklang/minscalaactors.scala
Minimalist Scala Actors
©2012 Viktor Klang
object Actor {
import java.util.concurrent.{ConcurrentLinkedQueue, Executor}
import java.util.concurrent.atomic.{AtomicBoolean}
type Behavior = Any => Effect
sealed trait Effect { def getOrElse(old: Behavior): Behavior }
case object Stay extends Effect { def getOrElse(old: Behavior): Behavior = old }
case class Become(like: Behavior) extends Effect { def getOrElse(old: Behavior): Behavior = like }
@uarun
uarun / build.gradle
Last active December 11, 2015 08:58 — forked from rodionmoiseev/gist:2484934
Gradle build for Play 2
apply plugin: 'java'
apply plugin: 'scala'
// For those using Eclipse or IntelliJ IDEA
apply plugin: 'eclipse'
apply plugin: 'idea'
def findPlay20(){
def pathEnvName = ['PATH', 'Path'].find{ System.getenv()[it] != null }
for(path in System.getenv()[pathEnvName].split(File.pathSeparator)){
for(playExec in ['play.bat', 'play.sh', 'play']){