Skip to content

Instantly share code, notes, and snippets.

Jonathan Moore jonathanmoore

Block or report user

Report or block jonathanmoore

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View git-separate.md

Steps to break one large repo into multiple repos based off of DIRNAME

git filter-branch --prune-empty --subdirectory-filter DIRNAME master

rm -rf .git/refs/original/ && git reflog expire --all &&  git gc --aggressive --prune=now

git clean -fdx

git reflog expire --all --expire-unreachable=0
@jonathanmoore
jonathanmoore / custom.css
Created Apr 28, 2014
Cadence Center Images
View custom.css
/*
Cadence Center Images Added to the Caption/Body of Posts
Paste the following into Customize > Advanced > Custom CSS
*/
article section img {
display: block;
margin: 0 auto;
}
@jonathanmoore
jonathanmoore / District.scss.liquid
Created Jul 24, 2015
Replace the file in assets/district.scss.liquid
View District.scss.liquid
/*============================================================================
District Theme v1.0.0
Copyright 2015 Style Hatch Inc.
Author Jonathan Moore @moore
Some things to know about this file:
- Sass is compiled on Shopify's server so you don't need to convert it to CSS yourself
- The output CSS is compressed and comments are removed
- You cannot use @imports in this file
* Use grunt or gulp tasks to enable @imports - https://github.com/Shopify/shopify-css-import
View gist:724092
<section class="ad">
<!-- Insert your ad code -->
</section>
<section>
<div class="base">
<nav class="pages">
<h4>Extra Box Title</h4>
<p>Paragraph body text</p>
<ul>
@jonathanmoore
jonathanmoore / gist:740786
Created Dec 14, 2010
Savory Sidebar HTML Template
View gist:740786
</section>
<section class="default">
<h4>Title of a new block</h4>
<p>Paragraph talking about the block</p>
<p>Ads could also go here.</p>
<div class="bubble">
<p>add content, facebook like box, etc here in a box identical to the recent updates (twitter) box</p>
<ul>
<li><a href="http://google.com">Link to Google</a></li>
<li><a href="http://tumblr.com">Link to Tumblr</a></li>
View gist:740848
<script type="text/javascript">
jQuery.fn.stripTags = function() {
var r = this.html().replace( /&lt;/g, '<' );
r = r.replace( /&gt;/g, '>' );
r = r.replace( /&amp;/g, '&' );
this.replaceWith( r );
};
$(document).ready(function() {
$("div.box.link .content_wrap strong").stripTags();
});
View gist:749623
<!-- Beginning of Project Wonderful ad code: -->
<!-- Ad box ID: 52967 -->
<script type="text/javascript">
<!--
var pw_d=document;
pw_d.projectwonderful_adbox_id = "52967";
pw_d.projectwonderful_adbox_type = "3";
//-->
</script>
<script type="text/javascript" src="http://www.projectwonderful.com/ad_display.js"></script><script type="text/javascript" src="http://www.projectwonderful.com/gen.php?id=52967&amp;type=3&amp;r=6250.&amp;location=http%3A//tumblr.comicscavern.com/"></script><table cellpadding="0" border="0" cellspacing="0" width="160" bgcolor="#ffffff"><tbody><tr bgcolor="#ffffff"><td width="160" bgcolor="#ffffff" valign="top" align="center" style="vertical-align:top;"><a href="http://www.projectwonderful.com/out.php?go=84739759&amp;_r=" target="_blank"><img src="http://www.projectwonderful.com/img/uploads/pics/15812-1250798080.gif" width="160" height="600" border="0" title="Join Star Pirates Today!" alt="Join Star Pirates Today!"></a></td></tr><tr><td bgcolor="#ffffff" colspan="1"><center><a style="fo
@jonathanmoore
jonathanmoore / gist:751998
Created Dec 22, 2010
Nova Sidebar Templates
View gist:751998
<section class="ad">
<!-- Insert your ad code -->
</section>
<section>
<div class="base">
<nav class="pages">
<h4>Extra Box Title</h4>
<p>Paragraph body text</p>
<ul>
View gist:756310
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6.b - Charcoal Theme
--------------------------------
--------------------------------
Colors
#ffffff; /* white
#696a5c; /* red
#222222; /* dark red
#e5e8bb; /* butter
#696a5c; /* dark butter
View gist:758763
<p>We're your top source for everything fashion, fabulous and fun! Incorporating CHADWICKS, metrostyle and Casual Living into your everyday lifestyle! Presented by the Boston Apparel Group</p>
<h2>Brand 1 Name Title</h2>
<p>Brand description <a href="http://brandlink.com">link</a></p>
<h2>Brand 2 Name Title</h2>
<p>Brand description <a href="http://brandlink.com">link</a></p>
<h2>Brand 3 Name Title</h2>
<p>Brand description <a href="http://brandlink.com">link</a></p>
You can’t perform that action at this time.