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:644d0f9f232fbd2c87b8
Last active June 21, 2023 19:06
Bigcommerce theme development Grunt - requires local transmit webdav Mount
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
build: {
//src: ['template/js/libs/*.js', 'template/js/libs/cloudzoom/*.js', 'template/js/crafted.js'], //input
@JacobLett
JacobLett / gist:a9fb6d9605d668341170
Created May 18, 2015 19:56
add css version number to WordPress enqued style - Add to functions.php
// Adds version to style sheet
// Source - Jason https://wordpress.org/support/topic/add-version-number-to-stylecss-in-custom-theme
function my_wp_default_styles($styles)
{
//use release date for version
$styles->default_version = "20130711";
}
add_action("wp_default_styles", "my_wp_default_styles");
@JacobLett
JacobLett / gist:2406d715bf15a21e6d17
Last active August 20, 2021 22:09
hubspot embed form validation script - prevent commas, semi-colons, and accent characters
<script charset="utf-8" src="http://js.hsforms.net/forms/current.js"></script>
<script>
hbspt.forms.create({
portalId: '', // Update with default form hubspot form id
formId: '', // Update with default form hubspot form id
//target: '.hubspot',
validationOptions: {
validation: {
/*==================================================
= Bootstrap 3 Media Queries =
==================================================*/
/*========== Mobile First Method ==========*/
/* Custom, iPhone Retina */
@JacobLett
JacobLett / wordpress custom field loop
Created August 7, 2015 18:01
wordpress custom field loop
<?php
//Look for cookie set by country select dropdwon
if(isset($_COOKIE['altairUniCountry'])){
$showCntryID = $_COOKIE["altairUniCountry"];
//Make the class lowercase
$showCntryClass = strtolower($showCntryID);
}
else{
// Cookie is not set use these default values
@JacobLett
JacobLett / custom.css
Created August 11, 2015 00:59
Correct password box from overlapping password field - Crafted Bigcommerce theme
/* Moves the password notification box so it doesn't overlap the password input field*/
.crafted .PasswordRequirements{position:relative;left:175px;}
.crafted .PasswordRequirementsContent:before{border:10px solid #333;border-bottom-color:transparent;border-top-color:transparent;border-left:0;content:'';left:-10px;position:absolute;top:22px;}
@JacobLett
JacobLett / google-analytics.txt
Created August 11, 2015 18:59
Google spam filters regex for Google Analytics
// https://moz.com/blog/how-to-stop-spam-bots-from-ruining-your-analytics-referral-data
// http://www.ohow.co/what-is-referrer-spam-how-stop-it-guide/
4webmasters.org
trafficmonetize.org
semalt.semalt.com
webmonetizer.net
ranksonic.info
buttons-for-website.com
traffic2money.com
@JacobLett
JacobLett / gist:944d8a71c615ed2d9bc6
Last active September 19, 2015 22:01
Domain authority (Moz) of top content sites
domain, domain authority, spam score
https://www.youtube.com/, 100, 2
https://wordpress.com/, 98, 0
subdomain.wordpress.com/, 98, 0
http://www.slideshare.net/, 97, 0
https://www.etsy.com/, 94, 0
http://graphicriver.net/, 80, 3
https://creativemarket.com/, 62, 1
http://bootstrapcreative.com/, 27, 1
http://jacoblett.com/, 19, 0
@JacobLett
JacobLett / gist:7ff2fdb29a9c4e645d78
Created August 11, 2015 19:06
Countries / Languages
Mandarin
Spanish
English
Hindi
Arabic
Portuguese
Bengali
Russian
Japanese
German
@JacobLett
JacobLett / style.css
Last active September 19, 2015 22:01
Country show/hide CSS
<!-- shows united states and hides everywhere else -->
<a href="#" class="show-us">Show in United States</a>
<!-- shows in india and hides everywhere else -->
<a href="#" class="show-in">Show in India</a>
<!-- shows in china and hides everywhere else -->
<a href="#" class="show-cn">Show in China</a>