This file contains 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
"One morning, when Gregor Samsa woke from troubled dreams, " + | |
"he found himself transformed in his bed into a horrible vermin. He lay on " + | |
"his armour-like back, and if he lifted his head a little he could see his " + | |
"brown belly, slightly domed and divided by arches into stiff sections. " + | |
"The bedding was hardly able to cover it and seemed ready to slide off any moment. " + | |
"His many legs, pitifully thin compared with the size of the rest of him, " + | |
"waved about helplessly as he looked. “What’s happened to me? “ he thought. " + | |
"It wasn’t a dream. His room, a proper human room although a little too small, " + | |
"lay peacefully between its four familiar walls. A collection of textile samples " + | |
"lay spread out on the table - Samsa was a traveling salesman - and above it there " + |
This file contains 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
suspend fun main(args: Array<String>) { | |
sample(flowOf(1, 2, 3)) | |
} | |
suspend fun sample(numbers: Flow<Int>): Int { | |
return numbers.reduce { acc, value -> | |
acc + value | |
} | |
} |
This file contains 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
insertId jsonPayload.logger jsonPayload.message jsonPayload.context jsonPayload.thread resource.type resource.labels.location resource.labels.pod_name resource.labels.project_id resource.labels.namespace_name resource.labels.container_name resource.labels.cluster_name timestamp severity labels."k8s-pod/team" labels."compute.googleapis.com/resource_name" labels."k8s-pod/version" labels."k8s-pod/app" labels."k8s-pod/pod-template-hash" logName receiveTimestamp | |
wr383og4le7u2c reactor.netty.http.server.HttpServerOperations [id: 0x3e475a0d, L:/1.1.1.1.1:8080 - R:/2.2.2.2.2:53498] Last HTTP packet was sent, terminating the channel default reactor-http-epoll-4 k8s_container europe-west1-b product-service-d7b9dc4b5-spxst env-integration default product-service env-integration-cluster-v2 2021-03-10T10:05:12.319Z DEBUG teamA gke-env-integrat-nap-n1-standard--a87874fe-evvt v1 product-service d7b9dc4b5 projects/env-integration/logs/stdout 2021-03-10T10:05:17.028863653Z | |
wr383og4le7u2b reactor.netty.http.server.HttpServerOp |
This file contains 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
let number = 0; | |
let temp; | |
const inc = () => new Promise(resolve => { | |
setTimeout(() => { | |
temp = number; | |
number = temp + 1; | |
resolve(); | |
}, 4000) | |
}); |
This file contains 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
phoneNumber=$1 | |
echo Faking answered call to $phoneNumber | |
adb shell am broadcast -a android.intent.action.PHONE_STATE --es state "RINGING" --es incoming_number $phoneNumber | |
adb shell am broadcast -a android.intent.action.PHONE_STATE --es state "OFFHOOK" --es incoming_number $phoneNumber | |
adb shell am broadcast -a android.intent.action.PHONE_STATE --es state "IDLE" --es incoming_number $phoneNumber |