This file contains 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
var results = search.luceneSearch("ASPECT:\"ASPECT NAME HERE\""); | |
for each (var doc in results) { | |
doc.removeAspect("ASPECT NAME HERE"); | |
} |
This file contains 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
clientName = "Some Client" | |
folder = session.getObjectByPath('/test/testfolder1') | |
props = new HashMap<String, Object>() | |
props["cmis:objectTypeId"] = "I:sc:client" | |
props["sc:clientId"] = "56789" | |
props["sc:clientName"] = clientName | |
props["cmis:name"] = clientName |
This file contains 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
{ | |
"template": "logstash-jmeter-results-*", | |
"settings": { | |
"number_of_shards": 1, | |
"number_of_replicas": 0, | |
"index.refresh_interval": "5s" | |
}, | |
"mappings": { | |
"logs": { | |
"properties": { |
This file contains 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
{ | |
"query": { | |
"filtered": { | |
"query": { | |
"match_all": {} | |
}, | |
"filter": { | |
"bool": { | |
"must": [ | |
{ |
This file contains 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
var contentful = require('contentful-management'); | |
var spaceId = 'someSpaceId'; | |
var accessToken = 'someAccessToken'; | |
var contentTypeId = 'someContentTypeId'; | |
var client = contentful.createClient({ | |
space: spaceId, | |
accessToken: accessToken, | |
secure: true, |
This file contains 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
var contentful = require('contentful'); | |
var spaceId = 'someSpaceId'; | |
var accessToken = 'someAccessToken'; | |
var contentTypeId = 'someContentTypeId'; | |
var client = contentful.createClient({ | |
space: spaceId, | |
accessToken: accessToken, | |
secure: true, |
This file contains 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
var Prismic = require('prismic.io').Prismic; | |
var testRepo = 'https://some-repo.prismic.io/api'; | |
var api; | |
Prismic.Api(testRepo, function(err, api) { | |
if (err) console.log(err); | |
// assumes a collection named 'content' | |
api.form('content').ref(api.master()).submit(function(err, docs) { |
This file contains 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
var Gitana = require('gitana'); | |
var repoId = 'someRepoId'; | |
conn = Gitana.connect({ | |
}, function(err) { | |
if (err) console.log(err); | |
}); | |
conn.readRepository(repoId).then(function () { |
This file contains 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
var Gitana = require('gitana'); | |
var repoId = 'someRepoId'; | |
conn = Gitana.connect({ | |
}, function(err) { | |
if (err) console.log(err); | |
}); | |
conn.readRepository(repoId).then(function () { |
This file contains 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
var Prismic = require('prismic.io').Prismic; | |
var testRepo = 'https://your-repo.prismic.io/api'; | |
Prismic.Api(testRepo, function(err, api) { | |
if (err) console.log(err); | |
var id = api.bookmarks['dealOfTheWeek']; | |
console.log('id: ' + id); | |
api.form('everything').ref(api.master()).query('[[:d = at(document.id, "' + id + '")]]').submit(function(err, docs) { |
OlderNewer