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.Function; | |
import java.util.*; | |
public class DB { | |
static void println(String s) { System.out.println(s); } | |
// java.sql.Connection | |
static class Connection implements AutoCloseable { | |
@Override public void close() { println("closed"); } | |
} |
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
HTTP ERROR 500 | |
Problem accessing /. Reason: | |
Server Error | |
Caused by: | |
org.fusesource.scalate.CompilerException: Compilation failed: | |
error: error while loading AnnotatedElement, class file '/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/rt.jar(java/lang/reflect/AnnotatedElement.class)' is broken | |
(class java.lang.RuntimeException/bad constant pool tag 18 at byte 76) |
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
scalaVersion := "2.10.4" | |
resolvers += "Sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots" | |
lazy val scalikejdbcVersion = "1.7.5-SNAPSHOT" | |
libraryDependencies ++= Seq( | |
"org.scalikejdbc" %% "scalikejdbc" % scalikejdbcVersion, | |
"org.scalikejdbc" %% "scalikejdbc-interpolation" % scalikejdbcVersion, | |
"org.slf4j" % "slf4j-simple" % "1.7.6" |
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
libraryDependencies ++= Seq( | |
"org.scalikejdbc" %% "scalikejdbc" % "1.7.4", | |
"org.scalikejdbc" %% "scalikejdbc-interpolation" % "1.7.4", | |
"com.h2database" % "h2" % "[1.3,)", | |
"ch.qos.logback" % "logback-classic" % "[1.1,)" | |
) |
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
scalaVersion := "2.10.4" | |
libraryDependencies ++= Seq( | |
"org.scalikejdbc" %% "scalikejdbc" % "1.7.4", | |
"org.scalikejdbc" %% "scalikejdbc-interpolation" % "1.7.4", | |
"com.h2database" % "h2" % "[1.3,)", | |
"ch.qos.logback" % "logback-classic" % "[1.1,)" | |
) |
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
scalaVersion := "2.11.0" | |
libraryDependencies ++= Seq( | |
"org.scalikejdbc" %% "scalikejdbc" % "2.0.0-beta1", | |
"org.scalikejdbc" %% "scalikejdbc-interpolation" % "2.0.0-beta1", | |
"com.h2database" % "h2" % "[1.3,)", | |
"ch.qos.logback" % "logback-classic" % "[1.0,)" | |
) | |
resolvers += "sonatype releases" at "https://oss.sonatype.org/content/repositories/releases" |
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
/* :paste | |
import scalikejdbc._ | |
// initialize JDBC driver & connection pool | |
Class.forName("org.h2.Driver") | |
ConnectionPool.singleton("jdbc:h2:mem:hello", "user", "pass") | |
// ad-hoc session provider on the REPL | |
implicit val session = AutoSession |
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
[error] SERVER ERROR: Maximum threads for service reached url=http://repo1.maven.org/maven2/org/bouncycastle/bcpkix-jdk15on/1.49/bcpkix-jdk15on-1.49.jar.sha1 | |
[warn] [FAILED ] org.bouncycastle#bcpkix-jdk15on;1.49!bcpkix-jdk15on.jar: The HTTP response code for http://repo1.maven.org/maven2/org/bouncycastle/bcpkix-jdk15on/ |
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
$ ./skinny package | |
[info] Loading global plugins from /Users/seratch/.sbt/0.13/plugins | |
[info] Loading project definition from /Users/seratch/Desktop/skinny-blank-app/project | |
[info] Set current project to skinny-blank-app (in build file:/Users/seratch/Desktop/skinny-blank-app/) | |
[info] Updating {file:/Users/seratch/Desktop/skinny-blank-app/}build... | |
[info] Resolving org.scoverage#scalac-scoverage-plugin_2.11;0.99.5 ... | |
[info] Done updating. | |
[info] Generating /Users/seratch/Desktop/skinny-blank-app/task/target/scala-2.11/resource_managed/main/rebel.xml. | |
[info] Running TaskRunner assets:precompile | |
[success] Total time: 1 s, completed 2014/06/13 1:19:15 |
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
$ sbt console | |
<console>:35: error: erroneous or inaccessible type | |
def apply(g: ResultName[Group])(rs: WrappedResultSet): Group = Group(rs.long(g.id), rs.get(g.name)) | |
^ | |
[success] Total time: 108 s, completed 2014/07/02 12:51:30 |
OlderNewer