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
| { | |
| "uid": "<UID>", | |
| "code": "TOTO", | |
| "target": "https://google.Com" | |
| } |
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
| on: | |
| pull_request: | |
| jobs: | |
| not-empty-matrix: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: true | |
| outputs: | |
| matrix: '["0.0.1", "0.0.2"]' |
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
| # Fetch all branches after un git clone single-branch | |
| $ git clone --single-branch <url> | |
| ... | |
| $ git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" | |
| $ git fetch origin | |
| $ export GIT_SSL_NO_VERIFY=1 | |
| $ git config http.postBuffer 524288000 | |
| $ git config core.fileMode false |
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
| brew update | |
| brew upgrade --all | |
| brew cleanup | |
| brew cask update | |
| brew cask install --force $(brew cask list) | |
| brew cask cleanup |
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 | |
| /** @var $repository \eZ\Publish\API\Repository\Repository */ | |
| $repository = $this->getContainer()->get( 'ezpublish.api.repository' ); | |
| $contentService = $repository->getContentService(); | |
| $locationService = $repository->getLocationService(); | |
| $contentTypeService = $repository->getContentTypeService(); | |
| $repository->setCurrentUser( $repository->getUserService()->loadUser( 14 ) ); | |
| // fetch the input arguments | |
| $parentLocationId = $input->getArgument( 'parentLocationId' ); |
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
| stash: | |
| caches: | |
| default: | |
| # For eZ Publish Platform versions prior to 5.4/2014.07, use "handlers" instead of "drivers"! | |
| drivers: | |
| - FileSystem | |
| inMemory: true | |
| registerDoctrineAdapter: false | |
| stash: |
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
| <figure class="{if $object_parameters.align}object-{$object_parameters.align}{/if}{if ne($classification|trim,'')} {$classification|wash}{/if}"{if is_set($object_parameters.id)} id="{$object_parameters.id}"{/if}> | |
| <img src="{$object.data_map.image.content[$object_parameters.size].url|ezroot(no)}" width="{$object.data_map.image.content.width}" height="{$object.data_map.image.content.height}" alt="{$object.data_map.image.content.alternative_text}" /> | |
| {if and(is_set($object.data_map.caption), $object.data_map.caption.has_content)} | |
| <figcaption>{attribute_view_gui attribute=$object.data_map.caption}</figcaption> | |
| {/if} | |
| </figure> |
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
| {def | |
| $current_timestamp = currentdate() | |
| $current_year = $current_timestamp|datetime('custom', '%Y') | |
| $current_week = $current_timestamp|datetime('custom', '%W') | |
| $current_week_start = strtotime(concat($current_year, 'W', $current_week)) | |
| $current_week_end = strtotime(concat($current_year, 'W', $current_week, '7')) | |
| $nodes = fetch(content, list, hash( | |
| parent_node_id, $node.node_id, | |
| class_filter_type, 'include', | |
| class_filter_array, array('class_identifier'), |
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 CONCAT(duration DIV 3600, 'h', IF(MOD(duration, 3600) / 60 > 0, LPAD(ROUND(MOD(duration, 3600) / 60), 2, '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 | |
| function timeDiffInWords($time) | |
| { | |
| $second = 1; | |
| $minute = $second * 60; | |
| $hour = $minute * 60; | |
| $day = $hour * 24; | |
| $week = $day * 7; |
NewerOlder