This file contains hidden or 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
import $ivy.`com.typesafe.akka::akka-actor:2.5.3`, akka.actor._ | |
import $ivy.`com.typesafe.akka::akka-stream:2.5.4`, akka.stream._ | |
import $ivy.`org.reactivemongo::reactivemongo:0.12.5`, reactivemongo.api._, reactivemongo.bson._, reactivemongo.api.collections.bson._ | |
import $ivy.`ch.qos.logback:logback-classic:1.2.3`, org.slf4j._ | |
import java.util.concurrent.Executors | |
import java.util.concurrent.atomic.AtomicLong | |
import scala.concurrent._ | |
import scala.concurrent.duration._ | |
import scala.language.postfixOps | |
import scala.util._ |
This file contains hidden or 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.fidesmo.logging | |
import cats.effect.IO | |
import org.typelevel.log4cats.slf4j.Slf4jLogger | |
import com.fidesmo.dto.RequestId | |
trait Logging { | |
import Logging._ | |
private val logger = Slf4jLogger.getLoggerFromClass[IO](getClass()) |
This file contains hidden or 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
var WebSocketClient = require('websocket').client; | |
const client = new WebSocketClient({ closeTimeout: 10 }); | |
const deliveryRequest = { | |
sessionId: 'test-session', | |
serviceId: 'slow', | |
cardId: { | |
cin: '0000000000000000', | |
iin: '31045100000000' |
This file contains hidden or 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 fix | |
import scalafix.v1._ | |
import scala.meta._ | |
import scala.reflect.internal.Importers | |
import scala.collection.mutable | |
// Scalafix rule to migrate from sp-commons 1.8.X to 2.0.0 | |
class MigrationToV2 extends SyntacticRule("MigrationToV2") { | |
final val movedModels = List("FieldModels", "BaseModels", "CcmModels", "Models", "CardModels") |
This file contains hidden or 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
// ==UserScript== | |
// @name MKR Schedule summary | |
// @author sergkh | |
// @namespace sergkh | |
// @description Tampermonkey script that shows hours summary for the MKR schedule | |
// @include *81.30.162.30/* | |
// @grant none | |
// @version 0.0.2 | |
// ==/UserScript== |
This file contains hidden or 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
//> using dep "io.github.fastfilter:fastfilter:1.0.2" | |
//> using dep "com.duprasville.guava:guava-probably:1.0" | |
// requires manual maven installation of xor-filter library: | |
//> using jar ~/.m2/repository/me/k11i/xor-filter/0.1.2-SNAPSHOT/xor-filter-0.1.2-SNAPSHOT.jar | |
//> using sourceJar ~/.m2/repository/me/k11i/xor-filter/0.1.2-SNAPSHOT/xor-filter-0.1.2-SNAPSHOT-sources.jar | |
import org.fastfilter.bloom.Bloom | |
import org.fastfilter.bloom.count.SuccinctCountingBloom | |
import scala.collection.mutable.Buffer |