This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| document.querySelectorAll('.rt_name > span > a').forEach(e => { | |
| const t = e.title.split('›').slice(-2).pop().trim(); | |
| const span = document.createElement('span'); | |
| div.innerHTML = ` at ${t}`; | |
| e.parentElement.appendChild(span); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/libavformat/tee.c b/libavformat/tee.c | |
| index 6fafc0a99d..e31e00496c 100644 | |
| --- a/libavformat/tee.c | |
| +++ b/libavformat/tee.c | |
| @@ -20,6 +20,7 @@ | |
| */ | |
| +#define _GNU_SOURCE | |
| #include "libavutil/avutil.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| implicit class StreamOps[F[_], O](private val s: Stream[F, O]) extends AnyVal { | |
| def groupWeighedWithin(timeout: FiniteDuration, limit: Long, weight: O => Long)(implicit | |
| F: Temporal[F] | |
| ): Stream[F, Chunk[O]] = | |
| s.pull | |
| .timed { timedPull => | |
| def go(timedPull: Pull.Timed[F, O], buffer: Chunk[O], bufferSize: Long): Pull[F, O, Unit] = { | |
| timedPull.timeout(timeout) >> | |
| timedPull.uncons.flatMap { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import cats.effect.laws.util.TestContext | |
| import cats.effect.{ContextShift, IO, Timer} | |
| import org.scalactic.source.Position | |
| import org.scalatest.{Assertion, AsyncFunSpec, AsyncTestSuite, Matchers} | |
| import org.scalatest.exceptions.TestFailedException | |
| import scala.concurrent.duration._ | |
| import scala.concurrent.{ExecutionContext, Future} | |
| import scala.reflect.ClassTag |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //fixes IntelliJ error highlighting | |
| implicit class FixIdea(request: HttpRequest) { | |
| def ~>(r: Route): RouteTestResult = TildeArrow.injectIntoRoute.apply(request, r) | |
| def ~>(f: HttpRequest ⇒ HttpRequest) = f(request) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def uploadedFile(fieldName: String): Directive1[(FileInfo, File)] = | |
| extractRequestContext.flatMap { ctx ⇒ | |
| import ctx.executionContext | |
| import ctx.materializer | |
| fileUpload(fieldName).flatMap { | |
| case (fileInfo, bytes) ⇒ | |
| val destination = File.createTempFile("akka-http-upload", ".tmp") | |
| val uploadedF: Future[IOResult] = bytes.runWith(FileIO.toPath(destination.toPath)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "meta": { | |
| "id": "efd7ca55b4c654ec227f2117", | |
| "created": 1439356911278, | |
| "modified": 1439357417823, | |
| "author": "t5Sq+f6v5KBknFKgOTdmHrZQKQgyTeNF0H0udYw7IiJtyRejIVxbtQ==", | |
| "authorUsername": "Nataliia.Parilova", | |
| "description": "", | |
| "name": "edit-11819_linear gradient", | |
| "duration": 1.0, |
I hereby claim:
- I am robertoua on github.
- I am robertoua (https://keybase.io/robertoua) on keybase.
- I have a public key whose fingerprint is C446 39E3 E8EC 75B9 CC1A D014 6755 BE70 87B9 58EC
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Andorra":"AD", | |
| "United Arab Emirates":"AE", | |
| "Afghanistan":"AF", | |
| "Antigua and Barbuda":"AG", | |
| "Anguilla":"AI", | |
| "Albania":"AL", | |
| "Armenia":"AM", | |
| "Angola":"AO", | |
| "Antarctica":"AQ", |
NewerOlder