- 2018 Mac Mini
- Intel Core i7-8700B, 6-cores @3.2GHz
- 32 GB DDR4 RAM
- 512GB Internal Volume
- ASUS ROG SWIFT PG279Q
- HDMI (macOS)
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
// Deps | |
interface Database | |
interface Network | |
// Child | |
interface ChildRepository | |
class Child(dependencies: Dependencies) { |
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 arrow.rules.test | |
import arrow.Kind | |
import arrow.core.Either | |
import arrow.core.EitherPartialOf | |
import arrow.core.Nel | |
import arrow.core.NonEmptyList | |
import arrow.core.Validated | |
import arrow.core.ValidatedPartialOf | |
import arrow.core.extensions.either.applicativeError.applicativeError |
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.und0.vocabularymate.x.utils | |
import androidx.annotation.MainThread | |
import androidx.lifecycle.LifecycleOwner | |
import androidx.lifecycle.MutableLiveData | |
import androidx.lifecycle.Observer | |
import java.util.concurrent.atomic.AtomicInteger | |
/** | |
* A [MutableLiveData] variant that introduces a _volatile_ behavior. Namely, it has no "memory" of values set |
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
@JvmName("thenErrorObservable") | |
fun <T> OngoingStubbing<Observable<T>>.thenError(throwable: Throwable) { | |
thenReturn(Observable.error(throwable)) | |
} | |
fun OngoingStubbing<Completable>.thenComplete() { | |
thenReturn(Completable.complete()) | |
} | |
@JvmName("thenErrorCompletable") |
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
inline fun <A> A.logWith(logger: Logger, block: Logger.(A) -> Unit) : A = | |
this.also { logger.block(it) } | |
// With interface injection | |
interface HasLog { | |
val log: Logger | |
fun <A> A.log(block: Logger.(A) -> Unit) : A = | |
logWith(logger, block) | |
} |
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
### Download Vysor App | |
https://play.google.com/store/apps/details?id=com.koushikdutta.vysor | |
- Execute Vysor on Phone | |
- Enable ADB Settings (Open Developer Options -> Back) | |
- Enable ADB Debugging | |
### Download ADB drivers & Install | |
https://adb.clockworkmod.com/ |
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
<html> | |
<body> | |
<h2>Privacy Policy</h2> | |
<p>[Individual or Company Name] built the [App Name] app as a [open source | free | freemium | ad-supported | commercial] app. This SERVICE is provided by [Individual or company name] [at no cost] and is intended | |
for use as is.</p> | |
<p>This page is used to inform website visitors regarding [my|our] policies with the collection, use, and | |
disclosure of Personal Information if anyone decided to use [my|our] Service.</p> | |
<p>If you choose to use [my|our] Service, then you agree to the collection and use of information in | |
relation with this policy. The Personal Information that [I|we] collect are used for providing and | |
improving the Service. [I|We] will not use or share your information with anyone except as described |
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
public final class Result<S, F> { | |
private final Optional<S> success; | |
private final Optional<F> failure; | |
public Result(Optional<S> success, Optional<F> failure) { | |
this.success = success; | |
this.failure = failure; | |
} |