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
| alias mysqlstart='sudo /usr/local/mysql/support-files/mysql.server start' | |
| alias mysqlstop='sudo /usr/local/mysql/support-files/mysql.server stop' | |
| alias mysqlrestart='sudo /usr/local/mysql/support-files/mysql.server restart' |
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
| { | |
| /* Home */ | |
| "\UF729" = "moveToBeginningOfLine:"; | |
| /* End */ | |
| "\UF72B" = "moveToEndOfLine:"; | |
| /* Shift + Home */ | |
| "$\UF729" = "moveToBeginningOfLineAndModifySelection:"; |
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 | |
| class Import | |
| { | |
| protected $store; | |
| function __construct(Mage_Core_Model_Store $store) | |
| { |
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 | |
| // source arrays | |
| $source_1 = [ | |
| 'abc' => [0 => 'a'], | |
| 'b' => 'c' | |
| ]; | |
| $source_2 = [ |
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
| var AjaxBackend = Class.create(); | |
| AjaxBackend.prototype = { | |
| initialize: function(url) { | |
| this.url = url; | |
| }, |
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
| <frontend> | |
| <events> | |
| <!-- logs --> | |
| <controller_action_predispatch> | |
| <observers><log><type>disabled</type></log></observers> | |
| </controller_action_predispatch> | |
| <controller_action_postdispatch> | |
| <observers><log><type>disabled</type></log></observers> | |
| </controller_action_postdispatch> | |
| <customer_login> |
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 | |
| include 'app/Mage.php'; | |
| Mage::app(); | |
| $file = fopen("skus.csv", "r"); | |
| while ($data = fgetcsv($file, 1000, ",")) { | |
| $old = $data[0]; | |
| $new = $data[1]; | |
| $product = Mage::getModel('catalog/product')->loadByAttribute('sku', $old); | |
| if($product && $product->getId()){ | |
| $product->setSku($new); |
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 | |
| class Dude implements Woah, Whoa{} | |
| interface Woah | |
| { | |
| const WOAH = true; | |
| } | |
| interface Whoa | |
| { | |
| const WHOA = true; |
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 | |
| function array_walk_depth(array &$arr, $depth, $callback) | |
| { | |
| $depth--; | |
| foreach($arr as $key => &$val){ | |
| if($depth) array_walk_depth($val, $depth, $callback); |
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 | |
| Product::create([ | |
| 'sku' => 'foo', | |
| 'name' => 'Standard Foo', | |
| 'price' => 8.99, | |
| 'special_price' => 6.99, | |
| 'categories' => ['category' => [1,3,5]] | |
| ]); |