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_value memory_limit 64M | |
# magento config -> | |
php_value memory_limit 1G |
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 | |
# THIS WORK | |
$qb->orderBy('uc.is_current DESC, uc.date_from', 'DESC') | |
# THIS NOT WORK | |
$qb->orderBy('uc.date_from DESC') | |
?> |
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 | |
/** | |
* get address street | |
* | |
* @param int $line address line index | |
* @return string | |
*/ | |
public function getStreet($line=0) | |
{ | |
$street = parent::getData('street'); |
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
_______ _______ _ | |
( ____ \|\ /|( ____ \| \ /\ | |
| ( \/| ) ( || ( \/| \ / / | |
| (__ | | | || | | (_/ / | |
| __) | | | || | | _ ( | |
| ( | | | || | | ( \ \ | |
| ) | (___) || (____/\| / \ \ | |
|/ (_______)(_______/|_/ \/ | |
_______ _______ _______ _______ _ _________ _______ |
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 | |
function foo() { | |
$args = func_get_args(); | |
print "<pre>"; | |
var_dump($args); | |
print "</pre>"; | |
} | |
foo(1, 2, 3); |
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 | |
/* | |
* This file is part of the Symfony package. | |
* | |
* (c) Fabien Potencier <[email protected]> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ |
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 | |
function array_diff_simple($a, $b) | |
{ | |
$r = array(); | |
foreach($a as $key => $val) { | |
if(!isset($b[$key])) { | |
$r[$key] = $val; | |
} else { | |
if(is_array($b[$key]) && !is_array($val)) { |
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
switch (is_nan($diff) === false) | |
{ | |
case $originalValue == $absValue: | |
case $originalValue * $absValue == 0 && $diff < pow($epsilon, 2): | |
case $diff / ($originalValue + $absValue) < $epsilon: | |
return $this; | |
} | |
$diff = new diffs\variable(); |
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 Foo | |
{ | |
public function bar() | |
{ | |
$copy = clone $this; | |
echo $copy->baz(); | |
} | |
private function baz() |
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
%skip space \s | |
%token bracket_ \( | |
%token _bracket \) | |
%token comma , | |
%token number \-?(0|[1-9]\d*)(\.\d+)?([eE][\+\-]?\d+)? | |
%token plus \+ | |
%token minus \- | |
%token times \* | |
%token div / | |
%token function \w+ |
OlderNewer