Skip to content

Instantly share code, notes, and snippets.

View jonathanmoore's full-sized avatar
🚀
Building for Shopify

Jonathan Moore jonathanmoore

🚀
Building for Shopify
View GitHub Profile
@jonathanmoore
jonathanmoore / gist:768125
Created January 6, 2011 16:32
Nova - Black version w/ white footer
#footer_main {
background: #fff;
}
#footer_main .liked li {
border-right: 1px dashed #dadada;
}
#footer_main .liked {
border-bottom: 2px solid #dadada;
}
#footer_main .liked footer li.icon-liked a {
@jonathanmoore
jonathanmoore / Kill Photosets
Created April 4, 2011 13:40
Paste this into the Description field.
<script type="text/javascript">
;(function($){
var defaults = {
photoSize: 1280
};
$.fn.killPhotoset = function(options){
@jonathanmoore
jonathanmoore / gist:948769
Created April 29, 2011 18:28
Inspire Well - Description HTML sidebar elements
<h2>My Promo</h2>
<p>
<a href="http://promolink.com"><img src="image-file.jpg" height="100" width="250" /></a>
</p>
<h2>Sites I Love</h2>
<ul class="pages">
<li><a href="http://site.com">Site Name</a></li>
<li><a href="http://site.com">Site Name</a></li>
<li><a href="http://site.com">Site Name</a></li>
<li><a href="http://site.com">Site Name</a></li>
@jonathanmoore
jonathanmoore / gist:1099975
Created July 22, 2011 17:54
Transcender / Ascender - additional sidebar widget HTML
<h4>First box</h4>
<p>Text HTML inside of the first widget box</p>
</div><div class="sidebox widget">
<h4>Second box</h4>
<p>Check out <a href="http://stylehatch.co">Style Hatch</a></p>
</div><div class="sidebox widget">
<h4>Third box</h4>
<p>Text HTML inside of the third widget box</p>
@jonathanmoore
jonathanmoore / disqus-comment-count
Created November 18, 2011 17:08
Updated Disqus comment count
{block:IfDisqusUsername}
<script type="text/javascript">
var disqus_shortname = '{text:Disqus Username}';
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
<section class="ad">
<object height="260" width="100%"><param name="wmode" value="transparent"><param name="movie" value="http://widget.gigatools.com/GigaToolsWidget.swf?user=benjiboko&font=default&ca=0&cb=33ff00&cc=ffffff"></param>; <param name="allowscriptaccess" value="always"></param> <embed allowscriptaccess="always" wmode="transparent" height="260" src="http://widget.gigatools.com/GigaToolsWidget.swf?user=benjiboko&font=default&ca=0&cb=33ff00&cc=ffffff"; type="application/x-shockwave-flash" width="100%"></embed></object>
</section>
@jonathanmoore
jonathanmoore / gist:1473089
Created December 13, 2011 17:45
Tumblr <embed> striping
<!-- Embed code for Mixcloud -->
<object width="480" height="480">
<param name="movie" value="http://www.mixcloud.com/media/swf/player/mixcloudLoader.swf?feed=http%3A%2F%2Fwww.mixcloud.com%2Fvlekrecords%2Fssaliva-lrzpm%2F&embed_uuid=ae879085-19b7-4e66-86b0-9e2e50835c9d&stylecolor=&embed_type=widget_standard"></param>
<param name="allowFullScreen" value="true"></param>
<param name="wmode" value="opaque"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.mixcloud.com/media/swf/player/mixcloudLoader.swf?feed=http%3A%2F%2Fwww.mixcloud.com%2Fvlekrecords%2Fssaliva-lrzpm%2F&embed_uuid=ae879085-19b7-4e66-86b0-9e2e50835c9d&stylecolor=&embed_type=widget_standard" type="application/x-shockwave-flash" wmode="opaque" allowscriptaccess="always" allowfullscreen="true" width="480" height="480"></embed>
</object>
<!-- Embed code after Tumblr strips the <embed> tag -->
@jonathanmoore
jonathanmoore / pinterest.js
Created March 26, 2012 23:21 — forked from 65/pinterest.js
pinterest buttons on every image in a blog post using jquery
$().ready(function() {
$('.entry-body img').each(function(){
var $permalink = $(this).parents('.entry').find('.permalink').attr('href');
$(this).wrap('<div class="pinme" style="' + $(this).attr('style') + '" />').after('<a href="http://pinterest.com/pin/create/button/?url=' + $permalink + '&media=' + $(this).attr('src') + '&description=' + $(this).attr('alt') + '" class="pin-it-button" count-layout="vertical">Pin It</a>');
});
$('.pinme').hover(function() {
$(this).children('iframe').css('display','block');
}, function() {
$(this).children('iframe').css('display','none');
@jonathanmoore
jonathanmoore / README.mkd
Created November 8, 2012 07:55 — forked from christophermanning/README.md
Voronoi Diagram with Force Directed Nodes and Delaunay Links

Created by Christopher Manning

Summary

Nodes are linked to nodes in neighboring cells. The cell's color is a function of its area.

Controls

  • Drag the nodes to interact with the diagram.
  • Use the mousewheel to add/remove nodes.
@jonathanmoore
jonathanmoore / gulp-build-branch.js
Created June 13, 2014 21:00
Gulp Task for building to a new branch
gulp.task 'deploy', shell.task [
'git checkout master'
'git branch -D dist'
'git stash'
'git checkout -b dist'
'rm .gitignore'
'git add .gitignore --all'
'gulp build',
'git add public'
'git commit -m "build for release"'