Skip to content

Instantly share code, notes, and snippets.

View jwill's full-sized avatar

James Williams jwill

View GitHub Profile
Your original URL string:
http://chart.apis.google.com/chart?cht=bhs&chs=500x600&chco=FF9900|FF3300&chxt=r,x,t&chxl=0:|ManningBooks|groovymag|graemerocher|iamthechad|ldaley|GeertjanW|HamletDRC|snaglepus|daveklein|gr8conf|RobertFischer|dima767|glaforge|grailsmx|mittie|grailsframework|wangjammer5|grailspodcast|hansamann|aalmiray&chd=t:27,20,20,18,16,15,15,15,13,12,10,10,9,9,8,8,8,7,7,7
Tweaked URL string:
http://chart.apis.google.com/chart?cht=bhs&chs=500x600&chco=FF9900|FF3300&chxt=r,x,t&chxl=0:|ManningBooks|groovymag|graemerocher|iamthechad|ldaley|GeertjanW|HamletDRC|snaglepus|daveklein|gr8conf|RobertFischer|dima767|glaforge|grailsmx|mittie|grailsframework|wangjammer5|hansamann|grailspodcast|aalmiray|1:|0|10|20|27|2:|0|10|20|27&chd=t:27,20,19,18,16,15,15,15,13,12,10,10,9,9,8,8,8,7,7,7&chds=0,27
What I added:
scale="${[min1, max1, minN, maxN]}" (translates to chds in the final string)
<jnlp
spec="1.0+"
codebase="http://lwjgl.org/jnlp/"
href="extension.php">
<information>
<title>LWJGL</title>
<vendor>LWJGL</vendor>
<homepage href="http://lwjgl.org/"/>
<description>LWJGL webstart extension</description>
<description kind="short">LWJGL webstart extension</description>
def setupDB = {
model.db = new FeatherDB(new FileSystemBackend())
if (!model.backend.doesDatabaseExist("testdb")) {
try {
model.db.addDatabase("testdb")
} catch (Exception ex) {
ex.printStackTrace()
}
}
}
/* Groovy source file
* Created 27 August 2007
* @author jwilliams
*/
package com.fintech.fos.client.ui
import java.awt.AlphaComposite
import java.awt.Color
import java.awt.Composite
import com.mongodb.*
public class MongoUtils {
public static void decorateCollectionClass() {
//meta programming convenience methods courtesy of jareed
DBCollection.metaClass {
findAll << { LinkedHashMap query -> delegate.find(query as BasicDBObject) }
findAll << { LinkedHashMap query, LinkedHashMap filter -> delegate.find(query as BasicDBObject, filter as BasicDBObject) }
find << { LinkedHashMap query -> delegate.find(query as BasicDBObject).find {true} }
find << { LinkedHashMap query, LinkedHashMap filter -> delegate.find(query as BasicDBObject, filter as BasicDBObject).find {true} }
@jwill
jwill / RemoveAll.groovy
Created May 2, 2010 00:37
RemoveAll script for Grails
import grails.util.GrailsNameUtils
import org.codehaus.groovy.grails.scaffolding.*
import org.codehaus.groovy.grails.commons.GrailsDomainClass
/**
* Gant script for deleting domain class, crud views, and tests
*
* @author jwill
*/
(function(){
var GameBoard;
// GameBoard class for Match 3 game
// @author: jwill
GameBoard = function(x, y) {
var _a, _b, _c, _d, array, i, j;
// create grid
this.grid = new Array();
this.maxX = x;
this.maxY = y;
@jwill
jwill / ratpack-app.gradle
Created July 4, 2011 04:03
build.gradle file for a Ratpack app
apply plugin: 'groovy'
apply plugin: 'application'
repositories {
flatDir name:'lib', dirs:'lib'
mavenCentral()
}
dependencies {
@jwill
jwill / three-js-by-example-links.txt
Created March 30, 2012 08:00
ThreeJS By Example Links
@jwill
jwill / gist:8638365
Created January 26, 2014 19:53
Export to PDF from Command Line
emacs -batch --visit=Changelog.org --funcall org-export-as-pdf