Skip to content

Instantly share code, notes, and snippets.

<?php
function perform($operations, $expr) {
do {
$positions = array_filter(array_map(function ($symbol) use (&$expr) {
return strrpos($expr, $symbol);
}, array_keys($operations)), function ($pos) {
return $pos !== false;
});
if (empty($positions)) {
break;
@latik
latik / .gitlab-ci.yml
Created October 24, 2017 07:14 — forked from velmuruganvelayutham/.gitlab-ci.yml
Gitlab-CI - Review Apps - Spring Boot - Heroku
variables:
REVIEW_APP_NAME: "$CI_COMMIT_REF_SLUG-$CI_PROJECT_NAME"
stages:
- build
- review
- deploy
build:
stage: build