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 python3 | |
| # Copyright (C) 2021 The Android Open Source Project | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software |
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
| pw() { | |
| result=$(echo "scale=4 ; $1 / $2 * 100" | bc) | |
| printf "%s is %.2f%% of %s\n" "$1" "$result" "$2" | |
| if (( $(echo "$1 < $2" | bc -l) )) | |
| then | |
| diff=$(echo "scale=4 ; $2 - $1" | bc) | |
| diffPerc=$(echo "scale=4 ; $diff / $2 * 100" | bc) | |
| printf "%s is a %.2f%% decrease of %s\n" "$1" "$diffPerc" "$2" | |
| else | |
| diff=$(echo "scale=4 ; $1 - $2" | bc) |
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
| pw() { | |
| result=$(echo "scale=4 ; $1 / $2 * 100" | bc) | |
| printf "%s is %.2f%% of %s\n" "$1" "$result" "$2" | |
| if (( $(echo "$1 < $2" | bc -l) )) | |
| then | |
| diff=$(echo "scale=4 ; $2 - $1" | bc) | |
| diffPerc=$(echo "scale=4 ; $diff / $2 * 100" | bc) | |
| printf "%s is a %.2f%% decrease of %s\n" "$1" "$diffPerc" "$2" | |
| else | |
| diff=$(echo "scale=4 ; $1 - $2" | bc) |
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
| name | age | |
|---|---|---|
| John | 32 |
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.codec.digest.HmacAlgorithms | |
| import org.apache.commons.codec.digest.HmacUtils | |
| import kotlin.io.encoding.Base64 | |
| import kotlin.io.encoding.ExperimentalEncodingApi | |
| // Guide : https://developer.x.com/en/docs/authentication/oauth-1-0a/creating-a-signature | |
| @OptIn(ExperimentalStdlibApi::class, ExperimentalEncodingApi::class) | |
| fun main() { | |
| val baseString = | |
| "POST&https%3A%2F%2Fapi.x.com%2F1.1%2Fstatuses%2Fupdate.json&include_entities%3Dtrue%26oauth_consumer_key%3Dxvz1evFS4wEEPTGEFPHBog%26oauth_nonce%3DkYjzVBB8Y0ZFabxSWbWovY3uYSQ2pTgmZeNu2VS4cg%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1318622958%26oauth_token%3D370773112-GmHxMAgYyLbNEtIKZeRNFsMKPR9EyMZeS9weJAEb%26oauth_version%3D1.0%26status%3DHello%2520Ladies%2520%252B%2520Gentlemen%252C%2520a%2520signed%2520OAuth%2520request%2521" |
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
| {"dateTime":"2021-10-30T03:11:34.870411+05:30"} |
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
| curl --location --request GET 'https://docs.google.com/spreadsheets/d/1pvwjyRWvRPzHoacraKi4w6324-BErl3Bs-Q9HIwbeGI/gviz/tq?tqx=out:csv&sheet=Sheet1&tq=SELECT *' \ | |
| --header 'Cookie: COMPASS=apps-spreadsheets=CmUACWuJV0hWiC32aVmCoZFc_jXwHk_mV1qbBlPw_wALPFsuVNiVxTMZsibg4afctNdBovatmXZdBc-KqARN_1jUCMgED4uAKt92QXQxtSqWLV6zKrWbmnj7QgUrfrIwM7BHCNj7bxDzs5W1Bhp2AAlriVehlw8YTHhgtNluxMmzQ7LES8r23B3sRmj1Mxztd0kYiDFvC8-l6zd7-T726Ibj66RfP4_ubRlzaJnCejoMfR0cisIrlS-HQNFlWTQ1_pLj6xI6OOAEFp2Q3rDv8HvLdgjTxKFEDDr31RU_AcuQI4Bdyw==; NID=515=F2e6goLKyJI-_x74RLtkzDMQT9AtDjEUBtaO7YSVugiMg4cc9kwxsGoijiSHF7wN1DsYhdDHj9tKHi7ErVD09kfR1sWYAyvX0TYnHOSMugh4S7g3gtn0mkkwD3tlrc3z_6NGkCAwN9S9OsLs7TOMnEEuZ_rVbgVD6YD1RhlSy-Y' |
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
| lottie run 1 | |
| LottieVsRiveBenchmark_lottie | |
| timeToInitialDisplayMs min 718.2, median 746.6, max 860.4 | |
| frameDurationCpuMs P50 20.2, P90 36.0, P95 50.9, P99 187.2 | |
| frameOverrunMs P50 1.7, P90 21.5, P95 41.7, P99 273.6 | |
| Traces: Iteration 0 1 2 3 4 5 6 7 8 9 | |
| rive run 1 | |
| LottieVsRiveBenchmark_rive | |
| timeToInitialDisplayMs min 733.3, median 759.5, max 825.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
| v4 1 largeLottie | |
| LottieBenchmark_largeLottie | |
| timeToInitialDisplayMs min 564.2, median 577.0, max 669.3 | |
| frameDurationCpuMs P50 67.4, P90 73.1, P95 76.4, P99 187.1 | |
| frameOverrunMs P50 68.6, P90 78.4, P95 85.0, P99 259.4 | |
| Traces: Iteration 0 1 2 3 4 5 6 7 8 9 | |
| v4 1 superLargeLottie | |
| LottieBenchmark_superLargeLottie | |
| timeToInitialDisplayMs min 569.7, median 586.9, max 602.4 |
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
| v4 1 largeLottie | |
| LottieBenchmark_largeLottie | |
| timeToInitialDisplayMs min 727.4, median 749.7, max 850.9 | |
| frameDurationCpuMs P50 65.8, P90 71.2, P95 74.0, P99 239.1 | |
| frameOverrunMs P50 66.5, P90 76.1, P95 81.6, P99 268.0 | |
| Traces: Iteration 0 1 2 3 4 5 6 7 8 9 | |
| v4 1 superLargeLottie | |
| LottieBenchmark_superLargeLottie | |
| timeToInitialDisplayMs min 738.1, median 750.5, max 1,177.2 |
NewerOlder