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
// plain old Java | |
import rx.Observable; | |
import rx.util.functions.Action1; | |
public class Main { | |
public static void main(String[] args) { | |
String[] names = new String[] { | |
"foo", "bar", "baz" | |
}; |
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.slick.driver.ExtendedProfile | |
import scala.slick.driver.H2Driver.simple._ | |
import Database.threadLocalSession | |
abstract class Drinks(tableName: String) extends Table[(Long, Long)](tableName) { | |
def pk = column[Long]("pk") | |
def pkCup = column[Long]("pkCup") | |
def * = pk ~ pkCup | |
} |
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
#light | |
namespace johofer | |
open Robocode | |
type SharpyTheFirst() = | |
inherit Robot() |
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 de.johoop.jacoco4sbt._ | |
import JacocoPlugin._ | |
organization := "my.organization" | |
name := "my-project" | |
scalaVersion := "2.9.1" | |
seq(jacoco.settings : _*) |
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
// copy all jars from Scalatron's distribution (bin directory) into lib/ | |
lazy val botDirectory = settingKey[File]("bot-directory") | |
lazy val play = taskKey[Int]("Plays a game of Scalatron, returns the exit code upon completion.") | |
lazy val Versions = new { | |
lazy val Specs2 = "3.8.6" | |
} | |
lazy val root = (project in file(".")).settings( |