I hereby claim:
- I am tinoadams on github.
- I am tinoadams (https://keybase.io/tinoadams) on keybase.
- I have a public key whose fingerprint is CE3D E075 7DED D8E2 BE1A F03B C926 DB25 40B4 C0EB
To claim this, I am signing this object:
#!/bin/bash | |
set -xeo pipefail | |
# Get epoch | |
DATE="$(date +%s)" | |
# Set this hostname | |
HOSTNAME=`hostname --short` |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash -e | |
export ARTIFACTORY_IMAGE='jfrog-docker-reg2.bintray.io/jfrog/artifactory-registry:latest' | |
export ARTIFACTORY_CONTAINER_NAME='art' | |
export ARTIFACTORY_HOST_HOME="$PWD" | |
export ARTIFACTORY_HOME=/var/opt/jfrog/artifactory | |
echo "Artifactory home directory on the host: $ARTIFACTORY_HOST_HOME" | |
docker rm -f $ARTIFACTORY_CONTAINER_NAME &> /dev/null || echo "no previous Artifactory container not running... moving along" |
import java.io.BufferedReader | |
import java.io.ByteArrayInputStream | |
import java.io.InputStreamReader | |
import utils.using._ | |
object Main extends App { | |
// the "used" instance is passed to the body i.e. "in" is of type BufferedReader | |
using(new BufferedReader(new InputStreamReader(new ByteArrayInputStream("Testing using".getBytes)))) { in => | |
println(in.readLine) |
package utils.using | |
import java.sql.Connection | |
import javax.persistence.EntityManager | |
/** | |
* Declares an object that can be used. | |
*/ | |
trait Usable[+T] { |
package samples | |
case class AustralianPostcode private (value: String) { | |
require(value.matches("""\d{4}""")) | |
} | |
object AustralianPostcode { | |
def parse(value: String) = new AustralianPostcode(value.trim) | |
} |
import java.util.Date | |
import akka.actor.Actor | |
import akka.actor.ActorSystem | |
import akka.actor.Props | |
import akka.actor.ReceiveTimeout | |
import akka.util.duration._ | |
class MyActor extends Actor { | |
context.setReceiveTimeout(5 seconds) |
package test | |
abstract case class AustralianPostcode private (value: String) { | |
require(value.matches("""\d{4}""")) | |
} | |
object AustralianPostcode { | |
def apply(value: String) = new AustralianPostcode(value.trim){} | |
} | |
object Main extends App { |