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 scala.util.parsing.combinator._ | |
object Termination extends Enumeration { | |
type Termination = Value | |
val white, black, draw = Value | |
} | |
import Termination._ | |
case class Game(tags: List[Tag], moves:List[MoveElement], termination: Termination) | |
case class Tag(name: String, value: 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
import groovy.net.xmlrpc.XMLRPCServerProxy as Proxy | |
class JiraProxy extends Proxy { | |
protected final token | |
JiraProxy(url, login, password) { | |
super(url) | |
this.token = super.invokeMethod("jira1.login", [login, password]) | |
} | |
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 jenkinsci.plugins.mavenpropsinject; | |
import hudson.Extension; | |
import hudson.Launcher; | |
import hudson.maven.AbstractMavenProject; | |
import hudson.maven.MavenModule; | |
import hudson.maven.MavenModuleSet; | |
import hudson.model.AbstractBuild; | |
import hudson.model.AbstractProject; | |
import hudson.model.BuildListener; |
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.chelonix.selenium; | |
import java.util.ArrayList; | |
import java.util.Iterator; | |
import java.util.List; | |
import com.dumbster.smtp.SimpleSmtpServer; | |
import com.dumbster.smtp.SmtpMessage; | |
import com.google.common.collect.Lists; | |
import org.junit.rules.ExternalResource; |
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
public enum Coin | |
{ | |
FOO(1), | |
BAR(7), | |
QIX(11), | |
BAZ(21); | |
private final int value; | |
Coin(int value) |
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.chelonix.codestory.evaluator; | |
import java.io.IOException; | |
import java.math.BigDecimal; | |
import java.util.Iterator; | |
import java.util.Stack; | |
/** | |
* | |
* @author sirot |
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.chelonix.codestory.jajascript; | |
import java.util.List; | |
/** | |
* ... | |
* | |
* @author sirot | |
*/ | |
public interface Rental |
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.chelonix.codestory.elevator.serializer; | |
import java.io.IOException; | |
import com.chelonix.codestory.elevator.domain.Command; | |
import com.fasterxml.jackson.core.JsonGenerator; | |
import com.fasterxml.jackson.core.JsonProcessingException; | |
import com.fasterxml.jackson.databind.JsonSerializer; | |
import com.fasterxml.jackson.databind.SerializerProvider; | |
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
node { | |
env.JAVA_HOME="${tool 'JDK8'}" | |
stage 'Build' | |
git url: 'https://github.com/jcsirot/atmosphere-calculator.git' | |
def mvnHome = tool "maven-3.2.2" | |
sh "${mvnHome}/bin/mvn clean package" | |
step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*.xml']) | |
stage 'Build Docker image' |
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 java.util.function.*; | |
public class Test { | |
private final String s; | |
public Test(String s) { | |
this.s = s; | |
} | |
public Consumer<String> c = (x) -> System.out.println(x + "/" + s); |
OlderNewer