Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Scala by Partialfunction with nest ( 16 years ago )
val specialReferersAction: PartialFunction[RequestContext, (Int, List[String], List[String], ResultType.Value)] = {
case x if(x.referer isDefined) => specialReferers(x.referer.get) match {
case Some((maxScore, ads)) if(ads.size > 0) => {
println("-- Specialized hit")
(maxScore, ads, Nil, ResultType.SPECIAL)
}
}
}
Revise this Paste
Children: 16571