Skip to content

Instantly share code, notes, and snippets.

🤠
hello!

Jacob Lett JacobLett

🤠
hello!
View GitHub Profile
@JacobLett
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="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 }}; ">
@JacobLett
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='//cdn2.hubspot.net/hub/53/file-733888614-jpg/assets/hubspot.com/about/management/dharmesh-home.jpg', no_wrapper=True, export_to_template_context=True %}
<br>
{% if widget_data.image_src.src %}
image_src
{% endif %}
<br>
View bootstrap-icons-list.txt
// v1.0.0-alpha2
x-octagon-fill.svg
x-square.svg
x-square-fill.svg
alarm.svg
alarm-fill.svg
alert-circle.svg
alert-circle-fill.svg
alert-octagon.svg
@JacobLett
JacobLett / gist:c66fd8ec7e095f6dd78631e2d3a45765
Created Nov 27, 2019
get a list of pdf files used for a certain post category
View gist:c66fd8ec7e095f6dd78631e2d3a45765
<?php
include "wp-load.php";
?>
<?php query_posts('category_name={{yourcategoryname}}&posts_per_page=-1'); ?>
<?php while (have_posts()) : the_post(); ?>
<?php
$args = array(
'order' => 'ASC',
View gist:553e9ffc43b4364e99b682945ea331f8
<?php
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
JacobLett / gist:1db35a733c729d6de5b84f7505e8d1c5
Last active Aug 28, 2019
latest cdn links for bootstrap and font awesome
View gist:1db35a733c729d6de5b84f7505e8d1c5
http://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css
http://maxcdn.bootstrapcdn.com/bootstrap/latest/js/bootstrap.min.js
http://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css (v4.xx)
https://use.fontawesome.com/releases/v5.0.7/css/all.css
View gist:6873b222370936329f398f2af52559dc
<script type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js" charset="utf-8"></script>
<!--[endif]---->
<script type="text/javascript" src="//js.hsforms.net/forms/v2.js" charset="utf-8"></script>
<script>
hbspt.forms.create({
portalId: "47251",
formId: "f4271808-e089-439e-80f8-13d61a039b3a",
inlineMessage: 'Your submit message here',
onFormSubmit: function($form){
setTimeout( function() {
@JacobLett
JacobLett / on iframed page
Last active Apr 26, 2020
responsive iframe
View on iframed page
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<div id="data"></div>
<p>
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.
</p>
<p>
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.