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.1" | |
| services: | |
| mysql_lab: | |
| image: mysql | |
| container_name: mysql_lab | |
| command: --default-authentication-plugin=mysql_native_password | |
| restart: always | |
| ports: | |
| - 13306:3306 | |
| volumes: |
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] | |
| zend_extension="/usr/local/etc/php/xdebug/modules/xdebug.so" | |
| ;;;;;;;;;;;;;;;;;;; | |
| ; About php.ini ; | |
| ;;;;;;;;;;;;;;;;;;; | |
| ; PHP's initialization file, generally called php.ini, is responsible for | |
| ; configuring many of the aspects of PHP's behavior. | |
| ; PHP attempts to find and load this configuration from a number of locations. |
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
| const amqplib = require('amqplib'); | |
| (async () => { | |
| const rabbitmqUrl = "amqp://localhost:5672"; | |
| const connection = await amqplib.connect(rabbitmqUrl); | |
| const exchange = "amq.direct"; | |
| const exchangeType = "direct"; | |
| const routingKey = "consumer1"; | |
| console.log("Waiting msgs... "); |
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.1" | |
| services: | |
| mysql_lab: | |
| image: mysql | |
| container_name: mysql_lab | |
| command: --default-authentication-plugin=mysql_native_password | |
| restart: always | |
| ports: | |
| - 3306:3306 | |
| volumes: |
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 strict'; | |
| const AmqpClient = require('amqplib'); | |
| const Promise = require('bluebird'); | |
| const contentTypeJson = 'application/json'; | |
| const contentEncoding = 'utf8'; | |
| const config = { | |
| exchanges: [ | |
| { name: 'A_COMMENT_CREATED', type: 'fanout' }, | |
| { name: 'A_COMMENT_DELETED', type: 'fanout' }, |
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
| let { search } = useLocation(); | |
| const query = new URLSearchParams(search); | |
| const ingredient = query.get('ingredient'); |
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
| import axios, { AxiosInstance, Method } from "axios"; | |
| export class HttpClient { | |
| constructor(private readonly url:string){} | |
| private async getApiInstance(url:string) { | |
| const headers: { [key: string]: string } = {}; | |
| const instance: AxiosInstance = axios.create({ |
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
| function calculadoraAdicaoSubtracao(numero, outroNumero, operacao){ | |
| const resultado=0; | |
| if(operacao=='+'){ | |
| resultado=numero+outroNumero; | |
| }else if(operacao=='-'){ | |
| resultado=numero-outroNumero; | |
| } | |
| return resultado; | |
| } |
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 | |
| $voosCollection=[]; // Certo | |
| $voos=[]; // Certo tbm, mas não descreve bem o que a variavel faz | |
| foreach($voosCollection as $voo){ | |
| //Ai vc usa os dados do $voo | |
| $voo->fare;//ai eu sei que o fare é do voo não de um item aleatorio | |
| } | |
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
| APP_NAME=Laravel | |
| APP_ENV=local | |
| APP_KEY= | |
| APP_DEBUG=false | |
| APP_URL=http://localhost | |
| LOG_CHANNEL=stack | |
| BROADCAST_DRIVER=log | |
| CACHE_DRIVER=file |
NewerOlder