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 | |
/* @var $installer Mage_Catalog_Model_Resource_Eav_Mysql4_Setup */ | |
$installer = $this; | |
$installer->startSetup(); | |
// Add the attribute `baz` with some fields | |
$installer->addAttribute(Mage_Catalog_Model_Product::ENTITY, 'baz', array( | |
'label' => 'The Baz', // The label ;) |
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
_site |
We can make this file beautiful and searchable if this error is corrected: Any value after quoted field isn't allowed in line 1.
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
"stores";"sku";"filename";"attributes";"exclude" | |
"admin";"HTC Touch Diamond";"htc_touch_diamond.png";"image";"no" | |
"admin,default,french";"intelc2d";"intelc2d.png";"";"yes" | |
"german";"intelc2d";"intelc2d.png";"small_image,thumbnail";"no" |
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 | |
Zend_Debug::dump(Mage::app()->getLayout()->getUpdate()->getHandles()); |
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
<block type="core/text" name="head.jquery"> | |
<action method="setText"> | |
<text><![CDATA[<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>]]></text> | |
</action> | |
</block> |
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 | |
namespace Jbh; | |
class Counter | |
{ | |
use \Jbh\Db; | |
protected $_cache = []; | |
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
http://sam.zoy.org/wtfpl/COPYING |
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
echo trim(preg_replace_callback('/(.)(.)/isU', function ($matches) { | |
return strtoupper($matches[1]) . strtolower($matches[2]); | |
}, $txt)); |
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
# Prompt | |
# Get the branch name of the current directory | |
git_branch() | |
{ | |
if git rev-parse --git-dir >/dev/null 2>&1 ; then | |
gitver=$(git branch 2>/dev/null| sed -n '/^\*/s/^\* //p') | |
else | |
return 0 | |
fi | |
if [[ $# == 1 ]]; then |