Skip to content

Instantly share code, notes, and snippets.

@antigremlin
antigremlin / key base.md
Created September 25, 2023 23:03
Keybase Proof

Keybase proof

I hereby claim:

  • I am antigremlin on github.
  • I am antigremlin (https://keybase.io/antigremlin) on keybase.
  • I have a public key ASAbkLIYAL79vTxXYAHOWVlvYaCy9nq1kmGhEUxfr9-S7wo

To claim this, I am signing this object:

@antigremlin
antigremlin / deref.go
Last active February 11, 2020 12:12
Go value dereferencing by string path
package spike
import (
"errors"
"reflect"
"strconv"
)
var stringType = reflect.TypeOf("")
@antigremlin
antigremlin / Patterns2.java
Created November 6, 2014 15:41
Ask with retry in akka, forwarding back to sender
package spike.app2;
import akka.actor.ActorContext;
import akka.actor.ActorRef;
import akka.actor.Props;
import akka.actor.ReceiveTimeout;
import akka.actor.UntypedActor;
import akka.dispatch.Futures;
import akka.pattern.AskTimeoutException;
import scala.concurrent.Future;
@antigremlin
antigremlin / Patterns.java
Created November 6, 2014 15:40
Ask with retry in akka, returning Promise<>
package spike.app2;
import akka.actor.ActorContext;
import akka.actor.ActorRef;
import akka.actor.Props;
import akka.actor.ReceiveTimeout;
import akka.actor.UntypedActor;
import akka.dispatch.Futures;
import akka.pattern.AskTimeoutException;
import scala.concurrent.Future;