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 | |
| /*::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/ | |
| /*:: :*/ | |
| /*:: This routine calculates the distance between two points (given the :*/ | |
| /*:: latitude/longitude of those points). It is being used to calculate :*/ | |
| /*:: the distance between two locations using GeoDataSource(TM) Products :*/ | |
| /*:: :*/ | |
| /*:: Definitions: :*/ | |
| /*:: South latitudes are negative, east longitudes are positive :*/ |
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
| MERCURE_URL=${MERCURE_URL:=https://github.com/dunglas/mercure/releases/download/v0.10.4/mercure_0.10.4_Linux_x86_64.tar.gz} | |
| JWT_KEY=${JWT_KEY:=!ChangeMe!} | |
| MERCURE_FILE=${MERCURE_URL##*/} | |
| # Settings perms | |
| echo "Creating mercure user..." | |
| groupadd --system mercure | |
| useradd --system \ | |
| --gid mercure \ | |
| --create-home \ |
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
| # SQL Server Command Line Tools - custom image | |
| # From Alpine 3.11 (~5 MBs) | |
| FROM alpine:3.11 | |
| LABEL maintainer="@dbamastery" | |
| # Installing system utilities | |
| RUN apk add --no-cache curl gnupg | |
| # Adding custom MS repository for mssql-tools and msodbcsql | |
| RUN curl -O https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/msodbcsql17_17.5.2.1-1_amd64.apk |
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 | |
| namespace App\Console\Commands; | |
| use Doctrine\DBAL\Schema\AbstractSchemaManager; | |
| use Illuminate\Console\Command; | |
| use Illuminate\Database\ConnectionInterface; | |
| use Illuminate\Support\Arr; | |
| class BuildDatabaseSchemaDiagramCommand extends Command |
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 | |
| set_time_limit(0); | |
| $db = new PDO( | |
| 'pgsql:dbname=dbname host=host port=5432;options=--application_name=APPLICATION_NAME', | |
| 'user', | |
| 'password', | |
| [ | |
| PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, | |
| PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, |
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
| { | |
| "workbench.startupEditor": "newUntitledFile", | |
| "editor.fontSize": 16, | |
| "editor.lineHeight": 1.8, | |
| "javascript.suggest.autoImports": true, | |
| "javascript.updateImportsOnFileMove.enabled": "always", | |
| "editor.rulers": [ | |
| 80, | |
| 120 | |
| ], |
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 | |
| namespace Axelvkn\AppBundle\Filter; | |
| use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter; | |
| use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface; | |
| use ApiPlatform\Core\Exception\InvalidArgumentException; | |
| use Doctrine\ORM\QueryBuilder; | |
| class OrSearchFilter extends SearchFilter |
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
| input | |
| plen(17); | |
| fast(0.666); | |
| slow(0645); | |
| var | |
| mTrueRange : float; | |
| Oval : Float; | |
| Hval : Float; |
NewerOlder