This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| import org.joda.time.DateTime | |
| import org.joda.time.DateTimeFieldType | |
| import org.joda.time.format.{ DateTimeFormat, DateTimeFormatter } | |
| import scala.util.Try | |
| object utcDateTime { | |
| val UTC = org.joda.time.DateTimeZone.UTC | |
| def apply(year: Int, month: Int = 1, day: Int = 1, hour: Int = 0): DateTime = |
| scala> val config = com.typesafe.config.ConfigFactory.parseString(""" | |
| | a.b.c = 42 | |
| | d.e.f = hello world | |
| | g.h.i = 2m | |
| | """) | |
| config: com.typesafe.config.Config = Config(SimpleConfigObject({"a":{"b":{"c":42}},"d":{"e":{"f":"hello world"}},"g":{"h":{"i":"2m"}}})) | |
| scala> val Alpha = Setting[Int]("a.b.c") | |
| Alpha: commands.common.SimpleSetting[Int] = a.b.c |
| //... | |
| it("should support Buffer !! - #268") { | |
| val a = scala.collection.mutable.Buffer.empty[Int] | |
| for (i <- 0 to 10) { | |
| val p : Int = a.length / 2 | |
| expect(s"${a.length} / 2 -> $p, $i").toEqual("...") | |
| a.insert(p, i) | |
| expect(a.mkString(", ")).toEqual("...") | |
| } |
| diff --git a/src/main/resources/00boot.js b/src/main/resources/00boot.js | |
| index 9f2a0bf..d8961f5 100644 | |
| --- a/src/main/resources/00boot.js | |
| +++ b/src/main/resources/00boot.js | |
| @@ -1,3 +1,3 @@ | |
| -function cp(){}; | |
| -function ScalaJSBundle(){}; | |
| -ScalaJS.modules.example_ScalaJSExample().main(); | |
| +function xcp(){}; | |
| +function xScalaJSBundle(){}; |
| name := "Scala Test Case: not found" |
| # Usage: | |
| # progresstinate "Building $SERVER_WAR" \ | |
| # mvn clean install | |
| progresstinate() { | |
| msg="$1"; shift; args="$@"; symbol="-" | |
| printf "$msg [$symbol]" | |
| "$@" | while read line; do | |
| symbol="$(echo "$symbol" | tr -- '-/|\\' '/|\\-')" | |
| printf "\b\b$symbol]" | |
| done |