I hereby claim:
- I am hierynomus on github.
- I am ajvanerp (https://keybase.io/ajvanerp) on keybase.
- I have a public key ASAje3QDcJNAa0X0UU75tlEVzpYPxAUCvORwgvqDHKVR6go
To claim this, I am signing this object:
object PlayFair { | |
type Cipher = Map[(Int, Int), Char] | |
def buildCipher(p: String) : Cipher = (for (x <- 0 to 4; y <- 0 to 4) yield (x,y)).zip(chars(p)).toMap | |
def makeCompatible(s: String) = s toUpperCase() replace('J', 'I') filter(_.isLetter) | |
def chars(a: String) = { | |
val p = makeCompatible(a) filter { var s = Set[Char](); x => val b = s(x); s += x; !b } | |
p ++ ('A' to 'Z' filter (c => c != 'J' && !(p contains c))) | |
} |
#!/bin/sh | |
currentAlphaLine=`grep "version.*alpha" build.gradle` | |
currentAlphaVersion=`echo $currentAlphaLine | cut -d \' -f 2` | |
newAlphaVersion=${currentAlphaVersion%-*}-$((${currentAlphaVersion##*-} + 1)) | |
if [[ $(git status --porcelain | wc -l) -gt 0 ]]; then | |
echo "Repository is dirty, please commit first" | |
exit -1 | |
fi |
/** | |
* Scala hex / decimal binary calculator | |
* (c) Mark Lister 2012 | |
* Licence Apache 2. | |
*/ | |
class BaseN(b: BigInt, val baseN: Int) extends BigInt(b.underlying) { | |
def n(x: Int) = new BaseN(b, x) | |
/** |
Started by upstream project "Deployit common build" build number 243 | |
Building remotely on honeydew in workspace /home/jenkins/jenkins/workspace/Plugin - JBoss AS | |
Checkout:Plugin - JBoss AS / /home/jenkins/jenkins/workspace/Plugin - JBoss AS - hudson.remoting.Channel@5c3e99:honeydew | |
Using strategy: Default | |
Last Built Revision: Revision xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (origin/master) | |
Fetching changes from 1 remote Git repository | |
Fetching upstream changes from [email protected]:xxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
Commencing build of Revision xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (origin/master) | |
Checking out Revision xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (origin/master) | |
[Gradle] - Launching build. |
{ | |
"users": { | |
"247597": { | |
"id": "247597", | |
"jid": "[email protected]", | |
"name": "Jeroen van Erp", | |
"mention_name": "JeroenvanErp" | |
}, | |
"247605": { | |
"id": "247605", |
import org.scalatest.{BeforeAndAfterAll, ShouldMatchers, BeforeAndAfter, FunSpec} | |
import com.xebialabs.restito.server.StubServer | |
import com.xebialabs.restito.builder.stub.StubHttp._ | |
import com.xebialabs.restito.semantics.Condition._ | |
import com.xebialabs.restito.semantics.Action._ | |
import org.glassfish.grizzly.http.util.HttpStatus | |
import akka.actor.ActorSystem | |
import spray.client.pipelining._ | |
import scala.concurrent.{Await, Future} | |
import spray.http.{StatusCodes, HttpResponse} |
object EnsureMinimumSeparation { | |
case class CountedString(data: Char, count: Int) extends Comparable[CountedString] { | |
override def compareTo(o: CountedString): Int = { | |
if (count != o.count) { | |
count - o.count | |
} else { | |
o.data - data | |
} | |
} | |
} |
import com.esotericsoftware.kryo.Kryo; | |
import com.esotericsoftware.kryo.io.FastOutput; | |
import org.junit.Test; | |
import java.io.ByteArrayOutputStream; | |
import java.util.Collections; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.ArrayList; |
--------------- day1.py ---------------- | |
python $f 0.01s user 0.01s system 88% cpu 0.018 total | |
--------------- day10.py ---------------- | |
python $f 4.77s user 0.03s system 99% cpu 4.806 total | |
--------------- day11.py ---------------- | |
python $f 0.93s user 0.01s system 99% cpu 0.944 total | |
--------------- day12.py ---------------- | |
python $f 0.02s user 0.01s system 89% cpu 0.027 total | |
--------------- day13.py ---------------- | |
python $f 2.09s user 0.03s system 99% cpu 2.120 total |
I hereby claim:
To claim this, I am signing this object: