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 | |
| $header = <<<'EOF' | |
| Default PHP CS Fixer | |
| EOF; | |
| $finder = PhpCsFixer\Finder::create() | |
| ->notPath('bootstrap/cache') | |
| ->notPath('storage') | |
| ->notPath('vendor') |
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
| # delete local tag '12345' | |
| git tag -d 12345 | |
| # delete remote tag '12345' (eg, GitHub version too) | |
| git push origin :refs/tags/12345 | |
| # alternative approach | |
| git push --delete origin tagName | |
| git tag -d tagName |
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
| # Stored procedure | |
| DELIMITER // | |
| CREATE PROCEDURE `drop_tables` () | |
| LANGUAGE SQL | |
| DETERMINISTIC | |
| SQL SECURITY DEFINER | |
| COMMENT 'A procedure' | |
| BEGIN | |
| SET @db = NULL; |
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 | |
| $geo_object = file_get_contents('https://geocode-maps.yandex.ru/1.x/?format=json&geocode=37.477667,55.484576'); | |
| $result = get_yandex_human_address($geo_object); | |
| print_r($result); | |
| function get_yandex_human_address($geo_object) { | |
| $geo_object = json_decode($geo_object, true); | |
| $geo_object = $geo_object['response']; |