- http://scabl.blogspot.com.au/2013/02/cbdi.html
- http://www.cakesolutions.net/teamblogs/2011/12/19/cake-pattern-in-depth
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
| // Expanding on basic case from 'Use Readers to deserialize documents automatically' http://reactivemongo.org/releases/0.10/documentation/tutorial/find-documents.html | |
| case class Person(id: BSONObjectID, firstName: String, lastName: String, age: Int) | |
| object Person { | |
| implicit object PersonReader extends BSONDocumentReader[Person] { | |
| def read(doc: BSONDocument): Person = { | |
| // Common fields | |
| val id = doc.getAs[BSONObjectID]("_id").get | |
| val version = doc.getAs[Int]("_version").get |
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
| diff --git a/source/_includes/asides/github.html b/source/_includes/asides/github.html | |
| index bdc970f..8675623 100644 | |
| --- a/source/_includes/asides/github.html | |
| +++ b/source/_includes/asides/github.html | |
| @@ -1,12 +1,15 @@ | |
| {% if site.github_user %} | |
| <section> | |
| <h1>GitHub</h1> | |
| + {% if site.github_repo_count > 0 %} | |
| <ul id="gh_repos"> |
- Play Framework - Play Framework makes it easy to build web applications with Java & Scala.
- Akka - Akka is a toolkit and runtime for building highly concurrent, distributed, and fault tolerant event-driven applications on the JVM.
- Deadbolt - Deadbolt is a powerful, comprehensive authorization module for the Play framework.
(Blog post: http://blog.devalias.net/post/92579952637/mdwiki-and-how-to-get-started)
If you haven't already heard about it, MDwiki is a cool little CMS/Wiki that runs entirely clientside (HTML5/Javascript) and uses Markdown
Since it's all clientside, we can do really cool things like track our changes in git and then host it all on GitHub Pages. That means super simple forking, contributing and sharing. Yay for open source!
(Blog Post: http://blog.devalias.net/post/89810672067/play-framework-seperated-ws-library)
http://www.playframework.com/documentation/2.3.x/Highlights23
Play WS
Separate library
The WS client library has been refactored into its own library which can be used outside of Play. You can now have multiple WSClient objects, rather than only using the WS singleton.
-
http://www.playframework.com/documentation/2.1.1/ScalaJsonCombinators
-
https://github.com/ReactiveMongo/Play-ReactiveMongo
import play.api.libs.json.Reads._
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
| /* buildHtml - Helper method to construct html tags easily */ | |
| var buildHtml = function(tag, attrs, innerHtml) { | |
| var h = '<' + tag; | |
| for (var attr in attrs) { | |
| if(attrs[attr] === false) { | |
| continue; | |
| } | |
| h += ' ' + attr + '="' + attrs[attr] + '"'; | |
| } | |
| return h += innerHtml ? '>' + innerHtml + '</' + tag + '>' : '/>'; |