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
| # This is a sample build configuration for PHP. | |
| # Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples. | |
| # Only use spaces to indent your .yml configuration. | |
| # You can specify a custom docker image from Docker Hub as your build environment. | |
| # run composer check-platform-reqs for a list of required extensions. | |
| image: php:7.2-fpm | |
| pipelines: | |
| default: | |
| # Not needed unless you're doing feature tests. | |
| # - step: |
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
| version: '3.2' | |
| services: | |
| db: | |
| image: mysql:8.0 | |
| container_name: mysq_server | |
| restart: always | |
| volumes: | |
| - <directory for backup your DB>:/var/lib/mysql | |
| ports: |
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
| RUN apt-get install -y libpq-dev \ | |
| && docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \ | |
| && docker-php-ext-install pdo pdo_pgsql pgsql |
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
| server { | |
| server_name example.co www.example.co; | |
| location / { | |
| proxy_pass http://localhost:8082/; | |
| } | |
| } |
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
| #Install Laravel | |
| composer global require "laravel/installer" | |
| #Add composer to path to access laravel globally | |
| export PATH="~/.config/composer/vendor/bin:$PATH" | |
| #For Mac | |
| export PATH="~/.composer/vendor/bin:$PATH" | |
| #Refresh bashrc file | |
| source ~/.bashrc |
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
| .date updated, .author { | |
| display:none !important; | |
| } |
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
| <style> | |
| .bg-video { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100vw; | |
| height: 100vh; | |
| overflow: hidden; | |
| z-index: -1; | |
| } |
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
| $('.'+ $(this).val()).show(); $('.tabcontent2 tr:not(.'+ $(this).val() +')').hide(); |
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 moveZeros($arr){ | |
| $count=0; | |
| $n=sizeof($arr); | |
| for($i=0;$i<$n;$i++){ | |
| if($arr[$i]!='integer'){ | |
| $arr[$count++]=$arr[$i]; | |
| } | |
| } |
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 max_pair($A){ | |
| $n=sizeof($A); | |
| //Initialize the max sum | |
| $a=$A[0]; | |
| $b=$A[1]; | |
| for($i=0;$i<$n;$i++){ | |