Skip to content

Instantly share code, notes, and snippets.

@acreeger
acreeger / ExternalInPlacePlugin_BuildConfig.groovy
Created April 8, 2011 18:33
Code that you can add to your app's BuildConfig to enable you to specify in-place plugins outside of source controlled files
def buildConfigFile = new File("${userHome}/.grails/${appName}-buildConfig.groovy")
if (buildConfigFile.exists()) {
println "Processing external build config at $buildConfigFile"
def slurpedBuildConfig = new ConfigSlurper().parse(buildConfigFile.toURL())
slurpedBuildConfig.grails.plugin.location.each { k, v ->
if (!new File(v).exists()) {
println "WARNING: Cannot load in-place plugin from ${v} as that directory does not exist."
} else {
println "Loading in-place plugin $k from $v"
grails.plugin.location."$k" = v
@mxriverlynn
mxriverlynn / foo.spec.js
Created July 19, 2012 20:27
making Jasmine's async specs beautiful, with promises and an AsyncSpec helper
describe('live tile', function () {
describe('when updating the tile', function () {
var async = new AsyncSpec();
async.beforeEach(function (complete) {
Shared.getImages()
.then(Tiles.buildThumbails)
.then(async.storage.store('fileNames'))
@tomhicks
tomhicks / plink-plonk.js
Last active July 22, 2024 09:51
Listen to your web pages