I hereby claim:
- I am taig on github.
- I am taig (https://keybase.io/taig) on keybase.
- I have a public key whose fingerprint is 920E F3BC 0BA6 68C4 EDFD 3846 C03D B551 6D21 4D58
To claim this, I am signing this object:
import cats.effect.concurrent.Deferred | |
import cats.effect.implicits._ | |
import cats.effect.{ConcurrentEffect, IO} | |
import cats.implicits._ | |
import org.scalajs.dom.html.Image | |
import org.scalajs.dom.{document, Event} | |
def loadImage[F[_]](url: String)(implicit F: ConcurrentEffect[F]): F[Boolean] = | |
for { | |
promise <- Deferred[F, Boolean] |
implicit def decoderValueClass[T <: AnyVal, V]( | |
implicit | |
g: Lazy[Generic.Aux[T, V :: HNil]], | |
d: Decoder[V] | |
): Decoder[T] = Decoder.instance { cursor ⇒ | |
d( cursor ).map { value ⇒ | |
g.value.from( value :: HNil ) | |
} | |
} |
trait Printer[L <: HList] extends DepFn1[L] with Serializable { type Out = String } | |
object Printer extends Printer0 { | |
def apply[L <: HList]( implicit printer: Printer[L] ): Printer[L] = printer | |
implicit def hnilPrinter[C]: Printer[HNil] = new Printer[HNil] { | |
override def apply( t: HNil ) = "HNil" | |
} | |
implicit def nestedHlistPrinter[H <: HList, T <: HList]( |
I hereby claim:
To claim this, I am signing this object:
public class Activity extends android.app.Activity | |
{ | |
@Override | |
public boolean onCreateOptionsMenu( Menu menu ) | |
{ | |
getMenuInflater().inflate( R.menu.main, menu ); | |
// Add SearchWidget. | |
SearchManager searchManager = (SearchManager) getSystemService( Context.SEARCH_SERVICE ); | |
SearchView searchView = (SearchView) menu.findItem( R.id.options_menu_main_search ).getActionView(); |