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
| find . -type f -name '*.csv' -exec \ | |
| sed -E -i.bak ":a; s/(\[|,)\s*'([^']*)'\s*(,|\])/\1\2\3/g; ta" {} + | |
| find . -type f -name '*.csv' -exec \ | |
| sed -E -i '' ":a; s/(\[|,)\s*'([^']*)'\s*(,|\])/\1\2\3/g; ta" {} + | |
| find . -type f -name '*.csv' -exec sed -E -i .bak "s/'([0-9A-Za-z]+)'/\1/g" {} + |
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
| axios({ | |
| url: 'http://localhost:5000/static/example.pdf', | |
| method: 'GET', | |
| responseType: 'blob', // important | |
| }).then((response) => { | |
| const url = window.URL.createObjectURL(new Blob([response.data])); | |
| const link = document.createElement('a'); | |
| link.href = url; | |
| link.setAttribute('download', 'file.pdf'); | |
| document.body.appendChild(link); |
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
| <template> | |
| <v-card> | |
| <v-card-text> | |
| {{ category }} | |
| <radio-tree :items="categories" value-key="id" v-model="category" ref="radioTree"></radio-tree> | |
| </v-card-text> | |
| <v-card-actions> | |
| <v-btn @click.stop="nuke()" color="warning">Nuke</v-btn> | |
| </v-card-actions> | |
| </v-card> |
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
| FROM php:7.2.11-fpm | |
| WORKDIR /application | |
| ENV ACCEPT_EULA=Y | |
| # Fix debconf warnings upon build | |
| ARG DEBIAN_FRONTEND=noninteractive | |
| # Install selected extensions and other stuff | |
| RUN apt-get update \ |
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' | |
| services: | |
| webserver1: | |
| image: php:7.2-apache | |
| network_mode: bridge | |
| expose: | |
| - 80 | |
| - 443 | |
| environment: |
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
| <template> | |
| <v-dialog v-model="dialog" :max-width="options.width" :style="{ zIndex: options.zIndex }" @keydown.esc="cancel"> | |
| <v-card> | |
| <v-toolbar dark :color="options.color" dense flat> | |
| <v-toolbar-title class="white--text">{{ title }}</v-toolbar-title> | |
| </v-toolbar> | |
| <v-card-text v-show="!!message" class="pa-4">{{ message }}</v-card-text> | |
| <v-card-actions class="pt-0"> | |
| <v-spacer></v-spacer> | |
| <v-btn color="primary darken-1" text @click.native="agree">Yes</v-btn> |
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\Doctrine; | |
| use Doctrine\DBAL\Schema\Index; | |
| use Doctrine\ORM\Tools\Event\GenerateSchemaEventArgs; | |
| use Symfony\Component\DependencyInjection\ContainerInterface; |
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 | |
| /** | |
| * Created by PhpStorm. | |
| * User: felipy.amorim | |
| * Date: 10/03/2017 | |
| * Time: 13:05 | |
| */ | |
| namespace App\DQL; |
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 | |
| declare(strict_types=1); | |
| namespace App\Validator\Constraints; | |
| use Symfony\Component\Validator\Constraints\Composite; | |
| /** | |
| * @Annotation() |
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\EventSubscriber; | |
| use App\Entity\User; | |
| use App\Entity\Traits\CreatedByTrait; | |
| use App\Entity\Traits\UpdatedByTrait; | |
| use Doctrine\Common\EventSubscriber; | |
| use Doctrine\Common\Persistence\Event\LifecycleEventArgs; | |
| use Doctrine\ORM\Events; |
NewerOlder