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 getUrlParams = function() { | |
let search = location.search | |
if (!search) return {} | |
return search.slice(1).split('&').reduce(function (obj, param) { | |
let pair = param.split('=') | |
obj[pair[0]] = pair[1] | |
return obj | |
},{}) | |
}; |
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
/* | |
* Based on https://css-tricks.com/snippets/javascript/get-url-variables/ | |
* @param {String} url The URL | |
* @return {Object} The URL parameters if there are any, if not return undefined | |
*/ | |
var getParams = function(url) { | |
var params = {}; | |
var parser = document.createElement("a"); | |
parser.href = url; | |
var query = parser.search.substring(1); |
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
from requests.auth import HTTPBasicAuth | |
from datetime import datetime, timedelta | |
prospector_url = 'https://prospector.clearbit.com/v1/people/search?' | |
# Add your own api key | |
clarbit_api_key = API_KEY | |
now_pst = str(datetime.now() - timedelta(hours=8)) | |
autoProspectedCampaign = input['autoProspectedCampaign'] |
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
<script> | |
var action = {{DLV-custom-event-action}}; | |
if (action === 'viewed') { | |
console.log("LOG MKETO PAGE VIEW") | |
// Munchkin.munchkinFunction('visitWebPage', { 'url': {{Page URL}} }); | |
}; | |
if (action === 'clicked') { | |
console.log("LOG MKETO CLICK") |
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
<!-- Learn More Text Element --> | |
<div class="f__center"> | |
<div class="sp__4"><br /></div> | |
<h2 class="c__white">Ready to learn more?</h2> | |
<a class="btn btn__primary" href="#">Request A Demo</a> | |
<div class="sp__4"><br /></div> | |
</div> | |
<!-- End Learn More Text Element --> | |
<div><br /></div> |
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
const immutableArray = [1, 2, 3, 4] | |
const index = 2 | |
const newArrayLess3 = [ | |
...immutableArray.slice(0, index), | |
...immytableArray.slice(index + 1), | |
] | |
# => newArrayLess3 = [1, 2, 4] | |
# => immutableArray = [1, 2, 3, 4] |
NewerOlder