Skip to content

Instantly share code, notes, and snippets.

⌨️
I may be slow to respond.

Leopold Baik AgustaRC

⌨️
I may be slow to respond.
Block or report user

Report or block AgustaRC

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pablisco
pablisco / ReflexionExtensions.kt
Created Sep 3, 2017
Port of Gson's TypeToken to Kotlin
View ReflexionExtensions.kt
import java.io.Serializable
import java.lang.reflect.*
import java.lang.reflect.Array as ArrayType
import java.util.*
val EMPTY_TYPE_ARRAY: kotlin.Array<Type> = emptyArray()
/**
* Returns a new parameterized type, applying {@code typeArguments} to
* {@code rawType} and enclosed by {@code ownerType}.
@yitz-grocerkey
yitz-grocerkey / ErrorInterceptor.kt
Created Jun 13, 2017
Retrofit RxJava global error handling in Kotlin
View ErrorInterceptor.kt
// for any errors that should be handled before being handed off to RxJava.
// In other words global error logic.
// An example might be 401 when not logging in
import okhttp3.Interceptor
import okhttp3.Response
class ErrorInterceptor: Interceptor {
override fun intercept(chain: Interceptor.Chain?): Response {
View scala-cheatsheet.md

This cheat sheet originated from the forum, credits to Laurent Poulain. We copied it and changed or added a few things.

Evaluation Rules

  • Call by value: evaluates the function arguments before calling the function
  • Call by name: evaluates the function first, and then evaluates the arguments if need be
    def example = 2      // evaluated when called
    val example = 2      // evaluated immediately
@rxaviers
rxaviers / gist:7360908
Last active Oct 21, 2019
Complete list of github markdown emoji markup
View gist:7360908

People

:bowtie: :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:
You can’t perform that action at this time.