Skip to content

Instantly share code, notes, and snippets.

View oneblackcrayon's full-sized avatar

Frederick Polk oneblackcrayon

View GitHub Profile
@oneblackcrayon
oneblackcrayon / MailChimp-Footer-Code.html
Last active September 21, 2017 10:26
MailChimp Required Footer Code. This should help you remove the grey footer that gets put at the bottom of your emails.
@oneblackcrayon
oneblackcrayon / MailChimp-VCard-CSS-Styles.css
Last active December 13, 2015 20:58
MailChimp VCard CSS Styles. Jump start your MailChimp VCard stylings
/* starts the vcard injected tags */
div.vcard {}
span.org {display: inline;}
/* by adding a margin right of 4 pixels, we fake a space in between inline items that are all in a line */
span.fn {display: inline;margin-right:4px;}
/* hide the br tag that gets injected */
div.vcard br {}
@oneblackcrayon
oneblackcrayon / MailChimpAdvancedOpt-InDesignerStyles.css
Created February 17, 2013 23:36
MailChimp Advanced Opt-In Designer Styles Here are all of the styles that I could find for MailChimp Opt-In forms. Your usage may vary.
/*
Here are all of the styles that I could find for MailChimp Opt-In forms.
Your usage may vary.
*/
a:hover, a:active {color:#bb2e02;text-decoration:none}
a:link {color:#9c2703;text-decoration:underline}
a:link, a:active, a:visited, a {color:#18f}
a:visited {color:#791d01;text-decoration:underline}
@oneblackcrayon
oneblackcrayon / obc-default-style.css
Created May 8, 2013 06:57
My current default CSS reset. Includes Formalize, some Normalize, some Twitter Bootstrap (I think) and others.
html,body{/* moz */-moz-box-sizing: border-box;-moz-font-smoothing: antialiased;-moz-margin-before: 0px;-moz-margin-after: 0px;-moz-margin-start: 0;-moz-margin-end: 0;/* moz */-ms-box-sizing: border-box;-ms-margin-before: 0px;-ms-margin-after: 0px;-ms-margin-before: 0px;-ms-margin-after: 0px;/* opera */-o-box-sizing: border-box;-o-font-smoothing: antialiased;-o-margin-before: 0px;-o-margin-after: 0px;-o-margin-start: 0;-o-margin-end: 0;/* webkit */-webkit-font-smoothing: antialiased;-webkit-box-sizing: border-box;-webkit-margin-before: 0px;-webkit-margin-after: 0px;-webkit-margin-start: 0;-webkit-margin-end: 0;box-sizing: border-box;text-rendering: optimizeLegibility;}
html{background-color:#191919;background-clip:border-box;background-origin:border-box;background-image:none;background-position:left top;background-repeat:repeat;background-size:contain;color:#e7e7e7;height:100%;margin:0;min-height:100%;min-width:100%;text-align:center;}
body{font-family:'Helvetica Neue','HelveticaNeue',Helvetica,Arial,sans-ser
@oneblackcrayon
oneblackcrayon / style.css
Last active December 25, 2015 06:09
Structure for a CSS Stylesheet.
/*
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
1. Normalize CSS
2. Formalize CSS
3. WordPress CSS
4. Your CSS
4a. Advanced Normalize Styles
4b. Global Classes
4b.1 Readability
@oneblackcrayon
oneblackcrayon / 0_reuse_code.js
Created November 22, 2013 22:29
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@oneblackcrayon
oneblackcrayon / remove_wp_head_stuff.php
Created November 22, 2013 22:31
Remove WordPress Head
remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0);
remove_action('wp_head', 'feed_links_extra', 3);
remove_action('wp_head', 'feed_links', 2);
remove_action('wp_head', 'index_rel_link');
remove_action('wp_head', 'locale_stylesheet');
remove_action('wp_head', 'noindex');
remove_action('wp_head', 'parent_post_rel_link', 10, 0);
remove_action('wp_head', 'rel_canonical');
remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'start_post_rel_link', 10, 0);
@oneblackcrayon
oneblackcrayon / list pages in different directories
Created January 8, 2014 03:21
This is how you loop through different directories in Jekyll using Liquid. I searched through about 50 pages on Stack Overflow, NationBuilder, and GitHub. There should be better documentation on JekyllRB.com for this kind of stuff. You can change the page.layout to be anything in your page's front-matter (the stuff that starts and ends with the …
{% case page.layout %}
{% when 'page' %}
{% for page in site.pages %}
{% if page.layout == 'page' %}
{% if page.title != 'Home' %}
<a href="{{ page.url }}">{{ page.title }}</a>
{% endif %}
{% endif %}
{% endfor %}
{% when 'app' %}
@oneblackcrayon
oneblackcrayon / default SASS watch command
Last active August 29, 2015 13:56
Default Terminal command to have SASS process files.
## My default SASS watch command
sass --watch --scss --style expanded sass:css
## Direct file watch command
sass --watch --scss --style expanded style.scss:style.css
## Suppress warnings and errors using --quiet
sass --quiet --watch --scss --style expanded sass:assets
@font-face {
font-family: 'EntypoRegular';
src: url('font/entypo.eot');
src: url('font/entypo.eot?#iefix') format('embedded-opentype'),
url('font/entypo.woff') format('woff'),
url('font/entypo.ttf') format('truetype'),
url('font/entypo.svg#EntypoRegular') format('svg');
font-weight: normal;
font-style: normal;
}