Skip to content

Instantly share code, notes, and snippets.

@xuwei-k
Created August 4, 2011 02:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xuwei-k/1124350 to your computer and use it in GitHub Desktop.
Save xuwei-k/1124350 to your computer and use it in GitHub Desktop.
xsbtscript https://github.com/paulp/xsbtscript をつかってみた
#!/usr/bin/env xsbtscript
!#
/***
scalaVersion := "2.9.0-1"
libraryDependencies ++= Seq(
"com.mongodb.casbah" %% "casbah-core" % "2.1.5-1"
)
*/
import com.mongodb.casbah.Imports._
val obj = DBObject("foo" -> "bar")
println(obj)
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
{ "foo" : "bar"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment