Skip to content

Instantly share code, notes, and snippets.

View LucianoCharlesdeSouza's full-sized avatar

Luciano Charles de Souza LucianoCharlesdeSouza

  • indaial - santa catarina
View GitHub Profile
@LucianoCharlesdeSouza
LucianoCharlesdeSouza / docker-compose.yml
Created August 31, 2021 15:56
docker-compose usado no video sobre xdebug3 com vscode
version: "3.7"
# Networks
networks:
# Internal network
internal:
driver: bridge
services:
# api
{
// Use o IntelliSense para saber mais sobre os atributos possíveis.
// Focalizar para exibir as descrições dos atributos existentes.
// Para obter mais informações, acesse: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "XDebug in Docker",
"type": "php",
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Preview-Upload</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<style>
input[type="file"] {
color: transparent;
display: none;
version: '3.7'
# Networks
networks:
# Internal network
internal:
driver: bridge
# Volumes
volumes:
<?php
$data_banco = '2021-05-16 15:00:00';
$date = (new DateTime($data_banco))->format('F d, Y H:i:s');
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<?php
function validateFormat(string $date): DateTime
{
$formats = ['dmY', 'd/m/Y', 'Ymd', 'Y-m-d'];
foreach ($formats as $format) {
$date_format = DateTime::createFromFormat($format, $date);
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AutoComplete</title>
</head>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<input type="text" list="mysearch" name="search" placeholder="pesquise aqui...">
<datalist id="mysearch">
<option value="Luciano" data-id="1">
<option value="Fernando" data-id="2">
<option value="Paulo" data-id="3">
</datalist>
<script
src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
version: '3.7'
# Networks
networks:
# Internal network
internal:
driver: bridge
# Volumes
volumes: