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 / gist:da67bf0351c9f51d950f70ba12f7defe
Created May 7, 2020 17:40
hubspot export to template- hubspot cms
<!--
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>
// 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 November 27, 2019 18:19
get a list of pdf files used for a certain post category
<?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',
@JacobLett
JacobLett / gist:553e9ffc43b4364e99b682945ea331f8
Last active November 19, 2019 20:28
wordpress get a list of all urls that you can save as CSV - https://www.computerhope.com/issues/ch001356.htm
<?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 August 28, 2019 08:05
latest cdn links for bootstrap and font awesome
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
@JacobLett
JacobLett / gist:6873b222370936329f398f2af52559dc
Created August 27, 2019 17:54
hubspot form data to url
<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 April 26, 2020 13:19
responsive iframe
<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
@JacobLett
JacobLett / gist:2af0f7304b5ca948b78b43eb090fd427
Created July 25, 2019 08:30
install gulp on mac when sudo doesn't work
sudo npm install -g gulp --unsafe-perm=true --allow-root
sudo npm install -g gulp-cli --unsafe-perm=true --allow-root
.reset-this {animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:transparent;background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border
@JacobLett
JacobLett / gist:6761c258757dee149fe527f11e9156c5
Created April 15, 2019 10:22
technolawyer hubspot form embed
<!--[if lte IE 8]>
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"></script>
<![endif]-->
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"></script>
<script>
hbspt.forms.create({
portalId: "4518656",
formId: "0022373b-0680-4647-a549-3dcbe772e71d",
css: '',
cssClass: 'tl-form'