Last active
August 29, 2015 14:18
-
-
Save davegurnell/8e9b463ec3c8574975db to your computer and use it in GitHub Desktop.
Doodle as a dependency. Create the `build.sbt` file below and type `sbt console` to start doodling. See http://underscore.io/training/courses/creative-scala for inspiration!
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.2" | |
resolvers += "Underscore Training" at "https://dl.bintray.com/underscoreio/training" | |
libraryDependencies += "underscoreio" %% "doodle" % "0.1.0" | |
initialCommands in console := """ | |
|import doodle.core._ | |
|import doodle.syntax._ | |
|import doodle.jvm._ | |
|import doodle.examples._ | |
""".trim.stripMargin |
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
bash$ sbt console | |
[info] Set current project to doodle-test (in build file:/Users/dave/dev/projects/doodle-test/) | |
[info] Updating {file:/Users/dave/dev/projects/doodle-test/}doodle-test... | |
[info] Resolving jline#jline;2.12 ... | |
[info] Done updating. | |
[info] Starting scala interpreter... | |
[info] | |
import doodle.core._ | |
import doodle.syntax._ | |
import doodle.jvm._ | |
import doodle.examples._ | |
Welcome to Scala version 2.11.2 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_45). | |
Type in expressions to have them evaluated. | |
Type :help for more information. | |
scala> draw(Triangle(100, 50) above Rectangle(80, 80)) // draw a house |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment