Skip to content

Instantly share code, notes, and snippets.

@kornysietsma
kornysietsma / solrSample.scala
Created August 9, 2011 06:11
Scala talk - solr
import org.apache.solr.client.solrj.SolrQuery
import org.apache.solr.client.solrj.impl.CommonsHttpSolrServer
def build(fullName: String, maxRows: Int): SolrQuery = {
val (firstInitial, firstName, bits, lastName) = split(fullName)
val queryString =
"{!type=dismax mm=-1 qf='name^100.0 name_phonetic^10.0 name_synonym^10.0'} %s %s %s %s"
.format(firstInitial, firstName, bits, "+" + lastName)
val query = new SolrQuery(queryString)
@MikeJansen
MikeJansen / nightly-build-to-gac.cmd
Created May 7, 2012 15:08
ASP.NET MVC 4 - update GAC from nightly build http://is.gd/lAht03
@echo off
rem *********************************************************************************
rem *
rem * See http://is.gd/lAht03
rem *
rem * Update ASP.NET MVC4 nightly build in the GAC
rem *
rem * Run from the solution's packages folder.
rem *
rem * nightly-build-to-gac.cmd [build-no-filter]
@aaronpowell
aaronpowell / License.md
Created May 16, 2012 07:18
A useful exception for when you don't want to implement a feature yourself

The MIT License

Copyright (c) 2012 Aaron Powell

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWA