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
Sub LoopSelection | |
Dim RGBarray(1 to 3) | |
Set oRange = ThisComponent.CurrentSelection | |
For i = 0 To oRange.Rows.getCount() - 1 | |
For j = 0 To oRange.Columns.getCount() - 1 | |
Set oCell = oRange.getCellByPosition( j, i ) | |
CBkC = oCell.CharColor | |
RGBarray(1) = Red(CBkC) : RGBarray(2) = Green(CBkC) : RGBarray(3) = Blue(CBkC) | |
If RGBarray(1) = 255 then | |
if oCell.value > 0 then |
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
<?php | |
class timeVsDateTimeTest extends PHPUnit_Framework_TestCase | |
{ | |
public function testTimeVsDateTime() | |
{ | |
$timeZone = "Europe/Madrid"; | |
ini_set('date.timezone', $timeZone); // otherwise next assertion won't pass. | |
date_default_timezone_set($timeZone); | |
$maybeUtc = time(); |
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
<?php | |
class AMQPReader{ | |
public function read_table() { | |
echo "do something"; | |
} | |
} | |
class BaseProtocol | |
{ |
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
<?php | |
function concatStrings(string $a, string $b) { | |
return $a . ' - ' . $b; | |
} | |
function sum(int $a, int $b) { | |
return $a + $b; | |
} |