Skip to content

Instantly share code, notes, and snippets.

View cjmosure's full-sized avatar
:octocat:
Github Developer Program

CJ Mosure cjmosure

:octocat:
Github Developer Program
View GitHub Profile
@cjmosure
cjmosure / international-top-five.html
Created January 10, 2017 16:05
international top five
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:cctd="http://www.constantcontact.com/cctd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>The International Top Five</title>
<style type="text/css">
/* /\/\/\/\/\/\/\/\/ CLIENT-SPECIFIC STYLES /\/\/\/\/\/\/\/\/ */
#outlook a{padding:0;} /* Force Outlook to provide a "view in browser" message */
.ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail to display emails at full width */
.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} /* Force Hotmail to display normal line spacing */
body, table, td, p, a, li, blockquote{-webkit-text-size-adjust:100%; -ms-text-size-adjust:100%;} /* Prevent WebKit and Windows mobile changing default text sizes */
@cjmosure
cjmosure / international-top-five.html
Created December 3, 2016 22:45
international top 5
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:cctd="http://www.constantcontact.com/cctd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>The International Top Five</title>
<style type="text/css">
/* /\/\/\/\/\/\/\/\/ CLIENT-SPECIFIC STYLES /\/\/\/\/\/\/\/\/ */
#outlook a{padding:0;} /* Force Outlook to provide a "view in browser" message */
.ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail to display emails at full width */
.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} /* Force Hotmail to display normal line spacing */
body, table, td, p, a, li, blockquote{-webkit-text-size-adjust:100%; -ms-text-size-adjust:100%;} /* Prevent WebKit and Windows mobile changing default text sizes */
@cjmosure
cjmosure / npm-permissions.sh
Created November 10, 2016 03:42
Fix npm permissions issues on macos
sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
@cjmosure
cjmosure / international-top-five.html
Created November 7, 2016 04:25
November International Top Five - Constant Contact
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:cctd="http://www.constantcontact.com/cctd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>The International Top Five</title>
<style type="text/css">
/* /\/\/\/\/\/\/\/\/ CLIENT-SPECIFIC STYLES /\/\/\/\/\/\/\/\/ */
#outlook a{padding:0;} /* Force Outlook to provide a "view in browser" message */
.ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail to display emails at full width */
.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} /* Force Hotmail to display normal line spacing */
body, table, td, p, a, li, blockquote{-webkit-text-size-adjust:100%; -ms-text-size-adjust:100%;} /* Prevent WebKit and Windows mobile changing default text sizes */
@cjmosure
cjmosure / international-top-five.html
Created September 29, 2016 18:27
international top five - constant contact - october
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:cctd="http://www.constantcontact.com/cctd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>The International Top Five</title>
<style type="text/css">
/* /\/\/\/\/\/\/\/\/ CLIENT-SPECIFIC STYLES /\/\/\/\/\/\/\/\/ */
#outlook a{padding:0;} /* Force Outlook to provide a "view in browser" message */
.ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail to display emails at full width */
.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} /* Force Hotmail to display normal line spacing */
body, table, td, p, a, li, blockquote{-webkit-text-size-adjust:100%; -ms-text-size-adjust:100%;} /* Prevent WebKit and Windows mobile changing default text sizes */
@cjmosure
cjmosure / internation-top-5-constant-contact.html
Last active September 6, 2016 14:21
The International Top Five - Constant Contact - September 2
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:cctd="http://www.constantcontact.com/cctd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>The International Top Five</title>
<style type="text/css">
/* /\/\/\/\/\/\/\/\/ CLIENT-SPECIFIC STYLES /\/\/\/\/\/\/\/\/ */
#outlook a{padding:0;} /* Force Outlook to provide a "view in browser" message */
.ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail to display emails at full width */
.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} /* Force Hotmail to display normal line spacing */
body, table, td, p, a, li, blockquote{-webkit-text-size-adjust:100%; -ms-text-size-adjust:100%;} /* Prevent WebKit and Windows mobile changing default text sizes */
@cjmosure
cjmosure / functions.php
Last active June 12, 2019 10:11
WP-PageNavi - Bootstrap 4
<?php
/**
* Clean up pagination
*/
add_filter( 'wp_pagenavi', __NAMESPACE__ . '\\gc_pagination', 10, 2 );
function gc_pagination($html) {
$out = '';
$out = str_replace('<div','',$html);
$out = str_replace('class=\'wp-pagenavi\'>','',$out);
@cjmosure
cjmosure / wp-permissions-script
Created June 28, 2016 22:50 — forked from macbleser/wp-permissions-script
WordPress Permissions Configuration Script
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro
#
WP_OWNER=changeme # &lt;-- wordpress owner
WP_GROUP=changeme # &lt;-- wordpress group
WP_ROOT=/home/changeme # &lt;-- wordpress root directory
@cjmosure
cjmosure / instructions.md
Last active November 26, 2015 19:51
Sage Theme / Wp Bootstrap Walker navigation dropdown sub menu fly out on hover

On the wp_bootstrap_navwalker.php near ln 84, change the $atts['href'] value as shown below and comment out the $atts['data-toggle'] value:

if ( $args->has_children && $depth === 0 ) {
	$atts['href'] = ! empty( $item->url ) ? $item->url : '';
	//$atts['data-toggle']	= 'dropdown';
	$atts['class']			= 'dropdown-toggle';
	$atts['aria-haspopup']	= 'true';
} else {
@cjmosure
cjmosure / twitter-mass-follow.js
Last active December 1, 2015 20:35
mass follow twitter
$('.user-actions-follow-button.js-follow-btn.follow-button .follow-text').parent().each(function(i, a) {a.click();})