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 typeclasses | |
import json._ | |
trait Expression[A] { | |
def value(expression: A): Int | |
} | |
case class Number(value: Int) |
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
.tooltip { | |
background: #eee; | |
box-shadow: 0 0 5px #999999; | |
color: #333; | |
display: none; | |
font-size: 12px; | |
left: 130px; | |
padding: 10px; | |
position: absolute; | |
text-align: center; |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
.bar { | |
fill: steelblue; | |
} | |
.x.axis path { | |
fill: none; |
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.raptorintelligence | |
import akka.http.specs2.RouteTestSpecs2 | |
import org.specs2.concurrent.ExecutionEnv | |
import org.specs2.mutable.Specification | |
class ConnectotMicroserviceTest extends Specification with RouteTestSpecs2 { | |
"routes are tested" >> { implicit ee: ExecutionEnv => | |
Get("/test") ~> ConnectorMicroservice.route ~> checkEntity must equalTo("this is test").await |
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
// ==UserScript== | |
// @name JIRA2Git | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://ceai-io.atlassian.net/browse/* | |
// @grant none | |
// ==/UserScript== | |
(function() { |
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 raptorclientapi | |
import io.circe.Encoder | |
import io.circe.parser.parse | |
import sangria.schema.{Schema, SchemaChange} | |
import scalaj.http.{Http => SJHttp} | |
import sangria.marshalling.circe.CirceInputUnmarshaller | |
import io.circe._ | |
import io.circe.generic.semiauto._ |
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
import shapeless._ | |
import shapeless.labelled.{FieldType, field} | |
import shapeless.ops.hlist.{Align, ToTraversable, ZipWith} | |
object ShapelessTest { | |
def zipClasses[A, B, P <: Poly2, ARepr <: HList, BRepr <: HList, R <: HList, X] | |
(a: A, b: B, f: P)( | |
implicit |
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
#!/bin/bash | |
export EXTERNAL_PORT=$(cat conf/application.conf | awk -F'=' '/web.port/ {printf $2}' | tr -d ' ') | |
# this is the port for externalAddress | |
export TEMP_PORT=3331 | |
echo "" | |
echo "Connecting localhost:$EXTERNAL_PORT to <SERVER>:8076" | |
echo "As externalAddress in application.conf use \"http://localhost:$TEMP_PORT\"" | |
echo "" |
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.upstartcommerce.rating | |
import zio.ZIO | |
import zio.console.Console | |
object MiniTest extends zio.App { | |
trait GetUser { | |
def user: User |
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
version: '3.3' | |
services: | |
db: | |
image: mysql:latest | |
volumes: | |
- db_data:/var/lib/mysql | |
ports: | |
- 3306:3306 | |
restart: always |
OlderNewer