Skip to content

Instantly share code, notes, and snippets.


Jacob Lett JacobLett

View GitHub Profile
JacobLett / gist:e9dcc798dacca0432a3c5f2a4823f170
Created Jul 2, 2020
regex to find domains that contain certain words or strings
View gist:b8f342839cc9592bb91791466c698a87
<!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]-->
View gist:777b7a8f554ef38db1c246e2651eb19a
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="", no_wrapper=True, export_to_template_context=True %}
<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 }}; ">
JacobLett / gist:da67bf0351c9f51d950f70ba12f7defe
Created May 7, 2020
hubspot export to template- hubspot cms
View gist:da67bf0351c9f51d950f70ba12f7defe
no_wrapper=True, export_to_template_context=True
{% image_src "image_src" src='//', no_wrapper=True, export_to_template_context=True %}
{% if widget_data.image_src.src %}
{% endif %}
View bootstrap-icons-list.txt
// v1.0.0-alpha2
JacobLett / gist:c66fd8ec7e095f6dd78631e2d3a45765
Created Nov 27, 2019
get a list of pdf files used for a certain post category
View gist:c66fd8ec7e095f6dd78631e2d3a45765
include "wp-load.php";
<?php query_posts('category_name={{yourcategoryname}}&posts_per_page=-1'); ?>
<?php while (have_posts()) : the_post(); ?>
$args = array(
'order' => 'ASC',
View gist:553e9ffc43b4364e99b682945ea331f8
include "wp-load.php";
// Get All Post Types as List
foreach ( get_post_types( '', 'names' ) as $post_type ) {
echo "{$post_type}\n";
//echo $post_type ."<br>";
JacobLett / gist:1db35a733c729d6de5b84f7505e8d1c5
Last active Aug 28, 2019
latest cdn links for bootstrap and font awesome
View gist:1db35a733c729d6de5b84f7505e8d1c5 (v4.xx)
View gist:6873b222370936329f398f2af52559dc
<script type="text/javascript" src="//" charset="utf-8"></script>
<script type="text/javascript" src="//" charset="utf-8"></script>
portalId: "47251",
formId: "f4271808-e089-439e-80f8-13d61a039b3a",
inlineMessage: 'Your submit message here',
onFormSubmit: function($form){
setTimeout( function() {
JacobLett / on iframed page
Last active Apr 26, 2020
responsive iframe
View on iframed page
<script src=""></script>
<div id="data"></div>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extreme
You can’t perform that action at this time.