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 util.logging; | |
import ch.qos.logback.classic.spi.ILoggingEvent; | |
import ch.qos.logback.core.UnsynchronizedAppenderBase; | |
import play.libs.F; | |
import java.util.Collections; | |
import java.util.Set; | |
import java.util.concurrent.ConcurrentHashMap; | |
import java.util.concurrent.atomic.AtomicInteger; |
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
final case class Schrödinger[+A, +B](a: A, b: B) extends Either[A, B] { | |
private var isleft = true | |
private var isright = true | |
lazy val actual : Either[A, B] = { | |
if (new Random().nextBoolean()) { | |
isright = false | |
Left(a) | |
} else { | |
isleft = false | |
Right(b) |
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.gwtplatform.mvp.client.proxy; | |
import com.google.gwt.event.logical.shared.ValueChangeEvent; | |
import com.google.gwt.user.client.Window; | |
import com.google.inject.Inject; | |
import com.google.inject.Singleton; | |
import com.google.web.bindery.event.shared.EventBus; | |
@Singleton | |
public class Html5PushStatePlaceManager extends PlaceManagerImpl { |
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 au.id.jazzy.scalaflect | |
import org.specs2.mutable.Specification | |
object ScalaFlectSpec extends Specification { | |
"ScalaFlect" should { | |
"be able to look up simple case class properties" in { | |
val exampleCaseClass = new ScalaFlect(classOf[ExampleCaseClass]) | |
val member = exampleCaseClass.reflect(_.property) | |
member.toString mustEqual "property" |
NewerOlder