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
| upstream websocket { | |
| server localhost:3000; | |
| } | |
| server { | |
| listen 80; | |
| server_name localhost; | |
| access_log /var/log/nginx/websocket.access.log main; |
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
| using System; | |
| using System.Collections.Generic; | |
| using MercadoPago.DataStructures.Preference; | |
| using MercadoPago.Resources; | |
| namespace consoledotNetexample | |
| { | |
| class MainClass | |
| { | |
| public static void Main(string[] args) |
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
| using System; | |
| using MercadoPago.Config; | |
| using MercadoPago.Client.Payment; | |
| using MercadoPago.Resource.Payment; | |
| namespace TesteGetPaymentId | |
| { | |
| class MainClass | |
| { |
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 { useForm } from 'react-hook-form' | |
| import { | |
| FormErrorMessage, | |
| FormLabel, | |
| FormControl, | |
| Input, | |
| Button | |
| } from '@chakra-ui/react' | |
| import InputMask from 'react-input-mask' | |
| import { yupResolver } from '@hookform/resolvers/yup' |
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.7" | |
| volumes: | |
| kong_data: {} | |
| networks: | |
| kong-net: | |
| services: |
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
| using ExemploRawStringLiterals; | |
| using System.Runtime.InteropServices; | |
| Console.WriteLine("***** Testes com C# 11 | Raw String Literals *****"); | |
| Console.WriteLine($"Versao do .NET em uso: {RuntimeInformation | |
| .FrameworkDescription} - Ambiente: {Environment.MachineName}- Kernel: {Environment | |
| .OSVersion.VersionString}"); | |
| var pessoa1 = "{ \"Nome\": \"Renato Groffe\", \"Cidade\": \"Sao Paulo\", \"Idade\": 40 }"; | |
| Teste.ExibirConteudo(pessoa1); |
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:8.0-fpm | |
| RUN apt-get update && apt-get install -y \ | |
| libmagickwand-dev \ | |
| --no-install-recommends \ | |
| && pecl install imagick \ | |
| && docker-php-ext-enable imagick \ | |
| && docker-php-ext-install pdo_mysql |
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:8.0-apache | |
| RUN apt-get update && apt-get install -y \ | |
| libfreetype6-dev \ | |
| libjpeg-dev \ | |
| libpng-dev \ | |
| libwebp-dev \ | |
| --no-install-recommends \ | |
| && docker-php-ext-enable opcache \ | |
| && docker-php-ext-configure gd --with-freetype --with-jpeg \ |
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:8.0-apache | |
| RUN apt-get update && apt-get install -y \ | |
| libmagickwand-dev \ | |
| --no-install-recommends \ | |
| && pecl install imagick \ | |
| && docker-php-ext-enable imagick opcache \ | |
| && docker-php-ext-install pdo_mysql \ | |
| && apt-get autoclean -y \ | |
| && rm -rf /var/lib/apt/lists/* |
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 errorLocation(msg) { | |
| console.log(msg); | |
| } | |
| function successLocation(position) { | |
| var latlng = new google.maps.LatLng(position.coords.latitude, position.coords.longitude); | |
| var geocoder = new google.maps.Geocoder(); | |
| geocoder.geocode({'latLng': latlng}, function(results, status) { | |
| if (status == google.maps.GeocoderStatus.OK) { | |
| var result = results[0]; |
NewerOlder