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 / Countries.txt
Created January 31, 2014 05:32
ISO Standard Countries
AF AFGHANISTAN
AX ALAND ISLANDS
AL ALBANIA
DZ ALGERIA
AS AMERICAN SAMOA
AD ANDORRA
AO ANGOLA
AI ANGUILLA
AQ ANTARCTICA
AG ANTIGUA AND BARBUDA
@cjmosure
cjmosure / .htaccess
Created February 12, 2014 10:26
.htaccess redirect all pages of a domain to the root of another domain
<IfModule mod_rewrite.c>
RewriteEngine On
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/ [R=301,L]
</IfModule>
@cjmosure
cjmosure / email.html
Created February 13, 2014 02:23
Global Cleveland General Email Template
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Global Cleveland</title>
<style type="text/css">body{
margin:0;
padding:0;
background-color:#eeeeee;
@cjmosure
cjmosure / mx.txt
Last active August 29, 2015 14:01
Google Apps MX Records
1
ASPMX.L.GOOGLE.COM
5
ALT1.ASPMX.L.GOOGLE.COM
5
ALT2.ASPMX.L.GOOGLE.COM
10
@cjmosure
cjmosure / email.html
Created June 2, 2014 16:37
Global Cleveland General Email Template
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta content="width=device-width" name="viewport" />
<style type="text/css">
#outlook a {
padding:0;
}
@cjmosure
cjmosure / email.html
Created June 2, 2014 17:37
DC Email Copy
<form>
<textarea><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><meta content="text/html;charset=UTF-8" http-equiv="content-type"/><title></title></head><body alink="#339999" bgcolor="#ffffff" class="scayt-enabled" link="#339999" style="color: rgb(51, 153, 153);background-color: rgb(255, 255, 255);" text="#339999" vlink="#339999"><div style="text-align: center;"><span style="font-size:14pt;"><span style="font-family: arial,helvetica,sans-serif;"><a href="https://www.eventbrite.com/e/your-world-starts-here-june-26th-dc-event-tickets-10772138757" style="text-align: center;"><span style="color: rgb(0, 169, 162);"><strong>ENROLL</strong></span></a> | <strong><a href="http://api.addthis.com/oexchange/0.8/forward/facebook/offer?pco=tbx32nj-1.0&url=http%3A%2F%2Fglobalcleveland.org%2Fevent%2Fdc-june-26-talent-attraction-party&pubid=ra-538cb2ff693438c8" target="_blank"><img alt="Facebook" border="0" src="http://cache.addthiscdn.com
@cjmosure
cjmosure / email.html
Last active August 29, 2015 14:02
University of Akron Global Cleveland Email
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="content-type" />
<title></title>
</head>
<body alink="#339999" bgcolor="#ffffff" class="scayt-enabled" link="#339999" style="color: rgb(51, 153, 153); background-color: rgb(255, 255, 255);" text="#339999" vlink="#339999">
<div style="text-align: center;"><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size:14pt;"><span style="text-align: center;"><strong><a href="https://jobsincleveland.eventbrite.com">R</a></strong></span><a href="https://jobsincleveland.eventbrite.com"><span style="text-align: center;"><strong>egister</strong></span></a> | </span><a href="{VR_F2AF_LINK}">Forward this message to a friend</a></span><br />
{VR_SOCIAL_SHARING}
<table align="center" border="1" bordercolor="#CCC" cellpadding="1" cellspacing="1" style="width: 500px;">
@cjmosure
cjmosure / job-email.html
Last active August 29, 2015 14:02
Jobfair Email
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="content-type" />
<title></title>
</head>
<body alink="#339999" bgcolor="#ffffff" class="scayt-enabled" link="#339999" style="color: rgb(51, 153, 153); background-color: rgb(255, 255, 255);" text="#339999" vlink="#339999">
<div style="text-align: center;"><span style="font-family:verdana,geneva,sans-serif;"><a href="http://globalcleveland.org/jobs/job-fairs?utm_campaign=jobfairemail&utm_medium=email&utm_source=careertown"><span style="text-align: center;"><strong>Register</strong></span></a></div>
<table align="center" border="1" bordercolor="#CCC" cellpadding="1" cellspacing="1" style="width: 500px;">
@cjmosure
cjmosure / email.html
Last active August 29, 2015 14:02
Kent State Email
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="content-type" />
<title></title>
</head>
<body alink="#339999" bgcolor="#ffffff" class="scayt-enabled" link="#339999" style="color: rgb(51, 153, 153); background-color: rgb(255, 255, 255);" text="#339999" vlink="#339999">
<div style="text-align: center;"><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size:14pt;"><span style="text-align: center;"><strong><a href="http://www.globalcleveland.org/event/dc-june-26-talent-attraction-party?utm_source=june26&utm_medium=email&utm_campaign=kentstateu">R</a></strong></span><a href="http://www.globalcleveland.org/event/dc-june-26-talent-attraction-party?utm_source=june26&utm_medium=email&utm_campaign=kentstateu"><span style="text-align: center;"><strong>egister</strong></span></a><br />
<table align="center" border="1" bordercolor="#CCC" cellpadding="1" cellspa
@cjmosure
cjmosure / head.php
Created June 21, 2014 06:52
Proper usage of the 'Background' field in Option Tree
<?php $feature_bg = ot_get_option( 'feature_background_image', array() ); ?>
<?php echo '<style type="text/css">'; ?>
.bs-header
{
background-color: <?php if($feature_bg['background-color']){echo $feature_bg['background-color'] ; }else{ echo '#eaeaea';} ?>;
background-repeat:<?php if($feature_bg['background-repeat']){echo $feature_bg['background-repeat'] ; }else{ echo 'no-repeat';} ?>;
background-attachment:<?php if($feature_bg['background-attachment']){echo $feature_bg['background-attachment'] ; }else{ echo 'inherit';} ?>;
background-position:<?php if($feature_bg['background-position']){echo $feature_bg['background-position'] ; }else{ echo 'top';} ?>;
background-image:url('<?php if($feature_bg['background-image']){echo $feature_bg['background-image'] ; }else{ echo get_template_directory_uri().'/assets/img/salesforce-header.png';} ?>') ;
}