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 medicover | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://mol.medicover.pl/* | |
// @grant none | |
// ==/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
package com.michalkowol.hub | |
import com.softwareberg.HttpMethod | |
import com.softwareberg.HttpRequest | |
import com.softwareberg.JsonMapper | |
import com.softwareberg.SimpleHttpClient | |
import org.jsoup.Jsoup | |
import org.junit.Test | |
class HubSpec { |
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
mysql --host=localhost --port=3306 --protocol=TCP --user=root --password=coderslab coderslab |
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 com.michalkowol.vip.model.bar.{ AppWithBrand, Brand, App } | |
import spray.caching.LruCache | |
import scala.concurrent.{ Future, ExecutionContext } | |
import scala.concurrent.duration.FiniteDuration | |
object CachingBarClientWrapper { | |
val defaultCacheDuration = FiniteDuration(30, "s") | |
} |
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.michalkowol.aapi | |
import java.util.concurrent.TimeUnit | |
import akka.dispatch._ | |
import com.typesafe.config.Config | |
import org.slf4j.MDC | |
import scala.concurrent.ExecutionContext | |
import scala.concurrent.duration.{Duration, FiniteDuration} |
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.michalkowol.authapi.core.actor.sitecontent | |
import akka.actor.{ActorRef, FSM} | |
import com.paypal.cascade.akka.actor.ServiceActor | |
object FSMExample { | |
sealed trait State | |
object State { | |
case object State1 extends State | |
case object State2 extends State |
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.michalkowol | |
import java.util.concurrent.TimeUnit | |
import akka.actor.{Props} | |
import com.paypal.cascade.akka.actor.{ServiceActor, ActorSystemWrapper} | |
import com.paypal.cascade.common.app.CascadeApp | |
import com.paypal.cascade.http.actor.SprayActor | |
import com.paypal.cascade.http.resource.ResourceDriver | |
import com.paypal.cascade.http.server.SprayConfiguration |
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 akka.actor.{ActorSystem, Props} | |
import akka.io.IO | |
import spray.can.Http | |
import spray.routing._ | |
object Boot { | |
def main(args: Array[String]): Unit = { | |
implicit val system = ActorSystem("foo") | |
val api = system.actorOf(Props[Api], "api") |
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.michal | |
trait A[+Self <: A[_]] { | |
def a: Int | |
def b: Int | |
def addToA(plus: Int): Self = makeCopy(a + plus, b) | |
def makeCopy(newA: Int, newB: Int): Self | |
} | |
case class B(a: Int, b: Int) extends A[B] { |
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
trait Cameo { | |
this: Actor => | |
def originalSender: ActorRef | |
def timeout: FiniteDuration = 60.seconds | |
def sendResponseAndShutdown(response: AnyRef) = { | |
timeoutMessenger.cancel() | |
originalSender ! response | |
context.stop(self) |
NewerOlder