Semantic grid system: http://semantic.gs/
They'd love to see an analytics script to track how often people are resizing the browser
- add resize listener to the window, send GA event
- git://gist.github.com/3076998.git
<IfModule mod_deflate.c> | |
# compress text, html, javascript, css, xml: | |
AddOutputFilterByType DEFLATE text/plain | |
AddOutputFilterByType DEFLATE text/html | |
AddOutputFilterByType DEFLATE text/xml | |
AddOutputFilterByType DEFLATE text/css | |
AddOutputFilterByType DEFLATE application/xml | |
AddOutputFilterByType DEFLATE application/xhtml+xml | |
AddOutputFilterByType DEFLATE application/rss+xml | |
AddOutputFilterByType DEFLATE application/javascript |
<?php | |
add_filter( 'be_gallery_metabox_args', 'be_gallery_custom_args' ); | |
/** | |
* Only show images marked as Include in Rotator | |
* @author Bill Erickson | |
* @link http://www.wordpress.org/extend/plugins/gallery-metabox | |
* @since 1.0 | |
* | |
* @param array query $args |
<?php | |
remove_action( 'wp_head', 'feed_links_extra', 3 ); | |
remove_action( 'wp_head', 'feed_links', 2 ); | |
remove_action( 'wp_head', 'rsd_link' ); | |
remove_action( 'wp_head', 'wlwmanifest_link' ); | |
remove_action( 'wp_head', 'index_rel_link' ); | |
remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 ); | |
remove_action( 'wp_head', 'start_post_rel_link', 10, 0 ); | |
remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 ); | |
remove_action( 'wp_head', 'wp_generator' ); |
// Creating a grammatical pattern for real numbers using XRegExp.build | |
/* | |
* Approach 1: Make all of the subpatterns reusable | |
*/ | |
var lib = { | |
digit: /[0-9]/, | |
exponentIndicator: /[Ee]/, | |
digitSeparator: /[_,]/, |
.hide-text { | |
height: ; | |
width: ; | |
display: block; | |
text-indent: 100%; | |
white-space: nowrap; | |
overflow: hidden; | |
} |
Semantic grid system: http://semantic.gs/
They'd love to see an analytics script to track how often people are resizing the browser
// Retrieve Customer by Email (or other method) | |
$customer = Mage::getModel('customer/customer') | |
->setWebsiteId(Mage::app()->getStore()->getWebsiteId()) | |
->loadByEmail($email); | |
// Set as Logged In and Clear Session | |
Mage::getSingleton('customer/session')->setCustomerAsLoggedIn($customer) | |
->renewSession(); | |
// Redirect or do something here :) |