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 fileinput | |
for line in fileinput.input(): | |
# only print description and displayName lines that do not contain '$' | |
if (((line.find('description') != -1) or (line.find('displayName') != -1)) and (line.find('$') == -1)): | |
if line.find('displayName') != -1: | |
print(line, '\n') | |
else: | |
print(line) |
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
function _trackAnalytics() { } | |
// tealium code comes down | |
// the below typically happens when the devs do not implement it | |
window._trackAnalytics = function(o) { | |
if (o.type === "link") { | |
utag.link(o); | |
} |
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
#!/bin/bash | |
# see https://maven.apache.org/guides/mini/guide-3rd-party-jars-remote.html | |
# install a jar locally | |
mvn install:install-file \ | |
-Dfile=oak-run-1.10.3.jar \ | |
-DgroupId=com.perficient.tools \ | |
-DartifactId=oak-run \ | |
-Dversion=1.10.3 \ | |
-Dpackaging=jar | |
# deploy a jar |
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
var dashcodePartSupport = { | |
"imageBgParts": { | |
"detailHeader": ["Parts/Images/detailHeader.png", 1, 1] | |
} | |
}; | |
if (!window.dashcode) { | |
dashcode = new Object() | |
} | |
dashcode.setupParts = function() { |
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
#!/usr/bin/env python | |
import os, sys | |
import subprocess, shlex | |
# A mechanism for transforming xml to s-expressions | |
# in python | |
# shells out to xsltproc | |
DEBUG = 0 |
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
var digitalData = { | |
"page": { | |
"partner": "victoriasecret", | |
"responsiveDisplayType": "tablet", | |
"lob": "consumer", |
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
/* | |
@author Sanford Whiteman, TEKNKL (blog.teknkl.com / sandy@teknkl.com) | |
@version v1.0.4 | |
@copyright Copyright 2016, 2017, 2018, 2019 FigureOne, Inc. | |
@license MIT License: You must include this license and the above credits in all uses & reproductions of this software. | |
*/ | |
function SimpleDTO(a) { | |
var e = Function.prototype.call.bind(Array.prototype.slice); | |
try { | |
a.debug && console.log("SimpleDTO: Unifying domains " + [document.domain, a.domain].join(", ")), document.domain = a.domain; |
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
(function () { | |
'use strict'; | |
function createCommonjsModule(fn, module) { | |
return module = { exports: {} }, fn(module, module.exports), module.exports; | |
} | |
var jschacha20 = createCommonjsModule(function (module) { | |
/* | |
* Copyright (c) 2017, Bubelich Mykola |
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
/*JavaScript has a Proxy object with which you can set traps whenever an operation is executed on an object. Arrays are also objects and can be used with proxies. | |
When calling the push method on an array, a new value will be set to the array. So setting a trap for the set method should allow us to add behavior to the push method. | |
In the trap, create a CustomEvent event and dispatch it. You can name this event anything you want. Whenever a value has been added to the dataLayer array, an event will be emitted. You can listen from every file to this event to act on whenever a value is added to the dataLayer array. | |
With Reflect we can make sure that the original behavior of the push method is restored while keeping the added behavior.*/ | |
/* We had to use this in a case where the GTM dataLayer.push call did not have a first argument of the 'event' */ |
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
<script> | |
window._trackAnalytics = function(o){ | |
try{ | |
if( typeof o === "object" ){ | |
var siteEvents = o.site_events, | |
gtmDataLayer = "gaDataLayer", | |
generateBaseGtmObject = function(){ | |
var obj = {}; | |
for( var i = 1; i <= 100; i++ ){ | |
obj["cd"+i] = obj["cm"+i] = null; |