| Season | Home | Away | Winner | Result |
|---|---|---|---|---|
| 2005 | England | Australia | England | 2-1 (5) |
| 2006/07 | Australia | England | Australia | 5-0 (5) |
| 2008/09 | West Indies | England | West Indies | 1-0 (5) |
| 2009 | England | Australia | England | 2-1 (5) |
| 2010/11 | Australia | England | England | 3-1 (5) |
| 2013 | England | Australia | England | 3-0 (5) |
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
| package ext.mockk | |
| import io.mockk.Call | |
| import io.mockk.MockKAnswerScope | |
| import io.mockk.MockKStubScope | |
| import java.util.concurrent.atomic.AtomicReference | |
| infix fun <T, B> MockKStubScope<T, B>.returnsMutably(initialValue: T): MutableAnswer<T, B> = | |
| answersMutably { initialValue } |
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
| #! /usr/bin/env kotlin | |
| import java.io.File | |
| import java.nio.file.Path | |
| import java.security.MessageDigest | |
| import java.text.NumberFormat | |
| import kotlin.io.encoding.Base64 | |
| import kotlin.io.encoding.ExperimentalEncodingApi | |
| import kotlin.io.path.fileSize | |
| import kotlin.io.path.relativeTo |
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
| fun renderMarkdownTable( | |
| header: List<String>, | |
| rows: List<List<Any?>> | |
| ): String { | |
| val columnsAreNumeric: List<Boolean> = rows | |
| .map { row -> row.map { cell -> cell == null || cell is Number } } | |
| .reduce { areNumbersSoFar, row -> | |
| areNumbersSoFar.mapIndexed { index, isNumberSoFar -> | |
| isNumberSoFar && row[index] |
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
| interface RandomAccessOrderedSet<out E> : Set<E> { | |
| // Positional Access Operations | |
| /** | |
| * Returns the element at the specified index in the ordered set. | |
| */ | |
| operator fun get(index: Int): E | |
| // Search Operations | |
| /** | |
| * Returns the index of the first occurrence of the specified element in the ordered set, or -1 if the specified |
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
| openapi: 3.0.0 | |
| info: | |
| title: Swagger Petstore | |
| description: 'This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.' | |
| contact: | |
| email: [email protected] | |
| version: '1.0.5' | |
| servers: | |
| - url: https://petstore.swagger.io/v2 | |
| variables: {} |
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
| paths: | |
| /things/{thingId}: | |
| get: | |
| description: Get things by thingId. | |
| operationId: getThingsByThingId | |
| parameters: | |
| - name: thingId | |
| in: path | |
| required: true | |
| style: simple |
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
| fun <A, B, C, R> inTransaction(work: (A, B, C) -> R): (A, B, C) -> R { | |
| // do something | |
| return { a: A, b: B, c: C -> | |
| // do something | |
| try { | |
| work(a, b, c) | |
| } finally { | |
| // do something | |
| } | |
| } |
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 com.fasterxml.jackson.annotation.JsonCreator; | |
| import com.fasterxml.jackson.annotation.JsonProperty; | |
| import com.fasterxml.jackson.annotation.JsonSetter; | |
| import com.fasterxml.jackson.annotation.JsonValue; | |
| import com.fasterxml.jackson.core.JsonProcessingException; | |
| import com.fasterxml.jackson.databind.ObjectMapper; | |
| import com.fasterxml.jackson.databind.json.JsonMapper; | |
| import javax.annotation.Nonnull; | |
| import javax.annotation.Nullable; |
No index:
CTE Scan on flat_members (cost=10145.57..10147.59 rows=101 width=8) (actual time=3.321..26.953 rows=3 loops=1)
CTE flat_members
-> Recursive Union (cost=0.00..10145.57 rows=101 width=8) (actual time=3.319..26.947 rows=3 loops=1)
-> Seq Scan on subject_group_members gm (cost=0.00..866.77 rows=1 width=8) (actual time=3.315..4.825 rows=2 loops=1)
Filter: (subject_id = 30459)
Rows Removed by Filter: 48380
-> Hash Join (cost=0.33..927.68 rows=10 width=8) (actual time=10.937..11.043 rows=0 loops=2)
Hash Cond: (s.subject_id = f.subject_group_id)
NewerOlder