This file contains hidden or 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
$ cd /path/to/fancypants | |
$ git symbolic-ref HEAD refs/heads/gh-pages | |
$ rm .git/index | |
$ git clean -fdx |
This file contains hidden or 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 com.jsuereth.sbtsite.SiteKeys | |
// add all setting from the site plugin to the project | |
seq(site.settings: _*) | |
// add all setting from the ghpages plugin to the project | |
seq(ghpages.settings: _*) | |
// read-only git repository URI of the current project | |
git.remoteRepo := "git://github.com/OlegIlyenko/scaldi.git" |
This file contains hidden or 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 sbt._ | |
object PluginDef extends Build { | |
override def projects = Seq(root) | |
lazy val root = Project("plugins", file(".")) dependsOn (ghpages, pamflet) | |
lazy val ghpages = uri("git://github.com/jsuereth/xsbt-ghpages-plugin.git") | |
lazy val pamflet = uri("git://github.com/n8han/pamflet-plugin#0.3.0") | |
} |
This file contains hidden or 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 io.Source | |
import scala.util.control.Breaks._ | |
/** | |
* Scala TicTacToe game without any side effects | |
* | |
* Written in response to following post (which also contains task description): | |
* http://blog.tmorris.net/scala-exercise-with-types-and-abstraction/ | |
*/ | |
object TicTacToe { |
This file contains hidden or 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
println("Sorted: " + list.sortBy(_.balance)) | |
println("Max: " + list.maxBy(_.balance)) | |
println("Min: " + list.minBy(_.balance)) |
NewerOlder