2015-10-21
- jennifer
- martym
void main() { | |
Animal bob = new Kitten(); | |
bob.grow(); | |
bob.grow(); | |
bob.birthday(); | |
print(bob.speak()); | |
Animal x = new Puppy(); | |
print(bob); | |
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; |
// | |
var _open = function(self, options, callback) { | |
var collection = self.collection(); | |
// Create the query | |
var query = self.referenceBy == REFERENCE_BY_ID ? {_id:self.fileId} : {filename:self.filename}; | |
query = null == self.fileId && self.filename == null ? null : query; | |
options.readPreference = self.readPreference; | |
// Fetch the chunks | |
if(query != null) { |
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 -> |