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 | |
| namespace ApiCore\Adapter; | |
| use Doctrine\ORM\Query; | |
| use Zend\Paginator\Adapter\AdapterInterface; | |
| class PaginationAdapterTrait | |
| { | |
| public function getAdapterFromQuery(Query $query) |
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 | |
| $api = '*_jobfeedapi_key'; | |
| $key = 'KEY'; | |
| $url = 'https://api.jobvite.com/api/v2/job?api=' . $api . '&sc=' . $key; | |
| $cacheFile = 'jobs.data.json'; | |
| $versionFile = 'jobs.version.txt'; | |
| header('Content-Type: application/json;charset=utf-8'); |
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
| version: '3' | |
| services: | |
| db: | |
| image: mysql:5.7 | |
| environment: | |
| MYSQL_ROOT_PASSWORD: root | |
| MYSQL_DATABASE: test | |
| MYSQL_USER: devuser | |
| MYSQL_PASSWORD: devpass |
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 | |
| setlocale(LC_ALL, 'de_DE.utf8'); | |
| ini_set('auto_detect_line_endings', true); | |
| set_error_handler(function ($errNo, $errStr) { throw new \ErrorException($errStr, $errNo); }); | |
| $ibanDir = '.'.DIRECTORY_SEPARATOR.'iban'; | |
| $users = []; | |
| $count = 0; | |
| $totalAmount = 0; |
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 | |
| namespace Level1 { | |
| function foo($x) | |
| { | |
| return $x; | |
| } | |
| var_dump(foo( | |
| true |
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 | |
| $initial = [ | |
| [0, 0, 0, 0, 0, 0], | |
| [0, 0, 0, 0, 0, 0], | |
| [0, 0, 1, 1, 1, 0], | |
| [0, 1, 1, 1, 0, 0], | |
| [0, 0, 0, 0, 0, 0], | |
| [0, 0, 0, 0, 0, 0], | |
| ]; |
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 IRRCalculator | |
| { | |
| const IRR_PRECISION = 11; | |
| const IRR_INITIAL = 0.1; | |
| const IRR_MAX_ITERATIONS = 20; | |
| /** | |
| * @param int[] $cashFlow |
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
| colorscheme molokai | |
| set nospell | |
| set nofoldenable " disable code folding | |
| let g:DisableAutoPHPFolding = 1 " disable PIV's folding | |
| let g:indent_guides_enable_on_vim_startup = 0 |
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
| namespace Simple; | |
| /** | |
| * Simple service provider interface. | |
| * | |
| * @author sunspikes | |
| */ | |
| interface ServiceProviderInterface | |
| { | |
| /** |
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
| namespace Simple; | |
| /** | |
| * Container main class. | |
| * | |
| * @author sunspikes | |
| */ | |
| class Container implements \ArrayAccess | |
| { | |
| private _values = []; |
NewerOlder