This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildTree: function(tree, containers) { | |
var type = $.type(tree); | |
if (type == "string" || type == "number") { | |
return document.createTextNode(String(tree)); | |
} | |
if (type != "array") { | |
return tree; | |
} | |
var elemDescriptor = tree[0]; | |
var cssClasses, elemId, containerKey = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -XDELETE http://localhost:9200/ac-test | |
curl -XPUT http://localhost:9200/ac-test | |
curl -XPUT http://localhost:9200/ac-test/people/1 -d ' | |
{ | |
"firstNames" : "James Earl", | |
"lastName" : "Jones", | |
"location" : "Hollywood, CA" | |
}' | |
curl -XPUT http://localhost:9200/ac-test/people/2 -d ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.management.ManagementFactory | |
includeTargets << grailsScript("_GrailsPackage") | |
includeTargets << grailsScript("_GrailsRun") | |
target(main: "Launches an app and automatically launches JConsole") { | |
//depends(compile, classpath, runApp) | |
depends(checkVersion, configureProxy, packageApp, parseArguments) | |
if (argsMap.https) { | |
runAppHttps() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder