Entry tags:
quoting a website
<script> function environmentName() { var env = 'prod'; var envCaps = env.toUpperCase(); //alert("prod" + " " + envCaps); return envCaps; } </script>
(repeated twice on each page)
<script> function environmentName() { var env = 'prod'; var envCaps = env.toUpperCase(); //alert("prod" + " " + envCaps); return envCaps; } </script>
def findFurthest(current: List[Index])(collection: List[Index]) = collection.map(i => (distance(current)(i), i)).max(order)._2 def sortByDistance(source: List[Index], target:List[Index] = Nil): List[Index] = source match { case Nil => target case more => { val furthest = findFurthest(target)(source) sortByDistance(source.filterNot(furthest==), furthest::target) } } val sorted = sortByDistance(allIndexes).reverse
def questionHTML(i: Int, q: String) = <span> <h3>Question {i+1}</h3>{q} <br/><br/><br/><br/><br/><br/> </span> def variantHTML(v: List[String]) = <p style="page-break-after:always;"> <h1><center>{title}</center></h1> {v.zipWithIndex map {case(q,j) => questionHTML(j,q)}} </p> def html(variants: List[List[String]]) = { <html><body>{ variants map variantHTML }</body></html> }