Skip to content

Instantly share code, notes, and snippets.

@CXwudi
CXwudi / DecomposeValueUtil.kt
Last active October 23, 2024 17:13
Conversion between Decompose Value and Flow
package mikufan.cx.conduit.frontend.logic.component.util
import com.arkivanov.decompose.Cancellation
import com.arkivanov.decompose.value.Value
import com.arkivanov.mvikotlin.core.rx.observer
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.ExperimentalForInheritanceCoroutinesApi
import kotlinx.coroutines.channels.awaitClose
import kotlinx.coroutines.flow.FlowCollector
ikuuu.me
dog.ssrdog.com
@CXwudi
CXwudi / CmsPageUtils.java
Last active April 10, 2023 17:34
Complex Scenario implementation of CMS using Cucumber, taken from the private repo for COMP5903
package scs.comp5903.cmscucumber.util;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
/**
* @author CX无敌
* @date 2022-06-03
*/
public class CmsPageUtils {
miku-proxy