Skip to content

Instantly share code, notes, and snippets.

// 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);
@nadavspi
nadavspi / SassMeister-input-HTML.html
Created April 24, 2014 19:06
Generated by SassMeister.com.
<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>
@nadavspi
nadavspi / SassMeister-input-HTML.html
Created April 25, 2014 21:16
Generated by SassMeister.com.
<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>
#get root access
$su -
$ cd /tmp
#Remove old Ruby
$ yum remove ruby
# Install dependencies
$ yum groupinstall "Development Tools"
$ yum install zlib zlib-devel
@nadavspi
nadavspi / SassMeister-input.scss
Created May 13, 2014 12:14
Generated by SassMeister.com.
// ----
// 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
<?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/
*/
<div class="button-group">
<a href="#" class="button--secondary">Back</a>
<a href="comments.html" class="button">Next</a>
</div>
@nadavspi
nadavspi / SassMeister-input-HTML.html
Created June 23, 2014 21:16
Generated by SassMeister.com.
<h1>hello</h1>
<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>
<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>