Curated list of Most commonly used Kotlin Extensions.
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
🏃♂️ Running 43.41 km ▩▩▩▩▩▩▩▩▩▩▩▩ 6.79/h | |
🏊♂️ Swimming 0.00 km □□□□□□□□□□□□ 0.00/h | |
🚴♂️ Cycling 0.00 km □□□□□□□□□□□□ 0.00/h | |
Last month 14.21 km 2:16h |
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
Kotlin 16 hrs 50 mins ■■■■■■■■■■■■■■■■ 86.9% | |
Java 2 hrs 22 mins ■■■■◱□□□□□□□□□□□ 12.3% | |
XML 7 mins ■■▥□□□□□□□□□□□□□ 0.7% | |
YAML 0 secs ■■◱□□□□□□□□□□□□□ 0.1% | |
Text 0 secs ■■◱□□□□□□□□□□□□□ 0.0% | |
Gradle 0 secs ■■◱□□□□□□□□□□□□□ 0.0% |
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: Release And Update | |
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
apk: | |
name: Release APK | |
runs-on: ubuntu-18.04 |
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
#!/bin/bash TEXT=$1 if [ -z "$TEXT" ]; then echo "Usage: android-paste TEXT" exit fi ( echo sms send 5555555555 $TEXT; sleep 1; ) | telnet localhost 5554 &> /dev/null |
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
/** | |
* Utility functions for Android View | |
*/ | |
fun View.setZTranslation(z: Float) { | |
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) { | |
this.translationZ = z | |
} | |
} | |
/** |
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
<TaskOptions> | |
<TaskOptions> | |
<option name="arguments" value="--write --single-quote --tab-width 4 -- $FilePath$" /> | |
<option name="checkSyntaxErrors" value="true" /> | |
<option name="description" /> | |
<option name="exitCodeBehavior" value="ERROR" /> | |
<option name="fileExtension" value="js" /> | |
<option name="immediateSync" value="false" /> | |
<option name="name" value="Prettier" /> | |
<option name="output" value="" /> |
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
# This file contains the fastlane.tools configuration | |
# You can find the documentation at https://docs.fastlane.tools | |
# | |
# For a list of all available actions, check out | |
# | |
# https://docs.fastlane.tools/actions | |
# | |
# For a list of all available plugins, check out | |
# | |
# https://docs.fastlane.tools/plugins/available-plugins |
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
# This file contains the fastlane.tools configuration | |
# You can find the documentation at https://docs.fastlane.tools | |
# | |
# For a list of all available actions, check out | |
# | |
# https://docs.fastlane.tools/actions | |
# | |
# For a list of all available plugins, check out | |
# | |
# https://docs.fastlane.tools/plugins/available-plugins |
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 me.seebrock3r.common.widget | |
import android.graphics.Canvas | |
import android.graphics.Paint | |
import android.graphics.Rect | |
import android.view.View | |
import androidx.annotation.ColorInt | |
import androidx.annotation.Px | |
import androidx.core.graphics.withTranslation | |
import androidx.core.view.children |
NewerOlder