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.c=commit -m | |
alias.b=branch -v | |
alias.r=remote -v | |
alias.s=status -s | |
alias.a=add -A | |
alias.ba=branch --verbose --all | |
alias.la=log --graph --pretty=format:"%Cred%h%Creset%C(yellow)%d%Creset %s - %aE %Cgreen%cr%Creset" --abbrev-commit | |
alias.l=log -n10 --graph --pretty=format:"%Cred%h%Creset%C(yellow)%d%Creset %s - %Cblue%aE%Creset %Cgreen%cr%Creset" --abbrev-commit | |
alias.xa=stash apply | |
alias.l1=log -n 1 |
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
make* |
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
class classB { | |
private static $instance; | |
private $count = 0; | |
private function __construct() {} | |
static function functionB() { | |
if (!isset(self::$instance)) { | |
$className = __CLASS__; | |
self::$instance = new $className; | |
} | |
return self::$instance; |
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
class classA { | |
function functionA() { | |
static $variableA; | |
if (is_null($variableA)) { | |
$variableA = 0; | |
} else { | |
$variableA++; | |
} | |
return $variableA; | |
} |
NewerOlder