View gulpfile.js
var gulp = require('gulp'), // Gulp | |
jade = require('gulp-jade'), // Jade | |
stylus = require('gulp-stylus'), // Stylus | |
autoprefixer = require('gulp-autoprefixer'), // Autoprefixer | |
csso = require('gulp-csso'), // CSSO | |
imagemin = require('gulp-imagemin'), // Imagemin | |
concat = require('gulp-concat'), // Concat | |
cache = require('gulp-cache'); // Cache | |
browsersync = require('browser-sync'); // Browser-Sync |
View gist:5612677
a { | |
text-indent:-999em; | |
outline:none; | |
background: url(button.jpg) no-repeat 0 0; | |
width:100px; height:50px; | |
display:block; | |
} |
View gist:5563176
// => if you know the customer id | |
$customer = Mage::getModel('customer/customer')->load($id); | |
// => if you know the customer email address | |
$customer = Mage::getModel('customer/customer')->loadByEmail('some@email.com'); | |
if($customer->getId()) | |
{ | |
Mage::getSingleton('customer/session')->setCustomerAsLoggedIn($customer); | |
} |
View gist:4988720
git clean -f | |
If you want to also remove directories, run git clean -f -d. | |
If you just want to remove ignored files, run git clean -f -X. | |
If you want to remove ignored as well as non-ignored files, run git clean -f -x. | |
Note the case difference on the X for the two latter commands. | |
Unless you specify -f and clean.requireForce is set to "true" (the default) in your configuration, nothing will actually happen, with a recent enough version of git. |
View gist:3761266
<button class="button" onclick="window.location='/new' "><span><span>Read More</span></span></button></div> |
View gist:3714057
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('MYBLOCK')->toHtml() ?> |
View gist:3699551
<?php echo $this->__(Mage::getSingleton('customer/session')->getCustomer()->getName()); ?> |
View gist:3696197
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('your_cms_block_identifier')->toHtml() ?> |
View gist:3692081
{{block type="cms/page" page_id="your-cms-page-id" template="cms/content.phtml"}} |
View gist:3337662
<p class="featured-social">{{block type="catalog/product_list" category_id="49" template="catalog/product/featured.phtml"}}</p> |
NewerOlder