Skip to content

Instantly share code, notes, and snippets.

View TheReprator's full-sized avatar
🎯
Focusing

Vikram Singh TheReprator

🎯
Focusing
View GitHub Profile
@Rohit-554
Rohit-554 / DateCarousel.kt
Last active December 6, 2025 00:01
This composable displays a horizontally scrollable week-style date selector with a 3D rotating dial effect. As the user scrolls, each date card scales, rotates, and fades based on its distance from the center, making the middle item appear highlighted. Tapping a date selects it and automatically scrolls The UI uses simple Material text styles, s…
// add this to your commonMain.dependencies
// implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.7.1")
@OptIn(ExperimentalTime::class)
@Composable
fun CarouselCalendar() {
//// Clock.System.now() -> Output: 2025-11-15T14:30:45.123456789Z
//// (Year-Month-Day T Hour:Minute:Second.Nanoseconds Z for UTC)
@NyCodeGHG
NyCodeGHG / JWTExtension.kt
Last active January 7, 2024 11:14
ktor JWT testing blog post
package dev.nycode.ktor.jwt.testing
import com.auth0.jwt.JWT
import com.auth0.jwt.JWTVerifier
import com.auth0.jwt.algorithms.Algorithm
import org.junit.jupiter.api.extension.ExtensionContext
import org.junit.jupiter.api.extension.ParameterContext
import org.junit.jupiter.api.extension.ParameterResolver
class JWTExtension : ParameterResolver {