I hereby claim:
- I am shishkin on github.
- I am sshishkin (https://keybase.io/sshishkin) on keybase.
- I have a public key whose fingerprint is E619 D103 BAB7 F1CF 5CD5 B7BA B9C1 5954 C4E8 AF2A
To claim this, I am signing this object:
> vitest --run provider | |
[17:12:08.579] DEBUG (31565): [email protected]: non-local provider address https://.../api detected, setting 'changeOrigin' to 'true'. This property can be overridden. | |
[17:12:08.581] INFO (31565): [email protected]: Verifying provider | |
[17:12:08.584] INFO (31565): [email protected]: debug request/response logging enabled | |
[17:12:08.587] INFO (31565): [email protected]: Verifying Pacts. | |
[17:12:08.587] INFO (31565): [email protected]: Verifying Pact Files | |
[17:12:08.588] DEBUG (31565): [email protected]: Initalising native core at log level 'debug' | |
[17:12:08.588] DEBUG (31565): [email protected]: binding path #0: : attempting to load native module from: |
{ | |
"//": { | |
"metadata": { | |
"backend": "local", | |
"stackName": "test", | |
"version": "0.14.3" | |
}, | |
"outputs": { | |
"test": { | |
"test": "test" |
FROM busybox | |
ENTRYPOINT ["sh", "-c", "echo $0 $@", "hello"] | |
CMD ["world"] |
package org.shishkin.sangria | |
import cats.syntax.either._ | |
import io.circe._ | |
import sangria.execution.Resolver | |
import sangria.marshalling.circe._ | |
import sangria.schema._ | |
import sangria.validation.Violation | |
import scala.language.implicitConversions |
I hereby claim:
To claim this, I am signing this object:
import scala.annotation.tailrec | |
def sum(nums: Seq[Int]) = fold(0)(nums, _ + _) | |
def filterEven(nums: Seq[Int]): Seq[Int] = filter(nums, _ % 2 == 0) | |
def filter(nums: Seq[Int], predicate: Int => Boolean): Seq[Int] = | |
fold(List[Int]())(nums, (l, i) => if (predicate(i)) l :+ i else l) | |
def square(nums: Seq[Int]): Seq[Int] = map(nums, i => i * i) |
import org.scalatest.{Matchers, Spec} | |
import scala.xml._ | |
class XmlTest extends Spec with Matchers { | |
def `Set text inside XML element`() = { | |
val doc = | |
<root> |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.shishkin</groupId> | |
<artifactId>testing-examples</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<name>${project.artifactId}</name> | |
<prerequisites> |
package samples | |
import org.junit.runner.RunWith | |
import org.scalatest.junit.JUnitRunner | |
import org.scalatest._ | |
import org.springframework.beans.factory.annotation.Autowired | |
import org.springframework.context.annotation._ | |
import org.springframework.stereotype.Service | |
import org.springframework.test.context.support.AnnotationConfigContextLoader | |
import org.springframework.test.context.{ActiveProfiles, ContextConfiguration, TestContextManager} |
;### Tested with clojure "1.6.0" and core.async "0.1.346.0-17112a-alpha" ### | |
(use 'clojure.core.async) | |
;### Lib functions ### | |
(defn take-until | |
"Creates a channel that replicates values from the in channel until the | |
control channel either emits a value or closes." | |
[control in] | |
(let [out (chan)] |