This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// these are (ruh-roh) globals. You could wrap in an | |
// immediately-Invoked Function Expression (IIFE) if you wanted to... | |
var currentTallest = 0, | |
currentRowStart = 0, | |
rowDivs = new Array(); | |
function setConformingHeight(el, newHeight) { | |
// set the height to something new, but remember the original height in case things change | |
el.data("originalHeight", (el.data("originalHeight") == undefined) ? (el.height()) : (el.data("originalHeight"))); | |
el.height(newHeight); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section> | |
<div> | |
<img src="http://placehold.it/200x255"/> | |
<h2>Text here</h2> | |
</div> | |
<div> | |
<img src="http://placehold.it/200x255"/> | |
<h2>Longer Text here</h2> | |
</div> | |
<div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="product"> | |
<img src="http://placehold.it/250x250"> | |
<h3>Product</h3> | |
</div> | |
<div class="product product--sold-out"> | |
<img src="http://placehold.it/250x250"> | |
<h3>Product</h3> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#get root access | |
$su - | |
$ cd /tmp | |
#Remove old Ruby | |
$ yum remove ruby | |
# Install dependencies | |
$ yum groupinstall "Development Tools" | |
$ yum install zlib zlib-devel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.7) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
// Breakpoint maps | |
// @key: name of breakpoint | |
// @value: map of settings for breakpoint | |
// -@key: type of media query | |
// -@value: value for current type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: WP Log/Debug | |
* Author: Nadav Spiegelman | |
*/ | |
/** | |
* turn on WP_DEBUG_LOG but without E_STRICT | |
* http://snippets.webaware.com.au/snippets/wordpress-wp_debug_log-without-e_strict/ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="button-group"> | |
<a href="#" class="button--secondary">Back</a> | |
<a href="comments.html" class="button">Next</a> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>hello</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<blog_index_list> | |
<reference name="right.blog.menu"> | |
<block type="newsletter/subscribe" name="footer.newsletter" as="footer_newsletter" template="newsletter/footer_subscribe.phtml"/> | |
</reference> | |
</blog_index_list> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class="social-networks"> | |
<li><a class="facebook addthis_button_facebook" href="javascript:;"><span>facebook</span></a></li> | |
<li><a class="twitter addthis_button_twitter" href="javascript:;"><span>twitter</span></a></li> | |
<li><a class="pinterest addthis_button_pinterest_share" href="javascript:;"><span>pinterest</span></a></li> | |
<li><a class="tumblr addthis_button_tumblr" href="javascript:;"><span>tumblr</span></a></li> | |
<li><a class="google addthis_button_google_plusone_share" href="javascript:;"><span>google</span></a></li> | |
<li><a class="email addthis_button_email" href="javascript:;"><span>email</span></a></li> | |
</ul> | |
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5347096c3e745579"></script> |
OlderNewer