MacBook Air (MBA) Mid 2012
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 | |
switch ($templateOption->getType()) { | |
case "select": | |
$block = "painModule/select"; | |
$template = "painModule/type/select.phtml"; | |
break; | |
case "radiobuttons": | |
$block = "painModule/radiobuttons"; | |
$template = "painModule/type/radiobuttons.phtml"; | |
break; |
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 | |
/** | |
* Returns a PDO parameter constant to bind a variable with | |
* | |
* @param string $type Which variable type to check | |
* | |
* @return int PDO parameter constant | |
*/ | |
public static function getBindConstant($type) |
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 | |
$integers = range(100, 1000); | |
foreach ($integers as &$int) { | |
$int = (string)$int; | |
} | |
function arrayToInt(array $arr) | |
{ |
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
/* | |
load js libs: | |
'/Resources/public/js/lib/ace/ace.js' | |
'/Resources/public/js/lib/ace/mode-diff.js' | |
'/Resources/public/js/lib/ace/theme-chrome.js' | |
https://github.com/Slava/diff.js/blob/master/diff.js | |
*/ | |
var data = { /*json from server ... */ | |
after: [ |
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 | |
/** | |
* Checkout subscribe checkbox block renderer | |
* | |
* @category Ebizmarts | |
* @package Ebizmarts_MageMonkey | |
* @author Ebizmarts Team <[email protected]> | |
*/ | |
class Ebizmarts_MageMonkey_Block_Checkout_Subscribe extends Ebizmarts_MageMonkey_Block_Lists |
After having many deadlocks due to a high order volumne I've applied the these fixes to the core. Some can be found in a Magento forum. Before the fixes we could only process 1 order every 5-10 secs. Updating to Magento 1.8 is currently not an option but in 1-2 months.
Mage_Sales_Model_Abstract::_afterSave
must be removed and replaced with afterCommitCallback
. This is important to move the grid update (of sales_flat_order_grid) out of the transaction.
Rewrite the method of the Mage_CatalogInventory_Model_Observer::reindexQuoteInventory()
to remove the price reindexing from the transaction. That index process will also be fired in event sales_model_service_quote_submit_success
.
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 | |
class Zookal_Customer_Model_Observer_Controller_OAuth | |
{ | |
/** | |
* @param string $url | |
* | |
* @return bool | |
*/ |
I hereby claim:
- I am schumacherfm on github.
- I am cyrill (https://keybase.io/cyrill) on keybase.
- I have a public key whose fingerprint is 076A 9DCE D5C2 63EE 438B 2BF7 3D7A E252 C8C7 9677
To claim this, I am signing this object: