create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| @Composable | |
| fun LifecycleAwareComposable(modifier: Modifier = Modifier) { | |
| val lifecycleOwner = LocalLifecycleOwner.current | |
| DisposableEffect(key1 = lifecycleOwner) { | |
| val lifecycleEvents = LifecycleEventObserver { source, event -> | |
| when (event) { | |
| Lifecycle.Event.ON_CREATE -> Napier.d { "LifecycleAareComposable event: ${event.name} and source: ${source.lifecycle.currentState}" } | |
| Lifecycle.Event.ON_START -> Napier.d { "LifecycleAareComposable event: ${event.name} and source: ${source.lifecycle.currentState}" } | |
| Lifecycle.Event.ON_RESUME -> Napier.d { "LifecycleAareComposable event: ${event.name} and source: ${source.lifecycle.currentState}" } |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| // error image in the phone | |
| Glide.with(context) | |
| .load("yourImageURL") | |
| .placeholder(R.drawable.ic_image) | |
| .error(R.drawable.ic_error) | |
| .into(imageView) | |
| // load another image error | |
| Glide.with(context) | |
| .load("yourImageURL") |
| /* | |
| * How to effectively use Glide to load Images in both RecyclerView and normal ImageView in layout, when we do not know the image size before hand. | |
| * My ImageViews are both wrap-content, also my REST api does not provide size values in responses. | |
| * Moreover I have many different image sizes in views. | |
| */ | |
| ... // Somewhere in my Adapter | |
| internal var isImageSizeFound = false | |
| inner class ShowsListViewHolder internal constructor(itemView: View) : |
| val spanned = spannable{ bold("some") + italic(" formatted") + color(Color.RED, " text") } | |
| val nested = spannable{ bold(italic("nested ")) + url("www.google.com", "text") } | |
| val noWrapping = bold("no ") + sub("wrapping ) + sup("also ") + "works" | |
| text_view.text = spanned + nested + noWrapping |
| { | |
| "info": { | |
| "name": "Login with Amazon (OAuth)", | |
| "_postman_id": "c1a33327-55de-7a7c-0103-44829c86b65a", | |
| "description": "A small collection of sample requests in the OAuth flow for LWA authentication.", | |
| "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
| }, | |
| "item": [ | |
| { | |
| "name": "1 LWA Get Authorization Code", |
| var db = firebase.firestore(); | |
| var content = require("./sourceData.json"); | |
| content && | |
| Object.keys(content).forEach(contentKey => { | |
| const nestedContent = content[contentKey]; | |
| if (typeof nestedContent === "object") { | |
| Object.keys(nestedContent).forEach(docTitle => { | |
| firebase | |
| .firestore() |
| # Set inotify watch limit high enough for IntelliJ IDEA (PhpStorm, PyCharm, RubyMine, WebStorm). | |
| # Create this file as /etc/sysctl.d/60-jetbrains.conf (Debian, Ubuntu), and | |
| # run `sudo service procps start` or reboot. | |
| # Source: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit | |
| # | |
| # More information resources: | |
| # -$ man inotify # manpage | |
| # -$ man sysctl.conf # manpage | |
| # -$ cat /proc/sys/fs/inotify/max_user_watches # print current value in use |