This file contains 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
SELECT CONTACT('KILL', id, ';') FROM INFORMATION_SCHEMA.PROCESSLIST -- WHERE INFO LIKE '%KEY%'; |
This file contains 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
<!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>Document</title> | |
</head> | |
<body> | |
<h1>index</h1> |
This file contains 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
// Toggle Menu // | |
const styleSwitcher = document.querySelector(".style-switcher"); | |
const links = document.querySelectorAll('.aside-link'); | |
let menutoggle = document.querySelector('.toggle'); | |
let aside = document.querySelector('.aside'); | |
let skinColor = '#ec1839' | |
window.addEventListener('resize', () => { | |
if (window.screen.width >= 1001 && menutoggle && aside && aside instanceof HTMLElement) { | |
aside.style.left = '0' |
This file contains 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
interface TranslationKeys { | |
home: string; | |
about: string; | |
services: string; | |
portfolio: string; | |
contact: string; | |
} | |
type Translations = { | |
pt: TranslationKeys, |
This file contains 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 | |
date_default_timezone_set('America/Sao_Paulo'); | |
$currentDate = new DateTime(); | |
$currentHour = $currentDate->format('H'); | |
$currentMinutes = $currentDate->format('i'); | |
if ($currentHour >= 5 && $currentHour < 12) { | |
$message = "tenha um bom dia"; |
This file contains 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 | |
$autoload['helper'] = array('url', 'html', 'file', 'basic'); // basic nome do helper que eu criei pra exibir mensagem de erro | |
?> |
- Baixe e instale o XAMPP em seu computador a partir do site oficial: https://www.apachefriends.org/index.html
- Abra o executável
xampp-control.exe
, geralmente localizado emC:\xampp
e inicie o Apache, conforme imagem: https://i.imgur.com/hxnlovN.png - Mova a pasta do projeto pra dentro de
htdocs
, geralmente localizado emC:\xampp\htdocs
- Abra o navegador e digite o endereço
localhost
na barra de endereço para verificar se o XAMPP está funcionando corretamente. - Abra o navegador e digite o endereço
localhost/nome_da_sua_pasta
na barra de endereço para acessar seu projeto, nesse caso élocalhost/Calend%c3%a1rio%20PHP/
This file contains 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
// Microsoft Office 365 | |
$mail->Host = 'smtp.office365.com'; | |
// Yahoo Mail | |
$mail->Host = 'smtp.mail.yahoo.com'; | |
// iCloud | |
$mail->Host = 'smtp.mail.me.com'; | |
// Amazon SES |
This file contains 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 canvas = document.getElementById('snake'); | |
let context = canvas.getContext('2d'); | |
let box = 32; | |
let snake = []; | |
snake[0] = { | |
x: 8 * box, | |
y: 8 * box, | |
}; | |
let direction = 'right'; | |
let food = { |