Skip to content

Instantly share code, notes, and snippets.

View Dwite's full-sized avatar
🔬
Idea-rich, sleep-poor: that's the dad-indie hacker's life!

Valerii Kuznietsov Dwite

🔬
Idea-rich, sleep-poor: that's the dad-indie hacker's life!
View GitHub Profile
import kotlin.math.max
data class Location(val latitude: Double, val longitude: Double)
fun longestUncommonSubsequence(arr1: List<Location>, arr2: List<Location>): Pair<Int, Int> {
if (arr1 == arr2) {
// If both lists are equal, return -1 as both start and end indices
return Pair(-1, -1)
}
Exception java.lang.IndexOutOfBoundsException: setSpan (-1 ... 24) starts before 0
at android.text.SpannableStringInternal.checkRange (SpannableStringInternal.java:499)
at android.text.SpannableStringInternal.setSpan (SpannableStringInternal.java:199)
at android.text.SpannableStringInternal.setSpan (SpannableStringInternal.java:186)
at android.text.SpannableString.setSpan (SpannableString.java:60)
at androidx.compose.ui.text.platform.extensions.SpannableExtensions_androidKt.setSpan (SpannableExtensions.android.kt:81)
at androidx.compose.ui.text.platform.extensions.SpannableExtensions_androidKt.setColor-RPmYEkk (SpannableExtensions.android.kt:507)
at androidx.compose.ui.text.platform.AndroidAccessibilitySpannableString_androidKt.setSpanStyle (AndroidAccessibilitySpannableString.android.kt:95)
at androidx.compose.ui.text.platform.AndroidAccessibilitySpannableString_androidKt.toAccessibilitySpannableString (AndroidAccessibilitySpannableString.android.kt:63)
at androidx.compose.ui.platform.Andro
@Dwite
Dwite / thredup-shop-app-overview.md
Created January 15, 2026 13:45
ThredUp Shop App - New Engineer Overview

ThredUp Shop App - Engineering Overview

What Is This?

A modern React e-commerce PWA powering thredup.com. It's an isomorphic (server-side rendered) application built for performance and maintainability.


Tech Stack

@Dwite
Dwite / p2p_analytics_kpi_spec.md
Created January 15, 2026 15:45
P2P Seller Funnel Analytics - KPI Event Specification for Snowplow (Android & iOS)

P2P Seller Funnel Analytics - KPI Event Specification

Overview

This document provides the exact Snowplow event specifications for P2P seller funnel KPIs on both Android and iOS platforms. Both platforms use shared KMM analytics code, ensuring consistent event tracking.


Critical Note: Page Type Schema Limitation