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
function getTimeStringBrasilConvert(brDate){ | |
return new Date(brDate.split('/').reverse().join("-")); | |
} |
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 | |
$time_zone = new DateTimeZone('America/Sao_Paulo'); | |
$now = new DateTime(); | |
$now->setTimezone($time_zone); | |
echo $timestring = $now->format('Y-m-d H:i:s'); |
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
.vertical-alinhamento { | |
display: -webkit-flex; | |
display: -ms-flexbox; | |
display: flex; | |
-webkit-align-items: center; | |
-ms-flex-align: center; | |
align-items: center; | |
} |
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
/* Large desktops and laptops */ | |
@media (min-width: 1200px) { | |
} | |
/* Landscape tablets and medium desktops */ | |
@media (min-width: 992px) and (max-width: 1199px) { | |
} |
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 | |
preg_replace('/^([\d]{4})-([\d]{2})-([\d]{2})$/', '$3/$2/$1', $date); |
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 | |
preg_replace('/([\d]{3})([\d]{3})([\d]{3})([\d]{2})/', '$1.$2.$3-$4', $order_info['custom_field'][$this->config->get('pagseguro_cpf')]); |
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 | |
$ex = new stdClass; | |
if(property_exists($ex, "nome_propiedade")){ | |
echo 'exite'; | |
} else { | |
echo 'nao existe' | |
} |
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
du -sch * |
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
git blame arquivo.php -L 3400,3450 | |
git log -S "texto para busca" arquivo.php | |
git log --graph | |
git log --author="Jon" | |
git log --after="2013-11-12 00:00" --before="2013-11-12 23:59 |
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
{ | |
"files.eol": "\n", | |
"editor.tabSize": 4, | |
"editor.insertSpaces": true, | |
"editor.detectIndentation": false, | |
"editor.renderWhitespace": "all", | |
"files.encoding": "utf8" | |
} |