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 | |
namespace Database\Seeders; | |
use Illuminate\Database\Seeder; | |
use Spatie\Permission\Models\Permission; | |
use Spatie\Permission\Models\Role; | |
class PermissionSeeder extends Seeder | |
{ |
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
# To contribute improvements to CI/CD templates, please follow the Development guide at: | |
# https://docs.gitlab.com/ee/development/cicd/templates.html | |
# This specific template is located at: | |
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Docker.gitlab-ci.yml | |
# Build a Docker image with CI/CD and push to the GitLab registry. | |
# Docker-in-Docker documentation: https://docs.gitlab.com/ee/ci/docker/using_docker_build.html | |
# | |
# This template uses one generic job with conditional builds | |
# for the default branch and all other (MR) branches. |
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
FROM phpswoole/swoole:4.7-php8.0-alpine | |
# Working directory was set to /var/www | |
ENV APP_ENV production | |
RUN apk add --no-cache zip unzip git libxml2-dev oniguruma-dev libpng-dev icu-dev autoconf g++ make nodejs npm yarn && \ | |
pecl install redis && docker-php-ext-enable redis | |
# Install PHP extensions |
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
class Tree { | |
/** @type String */ | |
val; | |
/** @type Tree[] */ | |
children; | |
/** | |
* @param {String} val |
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
SELECT * FROM (SELECT * FROM ( | |
SELECT *, 1 as o FROM schoolid.pupils p | |
WHERE month(now()) < month(p.birth_date) OR (month(now()) = month(p.birth_date) AND dayofmonth(now()) <= dayofmonth(p.birth_date)) | |
ORDER BY | |
(month(p.birth_date)) asc, | |
(dayofmonth(p.birth_date)) asc) cx | |
UNION |