I hereby claim:
- I am vihangpatil on github.
- I am vihang_patil (https://keybase.io/vihang_patil) on keybase.
- I have a public key whose fingerprint is 6FDF F1EC 8682 5CA7 5736 CF47 089C FBBB E120 EBC6
To claim this, I am signing this object:
alias bu='brew update && brew upgrade && brew cleanup' | |
alias dcu='docker compose up --build' | |
alias dcua='docker compose up --build --abort-on-container-exit' | |
alias dcd='docker compose down' | |
alias drmi='docker images -q --filter dangling=true | xargs docker rmi' | |
alias drmv='docker volume prune -f' | |
alias drmn='docker network prune -f' | |
alias drmc='docker ps -a -q | xargs docker rm -f' |
import arrow.core.NonEmptyList | |
import arrow.core.Validated | |
import arrow.core.ValidatedNel | |
import arrow.core.invalid | |
import arrow.core.nonEmptyListOf | |
import arrow.core.valid | |
interface ValidatedEffect<INVALID, VALID> { | |
suspend fun toValidatedNel(): ValidatedNel<INVALID, VALID> | |
} |
import java.io.File | |
data class Domain( | |
val fqdn: String, | |
val withoutTLD: String, | |
) | |
fun main() { | |
val emailDomainList = File("src/main/resources/customers.csv") | |
.readLines() |
import arrow.core.Either | |
import arrow.core.left | |
import arrow.core.right | |
import com.typesafe.config.ConfigFactory | |
import io.github.config4k.extract | |
import io.jsonwebtoken.JwtBuilder | |
import io.jsonwebtoken.Jwts | |
import io.jsonwebtoken.SignatureAlgorithm | |
import io.ktor.client.* | |
import io.ktor.client.call.* |
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper | |
import io.ktor.client.HttpClient | |
import io.ktor.client.request.post | |
import io.ktor.client.request.put | |
import io.ktor.content.TextContent | |
import io.ktor.http.ContentType | |
import java.util.* | |
class PubSubClient(label: String) { |
import kotlinx.coroutines.Dispatchers | |
import kotlinx.coroutines.launch | |
import kotlinx.coroutines.runBlocking | |
import kotlinx.coroutines.withContext | |
import org.junit.jupiter.api.Test | |
import kotlin.time.ExperimentalTime | |
import kotlin.time.measureTime | |
class DispatcherTest { |
package io.github.vihangpatil.sandbox | |
import java.time.Instant | |
import java.util.* | |
import java.util.concurrent.Executors | |
import java.util.concurrent.TimeUnit.MILLISECONDS | |
import kotlin.Comparator | |
data class Message( | |
val timestamp: Long, |
emoji[0]='🔥' | |
emoji[1]='💰' | |
emoji[2]='🐚' | |
emoji[3]='🏹' | |
emoji[4]='🖥' | |
emoji[5]='🎯' | |
emoji[6]='💯' | |
emoji[7]='🛡' | |
emoji[8]='🚀' | |
emoji[9]='🇮🇳' |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import java.util.LinkedList; | |
/** | |
* Put list of prefixes and their corresponding labels. | |
* Then get the label for longest matching prefix. | |
* | |
* @author Vihang Patil <vihang.patil@gmail.com> |
I hereby claim:
To claim this, I am signing this object: