This file contains 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.8' | |
services: | |
# Frontend service | |
rabbitmq-my-app: | |
container_name: rabbitmq-my-app | |
image: rabbitmq:3-management | |
environment: | |
- RABBITMQ_DEFAULT_USER=${RABBITMQ_USERNAME} |
This file contains 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
DECLARE errcount INT; | |
DECLARE errno INT; | |
DECLARE msg TEXT; | |
DECLARE vNoRec INTEGER DEFAULT 0; | |
DECLARE vException INTEGER DEFAULT 0; | |
DECLARE CONTINUE HANDLER FOR NOT FOUND SET vNoRec = 1; | |
DECLARE CONTINUE HANDLER FOR SQLEXCEPTION | |
BEGIN |
This file contains 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
interface HasLevel { | |
/** | |
* @return int | |
*/ | |
public function getLevel(); | |
} | |
class Node implements HasLevel { | |
public $items = []; | |
public $level = 0; |
This file contains 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
image: lorisleiva/laravel-docker:latest | |
.generate_env: &generate_env | | |
echo "APP_NAME=$APP_NAME" >> .env | |
echo "APP_ENV=PRODUCTION" >> .env | |
echo "APP_DEBUG=false" >> .env | |
echo "APP_URL=$APP_URL" >> .env | |
echo "APP_KEY=" >> .env | |
echo "DB_CONNECTION=mysql" >> .env | |
echo "DB_HOST=$DB_HOST" >> .env |
This file contains 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
image: lorisleiva/laravel-docker:latest | |
.generate_env: &generate_env | | |
echo "APP_NAME=$APP_NAME" >> .env | |
echo "APP_ENV=PRODUCTION" >> .env | |
echo "APP_DEBUG=false" >> .env | |
echo "APP_URL=$APP_URL" >> .env | |
echo "APP_KEY=" >> .env | |
echo "DB_CONNECTION=mysql" >> .env | |
echo "DB_HOST=$DB_HOST" >> .env |
This file contains 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
image: lorisleiva/laravel-docker:latest | |
composer: | |
stage: build | |
script: | |
- composer install --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts | |
- cp .env.example .env | |
- php artisan key:generate | |
artifacts: | |
expire_in: 1 month |
This file contains 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
function solution(array $numbers): int { | |
$count = count($numbers); | |
$numbers = array_unique($numbers); | |
while (count(array_unique($numbers)) > 1) { | |
$min = min($numbers); | |
foreach ($numbers as &$number) { | |
if ($number > $min) { |
This file contains 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
CREATE DEFINER=`root`@`%` PROCEDURE `CalculateBagCorrespondeces`(IN pBagCode char(28)) | |
proc: | |
BEGIN | |
DECLARE vException INTEGER DEFAULT 0; | |
DECLARE errcount INT; | |
DECLARE errno INT; | |
DECLARE msg TEXT; | |
DECLARE CONTINUE HANDLER FOR SQLEXCEPTION | |
BEGIN | |
SET vException = 1; |
This file contains 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
#include <iostream> | |
#include <iomanip> | |
using namespace std; | |
int main() { | |
double x = 9.45; | |
std::cout << x << endl; |
This file contains 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 | |
use Spiral\RoadRunner; | |
use Nyholm\Psr7; | |
use Facebook\WebDriver\Remote\DesiredCapabilities; | |
use Facebook\WebDriver\Remote\RemoteWebDriver; | |
use Facebook\WebDriver\WebDriverBy; | |
include "../vendor/autoload.php"; |
NewerOlder