Skip to content

Instantly share code, notes, and snippets.

View Bunyod's full-sized avatar
🎯
Focusing

Bunyod Bunyod

🎯
Focusing
  • Enfore
View GitHub Profile
@Bunyod
Bunyod / GitHook.md
Last active November 12, 2019 08:50

Git hook manager

pre-commit-hook vs overcommit

Both are tools tool to manage and configure Git hooks. These tools don’t allow you to push if in your code something is not satisfactory with your configuration file. Configuration files:

  • .scalafmt - use by pre-commit-hook (by default)
  • scalastyle-config.xml - use by overcommit (by default)

What is overcommit for Scala developer?

@Bunyod
Bunyod / Entities.scala
Created October 27, 2016 07:27
Slick one to many and grouping
object Entities {
case class Review(txt: String, userId: Long, id: Long)
case class User(name: String, id: Long)
case class ReviewEvent(event: String, reviewId: Long)
case class FullReview(r: Review, user: User, evts: Seq[ReviewEvent])
}