Skip to content

Instantly share code, notes, and snippets.

{
"rankerType": "naiveranker",
"retrieverType": "mongokeywordindexretriever",
"useTfIdf": true,
"concurrent": true,
"persistResults": false,
"targetCorpusTags": [
"wordpress.com",
"wordpress.org"
class Person(val name: String) {
def greeting = "I am Person %s".format(name)
override def equals(that: Any): Boolean = that match {
case p: Person if p.name == this.name => true
case _ => false
}
override def hashCode = 11
}
@colinpollock
colinpollock / Friday_Shots.md
Created March 23, 2012 18:35
Rules and regulations for Friday Shots

Friday Shots

Rules

  1. The competition begins every Friday promptly at beer o'clock (once at least one person has opened a beer and it is 4:00pm or later).
  2. Anyone in the office at the time of the competition can participate.
  3. No practice shots can be taken once the competition begins.
  4. Each participant gets to take one shot after paying the $1 entry fee. All fees must be paid
    prior to the first shot.
@colinpollock
colinpollock / Sal.scala
Created March 7, 2012 07:15
Causing a ClassCastException by trying to deserialize a Map[String, Seq[String]]
package com.salattest
import com.mongodb.casbah.Imports._
import com.novus.salat._
import com.novus.salat.global._
import com.novus.salat.dao._
case class Data (
_id: String,