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
{ | |
"basics": { | |
"name": "Thomas Davis", | |
"label": "Web Developer", | |
"image": "https://avatars0.githubusercontent.com/u/416209?s=460&u=38f220a2c9c658141804f881c334c594eb1642ac&v=4", | |
"summary": "I’m a full stack web developer who can build apps from the ground up. I've worked mostly at startups so I am use to wearing many hats. I am a very product focussed developer who priotizes user feedback first and foremost. I'm generally very flexible when investigating new roles. ", | |
"website": "https://ajaxdavis.com", | |
"email": "[email protected]", | |
"location": { | |
"city": "Melbourne", |
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
#!/bin/bash | |
# Instructions to make hooks executable: | |
#- for Windows (attrib +x pre-commit) | |
#- for Linux (chmod +x pre-commit) | |
# ---------------------------------------------------------- # | |
# Prevent committing changes for files from specific folders # | |
# ---------------------------------------------------------- # | |
for SRC_PATTERN in "app_storefront_base" "modules"; do |
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
#!/bin/bash | |
# Instructions to make hooks executable: | |
#- for Windows (attrib +x prepare-commit-msg) | |
#- for Linux (chmod +x prepare-commit-msg) | |
# -------------------------------------------------------------------------------------- # | |
# Retrieve Ticket ID from the branch name and insert it as prefix for the commit message # | |
# -------------------------------------------------------------------------------------- # | |
branch_name="$(git symbolic-ref --short HEAD)" |
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
dump | |
Zend_Debug::dump(${VARIABLE variableFromPreviousAssignment default=""}${selection}${cursor}, null, true); | |
ifip | |
if($_SERVER['REMOTE_ADDR'] == 'yo.ur.ip.he.re') { | |
${selection}${cursor} | |
} | |
mail('[email protected]', 'Debug', print_r(${VARIABLE variableFromPreviousAssignment default=""}${selection}${cursor}, true)); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<layout> | |
<!-- ############# GLOBAL LAYOUT UPDATES ############# --> | |
<default> | |
<!-- Remove unwanted blocks entirely | |
<remove name="right.poll"/> | |
<remove name="right.permanent.callout"/> |
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
<remove name="right"/> | |
OR | |
<reference name="right"> | |
<action method="unsetChildren"></action> | |
</reference> | |
to remove all blocks on right side bar |
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 | |
require_once 'app/Mage.php'; | |
Mage::app(); | |
$categoryId = 86; | |
$products = Mage::getModel('catalog/product')->getCollection() | |
->addAttributeToSelect('*') | |
->addAttributeToFilter('type_id', 'configurable') | |
->joinField('category_id', 'catalog/category_product', 'category_id', 'product_id = entity_id', null, 'left') |
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 | |
$productModel = Mage::getModel('catalog/product'); | |
$attr = $productModel->getResource()->getAttribute("color"); | |
if ($attr->usesSource()) { | |
echo $color_id = $attr->getSource()->getOptionId("Red"); | |
echo $color_label = $attr->getSource()->getOptionText("8"); | |
} |