Skip to content
View ntoskrnl's full-sized avatar
β˜•
β˜•

Block or report ntoskrnl

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
ntoskrnl/README.md

Hi, I'm Anton Danshin πŸ‘‹

  • πŸ§‘πŸ»β€πŸ’» Developing in Kotlin for Android.
  • πŸ”¨ Currently working at Instacart.
  • πŸ€” Actively exploring Jetpack Compose
  • Building Android app for iProxy.online

Pinned Loading

  1. Retrofit-style JSON-RPC client in Ko... Retrofit-style JSON-RPC client in Kotlin (with gson serialization/deserialization)
    1
    fun <T, B> createJsonRpcService(service: Class<T>,
    2
                                    client: JsonRpcClient<B>,
    3
                                    resultDeserializer: Deserializer<B>,
    4
                                    logger: (String) -> Unit = {}): T {
    5
    
                  
  2. Listen to soft keyboard visibility i... Listen to soft keyboard visibility in Android
    1
    /**
    2
     * Posts true on soft keyboard open, false on close.
    3
     * This creates a strong reference to activity instance. Make sure to call ActivitySubscription.dispoose()
    4
     * @param visibleThresholdDp if global activity layout changed more than by 100(default) dp
    5
     *
  3. Circular avatar placeholder with ini... Circular avatar placeholder with initials in Jetpack Compose
    1
    import androidx.annotation.ColorInt
    2
    import androidx.core.graphics.ColorUtils
    3
    import kotlin.math.absoluteValue
    4
    
                  
    5
    @ColorInt
  4. Container for presenters with persis... Container for presenters with persistent state
    1
    class PresenterRetainedFragment : Fragment() {
    2
    
                  
    3
        private val presenters = mutableMapOf<String, Any>()
    4
    
                  
    5
        private var savedState: Bundle? = null
  5. Python script that converts camel ca... Python script that converts camel case unit test names a_b_c to `a - b - c`.
    1
    import re
    2
    import sys
    3
    
                  
    4
    def convert(s):
    5
    	parts = s.split('_')