- Hello 2015:
- http://codeforces.com/blog/entry/15473
- http://codeforces.com/gym/100571
- http://codeforces.com/gym/100570
- Editorial: http://codeforces.com/blog/entry/15722
- Segment Trees:
rebase
vs merge
).rebase
vs merge
)reset
vs checkout
vs revert
)git rev-parse
)pull
vs fetch
)stash
vs branch
)reset
vs checkout
vs revert
)PUT t | |
{ | |
"settings": { | |
"analysis": { | |
"analyzer": { | |
"unique_terms": { | |
"tokenizer": "standard", | |
"filter": [ | |
"lowercase", | |
"unique" |
sealed trait Free[F[_], A] { self => | |
final def map[B](ab: A => B): Free[F, B] = Free.flatMap(self, ab andThen (Free.point[F, B](_))) | |
final def flatMap[B](afb: A => Free[F, B]): Free[F, B] = Free.flatMap(self, afb) | |
final def interpret[G[_]: Monad](fg: F ~> G): G[A] = self match { | |
case Free.Point(a0) => a0().point[G] | |
case Free.Effect(fa) => fg(fa) | |
case fm : Free.FlatMap[F, A] => | |
val ga0 = fm.fa.interpret[G](fg) | |
ga0.flatMap(a0 => fm.afb(a0).interpret[G](fg)) | |
} |
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
Picking the right architecture = Picking the right battles + Managing trade-offs
package osgi; | |
import java.io.*; | |
import java.util.concurrent.TimeUnit; | |
import java.util.concurrent.atomic.AtomicLong; | |
import java.util.function.*; | |
import org.osgi.util.promise.*; | |
import org.reactivestreams.*; |
package hu.akarnokd.reactiveflowbridge; | |
import java.util.Objects; | |
import java.util.concurrent.Flow; | |
import java.util.function.Function; | |
/** | |
* Bridge between Reactive-Streams API and the Java 9 Flow API. | |
*/ | |
public final class ReactiveFlowBridge { |