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
{ | |
"requestId":"this sure is fake", | |
"result":[ | |
{ | |
"id":1, | |
"name":"Visit Webpage", | |
"description":"User visits a web page", | |
"primaryAttribute":{ | |
"name":"Webpage ID", | |
"dataType":"integer" |
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
/* Welcome to monospace.gs, a script that handles standardizing formatting for items | |
needing monospace formatting in documents. Note that if you are wanting to share | |
large code blocks, you likely should install the following add-on: | |
https://workspace.google.com/marketplace/app/code_blocks/100740430168 | |
This plugin is meant more for psuedocode and inline markup of code elements in | |
documentation. Use https://www.autocontrol.app/ to assign a keyboard shortcut for | |
the script's behavior. Enjoy! */ | |
// Add new menu item |
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
/* Welcome to lib-singlepageapp.js! This script is meant to handle using single-page | |
applications (SPAs) for Tealium when you do not have direct access to Angular, Vue, | |
React, etc. for making modifications. This allows us to get around limitations of | |
utag.view(). The trigger in this case is a global event listener that evaluates | |
any time there is a click, HTML5 history API replacement, load event, or DOMContentLoaded | |
event. If a new URL is populated via the history API, we'll treat that as a "pageview". | |
Note in this case that I have defined a UDO variable of page. This variable is then mapped | |
to anything requiring a page URL. For example, in GA I have this variable mapped to | |
config.page_location so it acts like a native page URL view.*/ |
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
#!/bin/bash | |
FILENAME=$1 | |
FILESIZE=$(stat -c%s "$FILENAME") | |
FILELINES=$(wc -l < $FILENAME) | |
SPLITRATIO=$(($FILESIZE / 9500000)) | |
[ -z "$2" ] && LINES=$(($FILELINES / $SPLITRATIO)) || LINES=$2 | |
TRIM="${FILENAME:0:${#FILENAME}-4}" | |
HDR=$(head -1 $FILENAME) | |
split -l $LINES $FILENAME xyz |
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
<div class="container"> | |
<script src="//app-abc.marketo.com/js/forms2/js/forms2.min.js"></script> | |
<form id="mktoForm_27"></form> | |
<script>MktoForms2.loadForm("//app-abc.marketo.com", "123-ABC-456", 1);</script> | |
<div id="confirmation" aria-hidden="true" style="display:none;"> | |
<p>This is a sample thank you message. Thanks for viewing.</p> | |
</div> | |
</div> | |
<script> | |
MktoForms2.whenReady(function (form){ |
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
MktoForms2.whenReady(function(form) { | |
form.onSuccess(function(vals, page) { | |
ga('send', 'event', { | |
eventCategory: 'Marketo Form', | |
eventAction: 'Form Submission', | |
eventLabel: formName, | |
hitCallback: function() { | |
document.location.href = page; | |
}; | |
}); |
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
<NotepadPlus> | |
<UserLang name="Velocity" ext="vm" udlVersion="2.1"> | |
<Settings> | |
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" /> | |
<Prefix Keywords1="no" Keywords2="yes" Keywords3="yes" Keywords4="yes" Keywords5="yes" Keywords6="no" Keywords7="no" Keywords8="no" /> | |
</Settings> | |
<KeywordLists> | |
<Keywords name="Comments">03#* 04*# 00## 01 02</Keywords> | |
<Keywords name="Numbers, prefix1"></Keywords> | |
<Keywords name="Numbers, prefix2"></Keywords> |
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
MktoForms2.whenReady(function (form){ | |
var domains = ["aol.com", "att.net", "comcast.net", "facebook.com", "gmail.com", "gmx.com", "googlemail.com","google.com", "hotmail.com", "hotmail.co.uk", "mac.com", "me.com", "mail.com", "msn.com","live.com", "sbcglobal.net", "verizon.net", "yahoo.com", "yahoo.co.uk", "email.com", "games.com", "gmx.net", "hush.com", "hushmail.com", "icloud.com", "inbox.com","lavabit.com", "love.com" , "outlook.com", "pobox.com", "rocketmail.com" ,"safe-mail.net", "wow.com", "ygm.com", "ymail.com" , "zoho.com", "fastmail.fm","yandex.com","iname.com","bellsouth.net", "charter.net", "cox.net", "earthlink.net", "juno.com","btinternet.com", "virginmedia.com", "blueyonder.co.uk", "freeserve.co.uk", "live.co.uk","ntlworld.com", "o2.co.uk", "orange.net", "sky.com", "talktalk.co.uk", "tiscali.co.uk","virgin.net", "wanadoo.co.uk", "bt.com", "sina.com", "qq.com", "naver.com", "hanmail.net", "daum.net", "nate.com", "yahoo.co.jp", "yahoo.co.kr", "yahoo.co.id", "yahoo.co.in", "yahoo.com.sg", "yahoo.c |
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
.container { | |
margin-left: auto; | |
margin-right: auto; | |
padding-left: 15px; | |
padding-right: 15px; | |
} | |
.container::after { | |
content: ""; | |
display: table; | |
clear: both; |
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 cta_links = document.getElementsByClassName('cta-button'); | |
for (var k=0;k<cta_links.length;++k) { | |
cta_links[k].addEventListener('click', function(e) { | |
Munchkin.munchkinFunction('clickLink', { | |
href: window.location.pathname + 'cta-button' | |
} | |
e.stopPropagation(); | |
); |
NewerOlder