-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP convert to tut * WIP on #122 * Update to use wrapping like Shapeless book * Comment control to turn on/off para indent * Smoothing flow between sections * Downgrade to fix Future appering as List() * Complete conversion of chapter 2. * Port chap 3 to tut * Correct typos, Fixes #119 * Port Chapter 4 to tut * Use loose lists * Convert chaopter 5 to tut * Correct typo; Fixes #120 * Remove un-needed continuation char * Port 2nd half of Chap 5 to tut * Remove another continuation char * Port chapter 6 to tut * Port chapter 7 to tut * Remove Play appendix * Silence //import messages * Convert chapter 1 exercises to Tut fixed #123 * Port chater 2 exercises to Tut, Fixes #124 * Port chapter 3 exercises to tut (and fix up typos) * Port chapter 4 exercises to Tut * Port Chapter 5 exercises to Tut and move them to the end of chqpter * Port joins chapter exercises to Tut * Port chapter 7 exercises to tut * Updated diagrams to match text * Mention tut * Thank the Slick team! * Lightbend the links * Use Slick 3.1.1 * Add commands for html and epub * Remove continuation char; bump template; note open source ext * Dave fixed all the problems * Remove note that we intro combinators. We do that in chatper 4 now * Fix output by running an action we said we ran * Improve example output * Fix language and formatting for chapter 5 * Fix incorrect link to section * Fix typos and formatting * Fix english and formatting * Fix formatting * IMprove description of Umderscore * JDK 8 or later * plain sql queries * add space around subsection numbering in TOC * typo sit's -> it's * removed scala error fixed in slick 3.1 and scala 2.12.1 * debounce there, correct word order for rest * moved sentence up a para, replace to with via * Paran hell * removed blank line * sbt files
- Loading branch information
Showing
41 changed files
with
3,755 additions
and
2,730 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,7 @@ Thumbs.db | |
npm-debug.log | ||
|
||
*.sublime-workspace | ||
|
||
target | ||
project/project | ||
project/target |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
lazy val root = project.in(file(".")) | ||
.settings(tutSettings) | ||
|
||
tutSourceDirectory := sourceDirectory.value / "pages" | ||
|
||
tutTargetDirectory := target.value / "pages" | ||
|
||
scalaVersion := "2.11.7" | ||
|
||
scalacOptions ++= Seq( | ||
"-deprecation", | ||
"-encoding", "UTF-8", | ||
"-unchecked", | ||
"-feature", | ||
"-Ywarn-dead-code", | ||
"-Xlint", | ||
"-Xfatal-warnings" | ||
) | ||
|
||
libraryDependencies ++= Seq( | ||
"com.typesafe.slick" %% "slick" % "3.1.1", | ||
"com.typesafe.slick" %% "slick-hikaricp" % "3.1.1", | ||
"com.h2database" % "h2" % "1.4.185", | ||
"ch.qos.logback" % "logback-classic" % "1.1.2", | ||
"joda-time" % "joda-time" % "2.6", | ||
"org.joda" % "joda-convert" % "1.2" | ||
) | ||
|
||
lazy val pdf = taskKey[Unit]("Builds the PDF version of the book") | ||
lazy val html = taskKey[Unit]("Build the HTML version of the book") | ||
lazy val epub = taskKey[Unit]("Build the ePub version of the book") | ||
lazy val all = taskKey[Unit]("Build all versions of the book") | ||
|
||
pdf := { tutQuick.value ; "grunt pdf" ! } | ||
html := { tutQuick.value ; "grunt html" ! } | ||
epub := { tutQuick.value ; "grunt epub" ! } | ||
all := { pdf ; html ; epub } | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: '2' | ||
services: | ||
book: | ||
image: underscoreio/book:latest | ||
volumes: | ||
- .:/source | ||
- ~/.ivy2:/root/.ivy2 |
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
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env bash | ||
docker-compose run book bash |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sbt.version=0.13.13 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
addSbtPlugin("org.tpolecat" % "tut-plugin" % "0.4.7") | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
chapter01 = { | ||
connectionPool = disabled | ||
url = "jdbc:h2:mem:chapter01" | ||
driver = "org.h2.Driver" | ||
keepAliveConnection = true | ||
} | ||
|
||
chapter02 = { | ||
connectionPool = disabled | ||
url = "jdbc:h2:mem:chapter02" | ||
driver = "org.h2.Driver" | ||
keepAliveConnection = true | ||
} | ||
|
||
chapter03 = { | ||
connectionPool = disabled | ||
url = "jdbc:h2:mem:chapter03" | ||
driver = "org.h2.Driver" | ||
keepAliveConnection = true | ||
} | ||
|
||
chapter04 = { | ||
connectionPool = disabled | ||
url = "jdbc:h2:mem:chapter04" | ||
driver = "org.h2.Driver" | ||
keepAliveConnection = true | ||
} | ||
|
||
chapter05 = { | ||
connectionPool = disabled | ||
url = "jdbc:h2:mem:chapter05" | ||
driver = "org.h2.Driver" | ||
keepAliveConnection = true | ||
} | ||
|
||
chapter06 = { | ||
connectionPool = disabled | ||
url = "jdbc:h2:mem:chapter06" | ||
driver = "org.h2.Driver" | ||
keepAliveConnection = true | ||
} | ||
|
||
chapter07 = { | ||
connectionPool = disabled | ||
url = "jdbc:h2:mem:chapter07" | ||
driver = "org.h2.Driver" | ||
keepAliveConnection = true | ||
} | ||
|
||
tsql { | ||
driver = "slick.driver.H2Driver$" | ||
db { | ||
connectionPool = disabled | ||
driver = "org.h2.Driver" | ||
url = "jdbc:h2:mem:chapter07tsql;INIT=runscript from 'src/main/resources/integration-schema.sql'" | ||
keepAliveConnection = false | ||
} | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
create table "message" ("content" VARCHAR NOT NULL,"id" BIGSERIAL NOT NULL PRIMARY KEY); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<configuration> | ||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder> | ||
<pattern>%-5level %logger{36} - %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<logger name="slick" level="INFO"/> | ||
<logger name="slick.ast" level="INFO"/> | ||
<logger name="slick.compiler" level="INFO"/> | ||
<logger name="slick.jdbc.JdbcBackend.statement" level="INFO"/> | ||
<logger name="slick.jdbc.StatementInvoker.result" level="INFO"/> | ||
|
||
<root level="info"> | ||
<appender-ref ref="STDOUT" /> | ||
</root> | ||
</configuration> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
--- | ||
papersize: "a4paper" | ||
papersize: "a5paper" | ||
fontsize: "8pt" | ||
geometry: "margin=.75in" | ||
... | ||
documentclass: "book" | ||
... |
Oops, something went wrong.