Hi! I'm your first Markdown file in StackEdit. If you want to learn about StackEdit, you can read me. If you want to play with Markdown, you can edit me. If you have finished with me, you can just create new files by opening the file explorer on the left corner of the navigation bar.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example | |
import kotlinx.serialization.json.* | |
import org.junit.Assert.assertEquals | |
import org.junit.Test | |
class JsonDslTest { | |
@Test | |
fun `declare complex object`() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>+++++>>>+>+[>>>>[+[++[-][+]+>+][-]->]->>[+[++[-]++[-]+[-]++[-]+[-][+]]>[<]]+>>[+[++[-][-][+][+]]>[<]]->>[+[++[-]>---[+]]>+]->>[++[+[-][-]+[-[+]][+]]>[<][<]]->>[++[++[-]-[+]]>[<][-]]->>[+[++[-]>---[+]]+>+]->>[+[+[-]++[-][-][+]][-]]]->>[[++++[-][+][+]]]>[---[+]]<[+[+++[-][-]]]->>[+[+[-][+][+][-][<]]>[<]][+[][[+++++++]>>[+++][+][-][<]]>[<]][+[+[+++[-][+]]]>[---[+]]<[+[+++[-]>][-]]->>[+[++[-][++]]+[+++[-]]>>[<]]-[+[<]+[+++[-][]]]>[---[+]]<[+[++[-]]]->>[+[+++[-][+]]]>[---[+]]<[+[+++[-]>][-]]->>[+[++[-][++]]+[+++[-]>][-]]->>[+[++[-][++]]+[+++[-]]>>[<]]-[+[+++[-]][<]]-[>>[+++[-]]]]->+[----[+]]->++[++++[--[-]-[+][+]]>[<]]->>[+[++[-[-]]]>[<]]>>[+[+++[-][+]]>[<]]->>[+[+++[-][+][-][+]]>[<]]->>[+[+++[-][-][+][+]]]>[---[+]]<[+[++>[-][-][-][-]]]->>[+[++[-][+][+]]]>[---[+]]<[+[+++[->]]]->>[+[++[-][+][+][+][+][+][+]]]>[---[+]]<[+[[+]]]>[---[+]]< |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>---->-<-[>>[++[+>[+]-]]]->>[+<[++++[-]]]->>[>+++[>[+++[-][+]+>+]>]+++>[>[+++[-][+][>++]>]]>[-]+++[>[+++[-][+][>++]>]]>[-]++++[>[+++[-][-]]-][>>>-]++++[>[+]+]]->>[>++[>[+++[-][+]+>+]>]++>-[>[+++[-][++]+>+]+]>>]->>[+[+[-][][+]]>[<]]->>[+[+++[-][-][+]]>[<]]->>[+[++[-][+]]>[<]]->>[++[+[-][+]]>[<]]->>[+[++[-][+]]>[<]]->>[+[++[-][+]]>[<]]->>[++[+[-][+]]]>[---[+]]<[+[+++[-]]]->+>[+[++[-][+][+]]]>[---[+]]<[+[+++>[-]]]->+>[+[++[-][+][+][+]]]>[---[+]]<[[+[+++[-]]]]>[---[+]]<[[+[+]]>>>[+[+[-]]]]>[---[+]]<[[+[+]]>>>[+[++[-]]>[<]]->>[+[+++[-]-]]]->>[+[++[-][+][+]]]>[---[+]]<[[+[+]]>>>[-]++++[++[-][+]]>[<]]- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.animation; | |
import android.view.animation.Interpolator; | |
public final class PulseInterpolator implements Interpolator { | |
private final int duration; | |
private final int offFor; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* When used at the end of a `when` block which return value's not used, forces all branches to be listed. | |
*/ | |
@Suppress("NOTHING_TO_INLINE") | |
inline fun <T> T?.exhaustive() = this |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface A { | |
fun getInt(): Int | |
} | |
interface B { | |
fun getString(): String | |
} | |
sealed class Union<TA, TB> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example | |
import androidx.lifecycle.LiveData | |
import kotlinx.coroutines.Dispatchers | |
import kotlinx.coroutines.runBlocking | |
import kotlinx.coroutines.withContext | |
import java.util.concurrent.CountDownLatch | |
import java.util.concurrent.TimeUnit | |
import java.util.concurrent.atomic.AtomicReference |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AutomaticDripCoffeeMaker(inner: CoffeeMaker) : CoffeeMaker { | |
public Heater heater; | |
public Pump pump; | |
public AutomaticDropCoffeeMaker() { | |
super(); | |
} |
NewerOlder