This file contains 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
/** | |
* Adder of two numbers | |
*/ | |
object Adder { | |
val BINARY_REGEX = "(^[01]+$)".r | |
val DECIMAL_REGEX = "(^[0-9]+$)".r | |
/** | |
* Arguments must be decimal numbers or binary numbers |
This file contains 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 training.http | |
import akka.actor.ActorSystem | |
import akka.http.scaladsl.Http | |
import akka.http.scaladsl.model._ | |
import akka.http.scaladsl.model.headers.RawHeader | |
import akka.util.ByteString | |
import play.api.libs.json._ |
This file contains 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 org.keyczar._ | |
import org.keyczar.enums._ | |
import org.apache.commons.codec.binary.{Hex, StringUtils} | |
import org.apache.commons.codec.digest.DigestUtils | |
import ixias.security.KeyReader | |
object SignerSample { | |
def main(args: Array[String]): Unit = { |