This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function chpwd() { | |
| moj_root=$(pwd -P 2>/dev/null || command pwd) | |
| while [ ! -e "$moj_root/.mojolly-env" ]; do | |
| moj_root=${moj_root%/*} | |
| if [ "$moj_root" = "" ]; then break; fi | |
| done | |
| if [ -r "$moj_root/.mojolly-env" ]; then source "$moj_root/mojolly-env"; fi | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sbt._ | |
| import Keys._ | |
| import java.io.PrintWriter | |
| import collection.mutable | |
| import scala.io.Source | |
| import Project.Initialize | |
| import sbt.classpath.ClasspathUtilities | |
| import io.backchat.sbt._ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class A { | |
| def a = "a" | |
| val aa = "aa" | |
| } | |
| object B { this: A => | |
| def b = "b" | |
| val bb = "bb" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| scala> trait A { | |
| | private val a = "a" | |
| | private lazy val b = "b" | |
| | private def c = "c" | |
| | private var d = "d" | |
| | } | |
| defined trait A | |
| scala> abstract class B { | |
| | val a = "aa" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.scalatra | |
| package akka | |
| import _root_.akka.util.duration._ | |
| import java.util.concurrent.atomic.AtomicBoolean | |
| import javax.servlet.{ AsyncContext, AsyncEvent, AsyncListener } | |
| import javax.servlet.http.{ HttpServletResponse, HttpServletRequest } | |
| import _root_.akka.dispatch.{ Await, Future } | |
| import _root_.akka.actor.{ Actor, ActorSystem } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.matygo.controllers | |
| import java.io.File | |
| import java.io.PrintWriter | |
| import java.io.StringWriter | |
| import scala.collection.JavaConversions.mapAsScalaMap | |
| import org.scalatra.ScalatraKernel.MultiParamsKey | |
| import org.scalatra.ContentTypeInferrer | |
| import org.scalatra.util.MultiMap | |
| import org.scalatra.CookieSupport | |
| import org.scalatra.RouteMatcher |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| trait CookieSupport extends Handler { | |
| self: ScalatraKernel => | |
| import CookieSupport._ | |
| private val _cookieOptions = new DynamicVariable[CookieOptions](null) | |
| implicit def cookieOptions: CookieOptions = _cookieOptions.value | |
| private val _cookies = new DynamicVariable[SweetCookies](null) | |
| def cookies = _cookies.value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| scala> class Blah extends DelayedInit { | |
| | def delayedInit(init: => Unit) { | |
| | println("before init") | |
| | init | |
| | println("after init") | |
| | } | |
| | println("init") | |
| | } | |
| defined class Blah |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2012-01-03 10:53:23 | |
| Full thread dump Java HotSpot(TM) 64-Bit Server VM (20.4-b02-402 mixed mode): | |
| "default-dispatcher25" prio=5 tid=7f86753af800 nid=0x162845000 waiting on condition [162844000] | |
| java.lang.Thread.State: TIMED_WAITING (parking) | |
| at sun.misc.Unsafe.park(Native Method) | |
| - parking to wait for <7b5fc17d0> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) | |
| at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:196) | |
| at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package testing | |
| import akka.actor._ | |
| object Main { | |
| def main(args: Array[String]) { | |
| val sys1 = ActorSystem("first") | |
| val sys2 = ActorSystem("second") |