I hereby claim:
- I am steinybot on github.
- I am steinybot (https://keybase.io/steinybot) on keybase.
- I have a public key ASAF_nkW-0m13F3vFwdFpb9a63hsGAj3nMOoIixpEL_hUAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| package com.example.generator; | |
| import com.pholser.junit.quickcheck.Pair; | |
| import com.pholser.junit.quickcheck.generator.Gen; | |
| import com.pholser.junit.quickcheck.generator.GenerationStatus; | |
| import com.pholser.junit.quickcheck.generator.Generator; | |
| import com.pholser.junit.quickcheck.generator.InRange; | |
| import com.pholser.junit.quickcheck.generator.java.lang.IntegerGenerator; | |
| import com.pholser.junit.quickcheck.random.SourceOfRandomness; | |
| import com.squareup.javapoet.*; |
| import com.sun.jna.Platform; | |
| import com.sun.jna.platform.win32.Kernel32; | |
| import com.sun.jna.platform.win32.Kernel32Util; | |
| import com.sun.jna.platform.win32.WinNT; | |
| import com.sun.jna.ptr.IntByReference; | |
| class Scratch { | |
| public static void main(final String[] args) { | |
| System.out.println("Is 64-bit OS? " + is64BitOS()); |
| Bob |
| package com.geneious.nucleus.service.util.play.json | |
| import play.api.libs.json._ | |
| import shapeless._ | |
| trait CoproductFormats { | |
| implicit val cNilReads: Reads[CNil] = Reads(_ => JsError()) | |
| implicit val cNilWrites: Writes[CNil] = Writes(_ => JsNull) |
| case class Inner(a: String, b: Int) | |
| case class Outer(a: String, i: Inner) |
| git log --shortstat --format="%an" | sed '/^$/d' | awk ' | |
| BEGIN { FS = ", " } | |
| { | |
| if (match($1, /^ [0-9]+ files? changed/)) { | |
| split($2, a, " ") | |
| inserts = (a[1] == "")? 0 : a[1] | |
| split($3, b, " ") | |
| deletes = (b[1] == "")? 0 : b[1] | |
| total = (inserts - deletes) | |
| print name " " inserts " " deletes " " total |
| object FixingVarianceErrors { | |
| trait InvariantThing[T] | |
| trait CovariantThing[+T] { | |
| // Fails to compile with error: | |
| // Error:(12, 9) covariant type T occurs in invariant position in | |
| // type => FixingVarianceErrors.InvariantThing[T] of method thing1 | |
| def thing1: InvariantThing[T] |