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
| <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 | |
| 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
| $sql=" SELECT distinct | |
| cs.cd_pac, | |
| duracao, | |
| DATEDIFF(DAY, cs.dt_dispensa_sol, (select min(cs1.dt_dispensa_sol) from capa_solicitacao cs1, rl_capa_prep cp1 | |
| where cs1.cd_dis <> '972' AND cs1.tp_solic = 'F' AND cs1.profilax_sol = 'F' AND cs1.cd_dis = cp1.cd_dis AND cs1.num_sol = cp1.num_sol | |
| AND cs.cd_pac = cs1.cd_pac and cp1.co_seq_retorno_prep is not null and cp1.co_paciente_prep = tpp.co_paciente_prep and | |
| cs1.dt_dispensa_sol > cs.dt_dispensa_sol) ) as diferenca, | |
| cd_uf, | |
| rz_dis |
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 | |
| class Aluno | |
| { | |
| protected $nome; | |
| protected $media; | |
| protected $n1, $n2, $n3, $n4; | |
| public function __construct($dados) | |
| { |
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
| #!/bin/bash | |
| # Stop all containers | |
| docker stop $(docker ps -a -q) | |
| # Delete all containers | |
| docker rm $(docker ps -a -q) | |
| # Delete all images | |
| docker rmi $(docker images -q) |
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
| use \Symfony\Component\HttpKernel\Exception\NotFoundHttpException; | |
| $app->error(function (\Exception $e) use ($app) { | |
| if ($e instanceof NotFoundHttpException) { | |
| return $app->json(array('error' => 'Page Not Found'), 404); | |
| } | |
| $code = ($e instanceof HttpException) ? $e->getStatusCode() : 500; | |
| return $app->json(array('error' => $e->getMessage()), $code); | |
| }); |
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 | |
| use Symfony\Component\PropertyAccess\PropertyAccess; | |
| use Symfony\Component\Validator\Constraints\All; | |
| use Symfony\Component\Validator\Constraints\Choice; | |
| use Symfony\Component\Validator\Constraints\Collection; | |
| use Symfony\Component\Validator\Constraints\Length; | |
| use Symfony\Component\Validator\Constraints\NotBlank; | |
| use Symfony\Component\Validator\Constraints\Optional; | |
| use Symfony\Component\Validator\Constraints\Required; |
NewerOlder