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
| Styling Excel cells with mso-number-format | |
| mso-number-format:"0" NO Decimals | |
| mso-number-format:"0\.000" 3 Decimals | |
| mso-number-format:"\#\,\#\#0\.000" Comma with 3 dec | |
| mso-number-format:"mm\/dd\/yy" Date7 | |
| mso-number-format:"mmmm\ d\,\ yyyy" Date9 | |
| mso-number-format:"m\/d\/yy\ h\:mm\ AM\/PM" D -T AMPM | |
| mso-number-format:"Short Date" 01/03/1998 | |
| mso-number-format:"Medium Date" 01-mar-98 | |
| mso-number-format:"d\-mmm\-yyyy" 01-mar-1998 |
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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>AES client/server test</title> | |
| <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css"> | |
| <style> | |
| body { font-size: 80%; padding: 1em; } | |
| form { margin-top: 2em; } | |
| label { display: inline-block; width: 6em; } |
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 | |
| /** | |
| * @compability: Linux only. (Windows does not work). | |
| * @author: Alexander Jank <[email protected]> | |
| */ | |
| class Process{ | |
| private $pid; | |
| private $command; | |
| private $cmdHash; | |
| public $output = ""; |
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
| /** | |
| * функция переворота строки | |
| * @param string $string | |
| * @return string | |
| */ | |
| function reverseString($string) { | |
| $lenString = mb_strlen($string, 'UTF-8'); | |
| $arrayTo = []; | |
| if ($lenString > 255) { | |
| return 'Заднаная строка превышает длинну в 255 символов'; |
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
| /** | |
| * функция начисления очков по результатам угаданного счета в играх | |
| * @param int $aa предпологаемый счет команды А | |
| * @param int $ab предпологаемый счет команды Б | |
| * @param int $fa фактический счет команды А | |
| * @param int $fb фактический счет команды Б | |
| * @return int | |
| */ | |
| public function getSkore($aa, $ab, $fa, $fb) { |
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
| SELECT ID, email, score, company_id | |
| FROM users t1 WHERE score=(SELECT MAX(t2.score) | |
| FROM users t2 WHERE t1.company_id = t2.company_id) | |
| ORDER BY company_id ASC; |