Skip to content

Instantly share code, notes, and snippets.

@gaara87
gaara87 / ImmutableListJsonAdapterFactory.kt
Created March 10, 2023 09:39
Moshi json adapter factory for KotlinX's ImmutableList
import com.squareup.moshi.JsonAdapter
import com.squareup.moshi.JsonReader
import com.squareup.moshi.JsonWriter
import com.squareup.moshi.Moshi
import com.squareup.moshi.rawType
import kotlinx.collections.immutable.ImmutableList
import kotlinx.collections.immutable.persistentListOf
import java.lang.reflect.ParameterizedType
import java.lang.reflect.Type
@gaara87
gaara87 / .zshrc
Created November 13, 2019 00:56
Rebasing from master
knead(){
current_branch=`git branch --show-current`
git checkout master
git pull
arc feature $current_branch
git rebase master
}