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
import android.graphics.* | |
import com.squareup.picasso.Transformation | |
// https://gist.github.com/codezjx/b8a99374385a0210edb9192bced516a3 | |
class CircleTransformation: Transformation { | |
companion object { | |
private val KEY = "circleImageTransformation" | |
} | |
override fun transform(source: Bitmap): Bitmap { |
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
// List with required permissions | |
private val REQUIRED_SDK_PERMISSIONS = arrayOf(Manifest.permission.ACCESS_FINE_LOCATION) | |
private fun checkPermissions() { | |
val missingPermissions = ArrayList<String>() | |
// check all required dynamic permissions | |
for (permission in REQUIRED_SDK_PERMISSIONS) { | |
val result = ContextCompat.checkSelfPermission(this, permission) | |
if (result != PackageManager.PERMISSION_GRANTED) { | |
missingPermissions.add(permission) |
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
Android developers resources | |
Getting started in Android development | |
Android developers | |
- official website https://developer.android.com/ | |
- Codelabs https://codelabs.developers.google.com/ | |
- Youtube https://www.youtube.com/user/androiddevelopers | |
Kotlin | |
- https://kotlinlang.org/ |
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
function openTab() { | |
var selection = SpreadsheetApp.getActiveSheet().getActiveCell().getValue(); | |
var html = "<script>window.open('" + selection + "');google.script.host.close();</script>"; | |
var userInterface = HtmlService.createHtmlOutput(html); | |
SpreadsheetApp.getUi().showModalDialog(userInterface, 'Open Tab'); | |
} |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |