Skip to content

Instantly share code, notes, and snippets.

View wogan's full-sized avatar

Wogan wogan

View GitHub Profile

Keybase proof

I hereby claim:

  • I am wogan on github.
  • I am wogan (https://keybase.io/wogan) on keybase.
  • I have a public key ASBn4LGdU4vnPMON7PJSZqisiHB6z31cT_cyKVJ4_vMvGAo

To claim this, I am signing this object:

@wogan
wogan / Backoff.scala
Created December 19, 2017 17:28
Retry helper methods & DSL for Monix Tasks.
package retry
import scala.concurrent.duration.{Duration, FiniteDuration}
import scala.util.Random
import scala.concurrent.duration._
object Backoff {
val none: Backoff = _ => Duration.Zero
@wogan
wogan / Testcase.scala
Created May 1, 2017 19:30
scalac-scoverage-plugin issue 175 reproducable test case
object Testcase {
val bad = Option("test") getOrElse[String] "default"
}
@wogan
wogan / 0_reuse_code.js
Created December 26, 2016 05:42
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@wogan
wogan / FormatTest.scala
Created July 13, 2016 18:52
IntelliJ scala plugin incorrectly formatting method bodies with preceeding comments.
class FormatTest {
def firstMethod: String =
"body"
/**
* Returns a string "body"
*
* @return "body"
*/