API | Status Codes |
---|---|
[Twitter][tw] | 200, 304, 400, 401, 403, 404, 406, 410, 420, 422, 429, 500, 502, 503, 504 |
[Stripe][stripe] | 200, 400, 401, 402, 404, 429, 500, 502, 503, 504 |
[Github][gh] | 200, 400, 422, 301, 302, 304, 307, 401, 403 |
[Pagerduty][pd] | 200, 201, 204, 400, 401, 403, 404, 408, 500 |
[NewRelic Plugins][nr] | 200, 400, 403, 404, 405, 413, 500, 502, 503, 503 |
[Etsy][etsy] | 200, 201, 400, 403, 404, 500, 503 |
[Dropbox][db] | 200, 400, 401, 403, 404, 405, 429, 503, 507 |
package utils | |
import java.nio.ByteBuffer | |
import cats.data.Xor | |
import io.circe.Json | |
import play.api.http.LazyHttpErrorHandler | |
import play.api.http.Status._ | |
import play.api.libs.iteratee.{Iteratee, Traversable} | |
import play.api.mvc.BodyParsers.parse._ |
Should be work with 0.18
Destructuring(or pattern matching) is a way used to extract data from a data structure(tuple, list, record) that mirros the construction. Compare to other languages, Elm support much less destructuring but let's see what it got !
myTuple = ("A", "B", "C")
myNestedTuple = ("A", "B", "C", ("X", "Y", "Z"))
package se.kth.edx.id2203.core | |
import java.net.{ InetAddress, InetSocketAddress } | |
import se.kth.edx.id2203.core.ExercisePrimitives.PerfectP2PLink._ | |
import se.kth.edx.id2203.core.Ports._ | |
import se.sics.kompics.{ Init, KompicsEvent } | |
import se.sics.kompics.network.{ Address, Network, Transport } | |
import se.sics.kompics.sl.{ ComponentDefinition, _ } |
Copyright © 2016-2018 Fantasyland Institute of Learning. All rights reserved.
A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.
val square : Int => Int = x => x * x
package controllers | |
import java.io.File | |
import javax.inject.Inject | |
import play.api.Logger | |
import play.Environment | |
import play.api.mvc.{Action, AnyContent} | |
import play.mvc.Controller |
We're looking at CPU bandwidth control via CFS:
Program does number of iterations, in each iteration we burn CPU in small chunks until we get 5ms of real time spent. On each iteration we also print how much
In this article, I'd like to explain why I think The Elm Architecture is fine for small components, but quite harmful for websites based on pages.
First, let's clarify what I mean by "The Elm Architecture".
The Elm Architecture's webpage describes it pretty well.