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> import TypeString._ | |
import TypeString._ | |
scala> typeString[Int] | |
res1: String = Int | |
scala> typeString(2) | |
res2: String = Int | |
scala> typeString[String => Int] |
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 connection | |
import java.net.InetSocketAddress | |
import java.security.{SecureRandom, KeyStore} | |
import javax.net.ssl.{TrustManagerFactory, KeyManagerFactory, SSLContext} | |
import akka.actor.Actor.Receive | |
import akka.stream.FlowMaterializer | |
import akka.stream.actor.ActorPublisherMessage.Request | |
import akka.stream.actor.ActorSubscriberMessage.{OnComplete, OnNext} |
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
/* | |
* Copyright (c) 2013 koiroha.org. | |
* All sources and related resources are available under Apache License 2.0. | |
* http://www.apache.org/licenses/LICENSE-2.0.html | |
*/ | |
import java.io._ | |
import java.security.KeyStore | |
import java.util.Date | |
import javax.net.ssl._ | |
import scala.concurrent.duration.Duration |