#Mac OS X
This file contains hidden or 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 | |
| /** | |
| * This script is used to clean up unassigned simple products | |
| * | |
| * @author Alexander Turiak <[email protected]> | |
| * @copyright Copyright (c) 2014 HexBrain (http://www.hexbrain.com) | |
| */ | |
| require_once 'abstract.php'; |
This file contains hidden or 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="cms/block" name="block_name"> | |
| <action method="setBlockId"><id>block_code</id></action> | |
| </block> | |
| {{block type="cms/block" block_id="block_code"}} | |
| {{block type="catalog/product_list" category_id="79" template="catalog/product/list_random.phtml"}} |
This file contains hidden or 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
| Let’s assume that new module (app/code/community/NewCustomerAttributeModule) adds new select attribute to customer backend form which is displayed on ‘My Dashboard’ in customer account on Frontend. | |
| We are going to test this attribute while creating customer on Backend. | |
| The following needs to be done: | |
| 1) As you added a new namespace, file dev/tests/functional/composer.json should be updated to use it: | |
| "psr-4": { | |
| "Magento\\": ["lib/Magento/", "vendor/magento/mtf/Magento/", "testsuites/Magento/"], | |
| "Mage\\": ["generated/Mage/", "tests/app/Mage/"], | |
| "Enterprise\\": ["generated/Community/", "tests/app/Community/"], | |
| "Community\\": ["generated/Community/", "tests/app/Community/"], | |
| "Test\\": "generated/Test/" |
This file contains hidden or 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
| In order to run test on any custom theme first of all you need to update all changed blocks according to new flow. To do this you need | |
| 1) create separate theme folder dev/tests/functional/tests/theme/responsive | |
| 2) create block that has another behavior then in default theme dev/tests/functional/tests/theme/responsive/Mage/Catalog/Test/Block/Search.php | |
| 3) update files autoload in composer.json | |
| "autoload": { | |
| "psr-4": { | |
| "Magento\\": ["lib/Magento/", "vendor/magento/mtf/Magento/", "testsuites/Magento/"], | |
| "Mage\\": ["generated/Mage/", "tests/theme/responsive/Mage/", "tests/app/Mage/"], | |
| "Enterprise\\": ["generated/Community/", "tests/app/Community/"], |
This file contains hidden or 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
| $scriptDir = $(Split-Path -parent $MyInvocation.MyCommand.Definition) | |
| function Install-NeededFor { | |
| param( | |
| [string] $packageName = '' | |
| ,[bool] $defaultAnswer = $true | |
| ) | |
| if ($packageName -eq '') {return $false} | |
| $yes = '6' |
This file contains hidden or 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 | |
| /** | |
| * Script to manage to version of Magento in a git mirror | |
| * php $argv[0] core-repository new-version-of-magento | |
| * | |
| * It will look for Mage.php in new-version-of-magento and parse the version | |
| * and edition from it. | |
| * | |
| * It will copy the code, remove the old files, create new branches if necessary |
This file contains hidden or 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
| #target photoshop | |
| // $.level = 2; | |
| /* | |
| * Script by Tomek Cejner (tomek (at) japko dot info) | |
| * based on work of Damien van Holten: | |
| * http://www.damienvanholten.com/blog/export-groups-to-files-photoshop/ | |
| * | |
| * My version adds support of nested layer groups, | |
| * and exports single layers in addition to groups. |
- Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
- rabl - General ruby templating with json, bson, xml, plist and msgpack support
- Thin - Very fast and lightweight Ruby web server
- Unicorn - Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels.
- SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
- Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
- [factory_girl](h