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 |
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
| 30 iterations each | |
| v4 - 1 | |
| -- | |
| LottieBenchmark_largeLottie | |
| timeToInitialDisplayMs min 954.8, median 1,278.9, max 2,342.1 | |
| frameDurationCpuMs P50 99.9, P90 141.3, P95 161.6, P99 413.6 | |
| frameOverrunMs P50 118.2, P90 174.2, P95 214.7, P99 490.2 | |
| Traces: Iteration 0 1 2 3 4 5 6 7 8 9 |
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
| # pull last modified (n) screenshots | |
| function pulls() { | |
| DEFAULT_COUNT='2' | |
| COUNT="${1:-$DEFAULT_COUNT}" | |
| echo "β¬οΈ Pulling $COUNT screenshot(s)" | |
| # Get the list of last modified screenshots | |
| local screenshots=(`adb shell ls -t /storage/emulated/0/Pictures/Screenshots/ | head -n "$COUNT"`) | |
| if [ ${#screenshots[@]} -eq 0 ]; then |
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
| function adb() { | |
| # Execute the actual command | |
| local totalLines=$(command adb devices | wc -l | xargs) | |
| local totalDeviceConnected=$(expr $totalLines - 2) | |
| if [[ "$@" != *"-s "* && $totalDeviceConnected -gt 1 ]]; then | |
| # Get the list of connected devices | |
| devices=(`command adb devices | awk '$2 == "device" {print $1}'`) | |
| devicesText="" |
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
| // depends-on-plugin org.jetbrains.kotlin | |
| import com.intellij.psi.util.parentOfType | |
| import liveplugin.editor | |
| import liveplugin.executeCommand | |
| import liveplugin.psiFile | |
| import liveplugin.registerAction | |
| import liveplugin.show | |
| import org.jetbrains.kotlin.analysis.api.fir.utils.addImportToFile |
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
| # To install recently downloaded APK file | |
| function i(){ | |
| lastModifiedFile=$(ls -lt | head -2) | |
| echo $lastModifiedFile | |
| if echo "$lastModifiedFile" | grep -q ".apk"; then | |
| read yn\?"β Do you want to install the above file? (y/n)" | |
| case $yn in | |
| [Yy]* ) installLastModifiedFile; echo "β Done";; | |
| [Nn]* ) echo "Cancelled APK installation";; | |
| * ) echo "Please answer yes or no.";; |
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.json.JSONObject | |
| import java.io.File | |
| const val tinyPngApiKey = "<YOUR-API-KEY-GOES-HERE>" | |
| val projectDir = File("<PATH-TOPROJECT-ROOT>") | |
| val supportedExtensions = listOf("png", "jpg") | |
| fun main() { | |
| projectDir.walk().forEach { srcFile -> | |
| if (supportedExtensions.contains(srcFile.extension)) { |
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
| // Extension URL RegEx : https:\/\/console.firebase.google.com\/u\/0\/.+ | |
| var accountIndex = 1 // Auto redirect account index | |
| var newUrl = "https://console.firebase.google.com/u/" | |
| + accountIndex | |
| + window.location.toString().split("/u/0")[1] | |
| window.location = newUrl |
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
| # To measure lauch time | |
| fun launchTime(){ | |
| # Config | |
| LAUNCH_COUNT=10 | |
| REGEX='TotalTime: (\d+)' | |
| # The two params are configurable via argument | |
| DEFAULT_PACKAGE_NAME='com.your.packagename' |
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 java.io.File | |
| import java.nio.file.* | |
| class FileWatcher(watchFile: String) { | |
| private val folderPath: Path | |
| private val watchFile: String | |
| init { | |
| val filePath = Paths.get(watchFile) | |
| val isRegularFile = Files.isRegularFile(filePath) |