Skip to content

Instantly share code, notes, and snippets.

View JacobLett's full-sized avatar
🤠
hello!

Jacob Lett JacobLett

🤠
hello!
View GitHub Profile
@JacobLett
JacobLett / google-ads-country-list
Created February 9, 2023 11:59
Google Ads Exclusion List for Display
Afghanistan
Albania
Algeria
American Samoa
Andorra
Angola
Anguilla
Antarctica
Antigua and Barbuda
Argentina
{% macro state_contacts(stateCode) %}
{{ stateCode }}
{% endmacro %}
{{ state_contacts("US-AL","US-AK","US-AS","US-AZ","US-AR","US-CA","US-CO","US-CT","US-DE","US-DC","US-FL","US-GA","US-HI","US-ID","US-IL","US-IN","US-IA","US-KS","US-KY","US-LA","US-ME","US-MD","US-MA","US-MI","US-MN","US-MS","US-MO","US-MT","US-NE","US-NV","US-NH","US-NJ","US-NM","US-NY","US-NC","US-ND","US-MP","US-OH","US-OK","US-OR","US-PA","US-RI","US-SC","US-SD","US-TN","US-TX","US-UT","US-VT","US-VA","US-WA","US-WV","US-WI","US-WY","CA-AB","CA-BC","CA-MB","CA-NB","CA-NL","CA-NS","CA-ON","CA-PE","CA-QC","CA-SK") }}
{# Use macro for logic below #}
{% set contacts_us_ar = [] %}
{% for row in table %}
@JacobLett
JacobLett / gist:9744552713ef1be1464095af1adf5d14
Created December 30, 2021 15:59
Load external header and footer html with jQuery
/*
####################################################################
Include External Header & Footer -----------------------------------
# external server needs to have CORS - enabled https://enable-cors.org/
# more examples - https://www.tutorialrepublic.com/jquery-tutorial/jquery-ajax-load.php
####################################################################
*/
$(document).ready(function() {
// Give the body a class so that you can write styles to target the page
@JacobLett
JacobLett / bootstrap-4.1.1-utility-classes.css
Created October 14, 2020 00:44 — forked from kiley0/bootstrap-4.1.1-utility-classes.css
only the utility classes from bootstrap 4
.align-baseline {
vertical-align: baseline !important;
}
.align-top {
vertical-align: top !important;
}
.align-middle {
@JacobLett
JacobLett / gist:781058e9af559cfc9091bffd2ed1b5ed
Created September 17, 2020 14:46
Grab URL parameters script
// Apply URL parameters to Register Button if present
var changeTarget = document.getElementById('registerBtn');
var params = window.location.search;
var _href = changeTarget.href;
// Does the page have url parameters ?
if (params) {
// yes - add them to the iframe src
changeTarget.href = _href+params;
console.log("url params = " + params);
/* v5.1.0 - August 2021 */
.accordion-body
.accordion-button
.accordion-collapse
.accordion-flush
.accordion-header
.accordion-item
.active
.alert
.alert-danger
@JacobLett
JacobLett / gist:cf1d41aadbc87eacafccf57ee8cc0fda
Created July 13, 2020 13:12
default hubspot form module - options
{% if module.title is truthy %}
{% set no_title = False %}
{% else %}
{% set no_title = True %}
{% endif %}
{% if module.form.form_id %}
{% form
form_key='{{ name }}',
form_to_use='{{ module.form.form_id }}',
@JacobLett
JacobLett / gist:e9dcc798dacca0432a3c5f2a4823f170
Created July 2, 2020 19:12
regex to find domains that contain certain words or strings
(.*)(hubspot|hs-sites)(.*)
@JacobLett
JacobLett / gist:b8f342839cc9592bb91791466c698a87
Created July 1, 2020 17:50
hubspot html tag for languages
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="{{ html_lang }}" {{ html_lang_dir }}> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="{{ html_lang }}" {{ html_lang_dir }}> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="{{ html_lang }}" {{ html_lang_dir }}> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="{{ html_lang }}" {{ html_lang_dir }}> <!--<![endif]-->
@JacobLett
JacobLett / gist:777b7a8f554ef38db1c246e2651eb19a
Created May 8, 2020 13:24
hubspot email linked image retina
<!--
#############################
Hero Image
-->
{% image_src "intro_image" label="Intro Image" src='', no_wrapper=True, export_to_template_context=True %}
{% if widget_data.intro_image.src %}
{% text "intro_link" label="Intro Image Link", value="https://www.altair.com/", no_wrapper=True, export_to_template_context=True %}
<tr>
<td valign="top" width="100.0%" class=" img-fluid column" style="width:100.0%; text-align: left; padding: 0; font-family: {{ primary_font }}; font-size: {{ primary_font_size }}; line-height: {{ primary_font_lheight }}em; color: {{ primary_font_color }}; ">