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
git config core.autocrlf false && \ | |
git config core.eol lf && \ | |
git config core.fileMode false |
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.mkring | |
import com.beust.klaxon.Converter | |
import com.beust.klaxon.Json | |
import com.beust.klaxon.JsonValue | |
import com.beust.klaxon.Klaxon | |
import java.net.URL | |
import java.text.DecimalFormat | |
import java.time.Month | |
import java.time.YearMonth |
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
tasks.withType<Jar> { | |
manifest { | |
attributes["Main-Class"] = "<todo> | |
} | |
from(configurations.runtime | |
.filterNot { it.path.endsWith(".pom") } | |
.map { | |
if (it.isDirectory) { | |
it | |
} else { |
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
fun main(args: Array<String>) { | |
println("start") | |
val result = tryy { | |
circuitBreak { | |
rateLimit { | |
timeLimit { | |
"result string" | |
} | |
} |
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.oneandone.consumer.acs.utils.caching | |
import org.slf4j.LoggerFactory | |
import java.time.Instant | |
import java.time.temporal.ChronoUnit | |
import kotlin.reflect.KProperty | |
fun <T> cached(timeout: Long, timeUnit: ChronoUnit, initializer: () -> T): LazyRefreshCache<T> = | |
LazyRefreshCache(timeout, timeUnit, initializer) |