<table align="center"><tr><td align="center" width="9999">
<img src="https://user-images.githubusercontent.com/18719295/189205621-4ed2167f-6f73-4235-b279-16f4b2cd4324.png" width=200 height=200>
</td></tr></table
![]() |
using System; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
public static class Bob | |
{ | |
public static string Response(string statement) | |
{ | |
if (statement.EndsWith("?") && Regex.IsMatch(statement, @"^[A-Z\s\'\?]+$")) | |
{ | |
return "Calm down, I know what I'm doing!"; |
// Para utllizar regex devemos importar o pacote | |
using System.Text.RegularExpressions; | |
// Verificando se de uma string somente tem letras maiusculas, ignorando ?, simbolo ' e espaços em branco | |
// Frase: WHAT'S GOING ON? | |
string statement = "WHAT'S GOING ON?"; | |
bool testingUpper = Regex.IsMatch(statement, @"^[A-Z\s\'\?]+$"); | |
Console.WriteLine($"statement is Upper: {testingUpper}"); | |
// ^ = verifica a primeira letra |
// Pegar mensagem de erro: "[ERROR]: Invalid operation" | |
// Deve retornar: "Invalid operation" | |
public static string Message(string logLine) | |
{ | |
string partMessage = logLine.Substring(logLine.IndexOf(":") + 2) | |
.Replace("\r","") | |
.Replace("\n","") | |
.Replace("\t","") | |
.Replace(" ",""); |
// Função simples sem resumir | |
public int Value() | |
{ | |
return 40; | |
} | |
// Resumindo com Arrow Functions | |
public int Value() => 40; | |
// lINK PARA EXPLICAÇÃO |
// Explícitos | |
int test = 1; | |
double test2 = 2.5; | |
string test3 = "Teste"; | |
// Implícitos | |
var test = 1; // var aceita todo tipo de dado |
int test = 1; | |
Console.WriteLine($"{test}"); |
<!-- Criando uma estrutura de links --> | |
<nav> | |
<ul> | |
<li><a href="#section1">Símbolos Matemáticos</a></li> | |
</ul> | |
</nav> | |
<!-- Depois podemos colocar o ID de referencia onde começa a página --> | |
<p id="section1"></p> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>MathJax example</title> | |
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> | |
<script id="MathJax-script" async | |
src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"> | |
</script> |
-- INNER JOIN (compara linhas da tabela A com a tabelaB para encontrar pares) | |
select aluno.i_aluno,aluno.i_pessoa, pessoa.i_pessoa, pessoa.nome, aluno.flag_ativo, pessoa.flag_ativo | |
from educacao.alunos as aluno | |
inner join global.pessoas as pessoa | |
on aluno.i_pessoa = pessoa.i_pessoa; |