\A(?:[a-z0-9!#$%&'+/=?^_‘{|}~-]+(?:.[a-z0-9!#$%&'+/=?^_‘{|}~-]+)* | "(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f] | \[\x01-\x09\x0b\x0c\x0e-\x7f])") @ (?:(?:a-z0-9?.)+a-z0-9? | [(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).){3} (?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-][a-z0-9]: (?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f] | \[\x01-\x09\x0b\x0c\x0e-\x7f])+) ])\z
-> Instalar zsh ubuntu:
sudo apt install zsh
-> which zsh
para ver o local de instalação do zsh
/usr/bin/zsh
-> which bash
para ver o local de instalação do bash
/usr/bin/bash
chsh
-> para alternar o shell padrão, será solicitado o caminho do outro shell, só colocar e fechar o terminal.
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
import React, { useState } from "react"; | |
interface IProducts { | |
code: string; | |
description: string; | |
price?: number; | |
key: number; | |
} | |
export const Products = () => { |
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 actualTime = 10; | |
function timer(){ | |
const setTime = setInterval( | |
() => { | |
console.log(actualTime) | |
actualTime-- | |
if (actualTime < 0){ | |
clearInterval(setTime); | |
console.log('END') |
A Pen by guilherme daniel on CodePen.
A Pen by guilherme daniel on CodePen.
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
def main(): | |
palavras_chutadas = [] | |
tela = cria_exibicao() | |
total_tentativas = 6 | |
acertou_palavra = False | |
forca = False | |
while not forca and not acertou_palavra: | |
print('-'*30) | |
chute = input('Chute: ') |