Skip to content

Instantly share code, notes, and snippets.

View mtjikuzu's full-sized avatar

Mbaunguraije Tjikuzu mtjikuzu

  • Namibia University of Science and Technology
  • Windhoek, Namibia
View GitHub Profile
@mtjikuzu
mtjikuzu / gist:4349643
Created December 20, 2012 23:48
Gary's books
A First Course in Probability (Eighth Edition), 2009, by Ross, S.M., Chapters 1–8.
• Mathematical Statistics with Applications (Seventh Edition), 2008, by Wackerly, D., Mendenhall III, W., Scheaffer, R., Chapters 1-7.
• Probability for Risk Management, (Second Edition), 2006, by Hassett, M. and Stewart, D., Chapters 1–11.
• Probability and Statistical Inference (Eighth Edition), 2009, by Hogg, R.V. and Tanis, E.A., Chapters 1–5.
• Probability and Statistics with Applications: A Problem Solving Text, 2010, by Asimow, L. and Maxwell, M.
• Probability: The Science of Uncertainty with Applications to Investments, Insurance and Engineering 2009, by Bean, M.A., Chapters 1–9.
Other Resources
The candidate
@mtjikuzu
mtjikuzu / .gitignore
Created May 11, 2012 10:10 — forked from klaeufer/.gitignore
Sample .gitignore for Play Framework applications
# general
*~
*.log
tmp
dump
# Eclipse
.settings
.cache
.project
@mtjikuzu
mtjikuzu / play2-cake-example.scala
Created April 19, 2012 23:39
Example Cake and Play 2.0 ver 2
/*********************************************************
* Setup Domain object, repositories and service objects *
********************************************************/
// Identity.scala
case class Identity(id: Int = 0, var slug: String, var email: String, references: Symbol)
// IdentityRepostiory.scala: my interface that isolates concrete instances
trait IdentityRepository {
def findBySlug(slug: String): Option[Identity]
def findByEmail(email: String): Option[Identity]
@mtjikuzu
mtjikuzu / gist:2424815
Created April 19, 2012 23:19
Example Cake and Play 2.0
// Identity.scala - the domain object
case class Identity(id: Int = 0, var slug: String, var email: String, references: Symbol)
// IdentityRepository
trait IdentityRepository {
def findBySlug(slug: String): Option[Identity]
def findByEmail(email: String): Option[Identity]
def save(identity: Identity): Identity
}
@mtjikuzu
mtjikuzu / play-2.0-cake.scala
Created April 19, 2012 21:27 — forked from dyross/play-2.0-cake.scala
Using cake pattern in Play 2.0
// my response to https://groups.google.com/forum/?fromgroups#!searchin/play-framework/cake/play-framework/LQ2y40QNZaE/qvRFw5of-rQJ
import play.api._
import play.api.mvc._
// Domain object
case class User(id: String, name: String)
// Trait defining the service component
trait UserServiceComponent {
@mtjikuzu
mtjikuzu / play2-cake-example.scala
Created April 19, 2012 21:27
Example Cake and Play 2.0 ver 2
/*********************************************************
* Setup Domain object, repositories and service objects *
********************************************************/
// Identity.scala
case class Identity(id: Int = 0, var slug: String, var email: String, references: Symbol)
// IdentityRepostiory.scala: my interface that isolates concrete instances
trait IdentityRepository {
def findBySlug(slug: String): Option[Identity]
def findByEmail(email: String): Option[Identity]