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 fte.tests.chronicle; | |
| import com.cognitect.transit.Reader; | |
| import com.cognitect.transit.TransitFactory; | |
| import com.cognitect.transit.Writer; | |
| import com.fasterxml.jackson.databind.ObjectMapper; | |
| import com.fasterxml.jackson.datatype.guava.GuavaModule; | |
| import com.fasterxml.jackson.datatype.jdk8.Jdk8Module; | |
| import net.openhft.chronicle.Chronicle; | |
| import net.openhft.chronicle.ChronicleQueueBuilder; |
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
| public class Batcher { | |
| static class Flusher implements Runnable { | |
| private ConcurrentLinkedQueue<Events.Event> queu = new ConcurrentLinkedQueue<>(); | |
| @Override | |
| public void run() { | |
| // Flush with defined interval or with special rules | |
| } | |
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
| *.class | |
| # Mobile Tools for Java (J2ME) | |
| .mtj.tmp/ | |
| # Package Files # | |
| *.jar | |
| *.war | |
| *.ear |
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
| public class TennisGame1 implements TennisGame { | |
| private int scoreP1 = 0; | |
| private int scoreP2 = 0; | |
| private String player1Name = "player1"; | |
| private String player2Name = "player2"; | |
| public TennisGame1(String player1Name, String player2Name) { | |
| this.player1Name = player1Name; | |
| this.player2Name = player2Name; |
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
| docker rm -fv rancher-agent rancher-agent-state | |
| rm -Rf /var/lib/rancher/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 fr.ccavalier.hibernate.course.requests; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.jdbc.core.JdbcTemplate; | |
| import org.springframework.stereotype.Repository; | |
| import java.util.List; | |
| /** | |
| * Created by charlotte on 20/02/17. |
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
| docker network create petclinic-db | |
| docker run -d --net=petclinic-db --network-alias=mysql -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=test mysql:5.5 | |
| docker build -t spring-petclinic:latest | |
| docker run -p 8080:8080 --net=petclinic-db spring-petclinic:latest | |
| for i in {1..5}; do; docker run --net=petclinic-db --network-alias=petclinic -d spring-petclinic:latest; done; |
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
| fun <P1, P2, R> ((P1, P2) -> R).curried(): (P1) -> (P2) -> R = { p1: P1 -> { p2: P2 -> this(p1, p2) } } | |
| fun <P1, P2, P3, R> ((P1, P2, P3) -> R).curried(): (P1) -> (P2) -> (P3) -> R = { p1: P1 -> { p2: P2 -> { p3: P3 -> this(p1, p2, p3) } } } | |
| fun <P1, P2, P3, P4, R> ((P1, P2, P3, P4) -> R).curried(): (P1) -> (P2) -> (P3) -> (P4) -> R = { p1: P1 -> { p2: P2 -> { p3: P3 -> { p4: P4 -> this(p1, p2, p3, p4) } } } } | |
| fun <P1, P2, P3, P4, P5, R> ((P1, P2, P3, P4, P5) -> R).curried(): (P1) -> (P2) -> (P3) -> (P4) -> (P5) -> R = { p1: P1 -> { p2: P2 -> { p3: P3 -> { p4: P4 -> { p5: P5 -> this(p1, p2, p3, p4, p5) } } } } } | |
| fun test(val1: Int, val2: String, val3: Float, val4: Double): String = "$val1, $val2, $val3, $val4" |
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 org.jetbrains.kotlin.gradle.tasks.KotlinCompile | |
| plugins { | |
| kotlin("jvm") version "1.3.21" | |
| kotlin("kapt") version "1.3.21" | |
| } | |
| repositories { | |
| mavenCentral() | |
| } |
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 org.jetbrains.kotlin.gradle.tasks.KotlinCompile | |
| plugins { | |
| kotlin("jvm") version "1.3.21" | |
| kotlin("kapt") version "1.3.21" | |
| } | |
| repositories { | |
| mavenCentral() | |
| } |
OlderNewer