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 👋

Pinned Loading

  1. Retrofit-style JSON-RPC client in Ko...
    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...
    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...
    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...
    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...
    1
    import re
    2
    import sys
    3
    
                  
    4
    def convert(s):
    5
    	parts = s.split('_')