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
package com.backbase.connect.mockproducts; | |
import com.google.common.collect.HashMultimap; | |
import com.google.common.collect.Multimap; | |
import com.backbase.cxp.targeting.api.Collector; | |
import com.backbase.cxp.targeting.contexts.AbstractContextCollector; | |
import com.backbase.cxp.targeting.contexts.definition.CollectorType; | |
import com.backbase.cxp.targeting.contexts.definition.OperatorPrimitive; | |
import com.backbase.cxp.targeting.contexts.definition.SelectorDefinition; |
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
#!/usr/bin/env bash | |
function downloadCacheCopy() { | |
local name="$1" | |
local file_dir="$2" | |
local url="$3" | |
local location="$4" | |
local is_tar="$5" | |
echo "Preparing $name" |
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
// ==UserScript== | |
// @name GoCD pipeline closer | |
// @namespace http://tampermonkey.net/ | |
// @version 0.3 | |
// @description Add close buttons to pipelines | |
// @author Willie Scholtz | |
// @match http://*/go/* | |
// @grant none | |
// ==/UserScript== |
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
/** | |
* Traverse a list of JAXB objects (eg. document.xml's document/body children), retrieve the w:p elements | |
* and run replacements on them according to the supplied map of identifiers and data | |
* @param mainPart the main document part | |
* @param replacements a map with an identifier as key and a list of paragraphs to replace the found one with | |
*/ | |
private static void runReplacements(final MainDocumentPart mainPart, final Map<String, List<Object>> replacements) { | |
Preconditions.checkNotNull(mainPart, "the supplied main doc part may not be null!"); | |
Preconditions.checkNotNull(replacements, "replacements may not be null!"); |
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
/** | |
* adds a new cell to the current excel sheet with the HTML translated col- and row spans. | |
* @param sheet the current HSSFSheet | |
* @param row the current HSSFRow. | |
* @param style the style for this cell | |
* @param value the cell value. | |
* @param rowNum the current row number. | |
* @param colNum the current column number. | |
* @param rowSpan should there be a row-span here. | |
* @param colSpan should there be a col-span here. |