Skip to content

Instantly share code, notes, and snippets.

View TheReprator's full-sized avatar
🎯
Focusing

Vikram Singh TheReprator

🎯
Focusing
View GitHub Profile
@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 {
@nosix
nosix / coroutineSample.kt
Last active July 8, 2024 14:26
Promise and async/await sample in Kotlin/JS
fun main(args: Array<String>) {
launch {
loadAllFiles()
}
}
fun launch(block: suspend () -> Unit) {
block.startCoroutine(object : Continuation<Unit> {
override val context: CoroutineContext get() = EmptyCoroutineContext
override fun resume(value: Unit) {}
@jemshit
jemshit / proguard-rules.pro
Last active June 13, 2024 07:25
Proguard Rules for Android libraries
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
-keepclassmembers class fqcn.of.javascript.interface.for.webview {
public *;
}
### RxJava, RxAndroid (https://gist.github.com/kosiara/487868792fbd3214f9c9)
-keep class rx.schedulers.Schedulers {
public static <methods>;