Subscribe to RSS Feed

Kit Plummer
Software Engineer :: Researcher :: Techitect :: Evangelist :: Advisor
kitplummer@gmail.com

To the top »

Please share:

…that can embed code examples well. Plus, I’m tired of the blackness. I mean is a blackhole really black?

So, I think this one blocks the code well…just need highlighting. Probably need to start with getting HostingRails.com to install the ultraviolet gem.



[Update: Solving the problem the other way with this spiffy Textmate bundle]

[Update2: Ok this sucks. I want this: http://www.punneng.net/jazzy/]



Testing:


/** * Resource holds the main unit of operation for the Data Discovery Service. * The value is either a URL, or input data to be processed. A resource hasMany * View(s) objects, which are populated by interpreter bundles. * @author Kit Plummer */ class Resource { String url String data static hasMany = [views:View] static constraints = { url(nullable: true, url: true, validator: { val, obj -> if (obj.url == null && obj.data == null) return ['url OR data required.'] }) data(nullable: true, maxSize:5000, validator: { val, obj -> if (obj.data == null && obj.url == null) return ['url OR data required.'] }) } String toString() { this.id } }

Please comment:
blog comments powered by Disqus