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
*{margin:0;padding:0;box-sizing:border-box;} | |
body{padding:5px;} | |
li{list-style: none;} | |
.top_bar { | |
width: 700px; | |
height: 30px; | |
border: 1px solid #f00; | |
} |
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
/** | |
* Botao from Hell | |
* Resolvido! | |
* removi o height e coloquei só o line-height e ele ficou alinhado no Fx e Chrome | |
*/ | |
.btn { | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
box-sizing: border-box; | |
background: #515733; |
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 findWorkDays($dateStart, $dateEnd) | |
{ | |
$oneWeek = new \DateInterval('P7D'); | |
$date1 = new \DateTime($dateStart); | |
$date2 = new \DateTime($dateEnd); | |
$interval = $date1->diff($date2); | |
$freeDays = 0; | |
//Finding saturdays |
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
$teste = array( | |
array("foo" => "a", "bar" => "b", "timestamp" => 123456), | |
array("foo" => "a", "bar" => "b", "timestamp" => 987654), | |
array("foo" => "a", "bar" => "b", "timestamp" => 654789), | |
array("foo" => "a", "bar" => "b", "timestamp" => 456123) | |
); | |
/* | |
* how to transform that, in this (I mean, ordered by date) | |
*/ |