<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path fill="#000"
d="m21.484 7.125l-9.022-5a1.003 1.003 0 0 0-.968 0l-8.978 4.96a1 1 0 0 0-.003 1.748l9.022 5.04a.995.995 0 0 0 .973.001l8.978-5a1 1 0 0 0-.002-1.749" />
<path fill="currentColor"
d="m12 15.856l-8.515-4.73l-.971 1.748l9 5a1 1 0 0 0 .971 0l9-5l-.971-1.748z" />
<path fill="currentColor"
d="m12 19.856l-8.515-4.73l-.971 1.748l9 5a1 1 0 0 0 .971 0l9-5l-.971-1.748z" />
Menu de conteúdos
Menu de conteúdos
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 = { |
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 |
- 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
<?php | |
$autoload['helper'] = array('url', 'html', 'file', 'basic'); // basic nome do helper que eu criei pra exibir mensagem de erro | |
?> |
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
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
// 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' |
NewerOlder