2015-10-21
- jennifer
- martym
I hereby claim:
To claim this, I am signing this object:
| module.exports.cacheSeconds = function(ttl) { | |
| return function(req, res, next) { | |
| var cache = cachestore.get(req.path); | |
| if (cache) { | |
| res.send(cache); | |
| } else { | |
| var send = res.send; | |
| res.send = function(string) { | |
| var body = string instanceof Buffer ? string.toString() : string; |
| NameVirtualHost *:80 | |
| # You may need to manually edit this file to fit your needs. | |
| # This configuration assumes the default installation prefix | |
| # of /opt/graphite/, if you installed graphite somewhere else | |
| # you will need to change all the occurances of /opt/graphite/ | |
| # in this file to your chosen install location. | |
| <VirtualHost *:80> | |
| # ServerName graphite |
| // File: ~/.gradle/init.gradle | |
| class GrowlNotifyListener extends BuildAdapter { | |
| void buildFinished(BuildResult result) { | |
| if (result.failure) { | |
| growlNotify "Gradle [${result?.gradle?.rootProject?.project?.name}]: failure", result.failure.message, true | |
| } else { | |
| growlNotify "Gradle [${result?.gradle?.rootProject?.project?.name}]: finished", 'Build successful' | |
| } | |
| } |
| import groovy.xml.dom.DOMCategory | |
| includeTargets << grailsScript("_GrailsInit") | |
| includeTargets << grailsScript("_GrailsPlugins") | |
| def getAvailablePluginVersions = { | |
| def plugins = [:] | |
| eachRepository {repo, url -> | |
| use(DOMCategory) { | |
| pluginsList.'plugin'.each {plugin -> |