```mermaid
sequenceDiagram
participant dotcom
participant iframe
participant viewscreen
dotcom->>iframe: loads html w/ iframe url
iframe->>viewscreen: request template
viewscreen->>iframe: html & javascript
iframe->>dotcom: iframe ready
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 org.apache.commons.csv.CSVFormat | |
| import org.apache.commons.csv.CSVParser | |
| fun main() { | |
| val reader = object {}.javaClass.getResourceAsStream("/oreilly-annotations.csv")?.bufferedReader()!! | |
| val csvParser = CSVParser(reader, CSVFormat.DEFAULT.withFirstRecordAsHeader()); | |
| val bookTitle = "Release It!, 2nd Edition" |
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
| @Test | |
| fun `a request, when converted toCurl and then parsed back from cURL, is the identical`() { | |
| // provide the seed as the first argument to `randomly` to make it repeatable | |
| randomly { | |
| repeat(20) { | |
| println(Int.random(1, 100)) | |
| } | |
| } | |
| }å |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Document</title> | |
| <style> | |
| #tog { | |
| display: none; |
This is a review of the TRAPI system as described by this architecture and implemented in these repositories:
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 handler | |
| import ( | |
| "io" | |
| "net/http" | |
| "strings" | |
| ) | |
| func NewCachingMW(proxy http.Handler) http.Handler { | |
| cache := make(map[string]http.Response) |
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 acceptance_test | |
| import ( | |
| "log" | |
| "os" | |
| "os/exec" | |
| "strings" | |
| "testing" | |
| ) |
NewerOlder