Skip to content

Instantly share code, notes, and snippets.

View divideby0's full-sized avatar

Cedric Hurst divideby0

  • Spantree Technology Group, LLC
  • Chicago, IL
View GitHub Profile
@divideby0
divideby0 / LICENSE
Last active May 15, 2019 19:24
First Name Synonyms for Solr
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
@graemerocher
graemerocher / gist:1393603
Created November 25, 2011 14:08
Using GORM from MongoDB from a Groovy Script
@GrabResolver(name='grails-core', root='http://repo.grails.org/grails/core')
@Grab(group='org.grails', module='grails-datastore-gorm-mongo', version='1.0.0.BUILD-SNAPSHOT')
@Grab(group='org.slf4j', module='slf4j-simple', version='1.6.1')
import grails.persistence.*
import org.grails.datastore.gorm.mongo.config.*
MongoDatastoreConfigurer.configure("myDatabase", Book)
Book.withSession {