Execute Program is a learning platform built by developers for developers, because we thought there should be a better way to learn – and remember – programming languages and tools.
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
// source: https://www.devmedia.com.br/validar-cpf-com-javascript/23916 | |
function TestaCPF(strCPF) { | |
var Soma; | |
var Resto; | |
Soma = 0; | |
if (strCPF == "00000000000") return false; | |
for (i=1; i<=9; i++) Soma = Soma + parseInt(strCPF.substring(i-1, i)) * (11 - i); | |
Resto = (Soma * 10) % 11; |
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
using System; | |
internal class Program | |
{ | |
private static void Main(string[] args) | |
{ | |
//-------- CODE HERE | |
Console.Title = "The Point"; | |
Console.Clear(); |
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
internal class Program | |
{ | |
private static void Main(string[] args) | |
{ | |
Console.Title = "PokeTrumps"; | |
Console.Clear(); | |
Console.WriteLine("---------------------------------------------------------------------------------------------------------------"); | |
Console.WriteLine("Hello my friend! Welcome to PokeTrumps!"); |
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
[ | |
{ | |
"nome": "Alessandra Luzia Nogueira", | |
"idade": 70, | |
"cpf": "827.565.258-80", | |
"rg": "18.847.105-4", | |
"data_nasc": "07/01/1952", | |
"sexo": "Feminino", | |
"signo": "Capricórnio", | |
"mae": "Rosângela Sophia", |
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
{ | |
"estados": [ | |
{ | |
"sigla": "AC", | |
"nome": "Acre", | |
"cidades": [ | |
"Acrelândia", | |
"Assis Brasil", | |
"Brasiléia", | |
"Bujari", |
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
CREATE FUNCTION dbo.RepetitiveReplace_fn | |
( | |
@P_String VARCHAR(MAX), | |
@P_Pattern VARCHAR(MAX), | |
@P_ReplaceString VARCHAR(MAX), | |
@P_ReplaceLength INT = 1 | |
) | |
RETURNS VARCHAR(MAX) | |
BEGIN | |
DECLARE @Index INT; |
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
-- 23/12/2021 - Bruno | |
drop table if exists #resouce_mapping ; | |
select distinct | |
s.name as schema_name | |
,o.type_desc as resource_type | |
,p.name as resource_name | |
,t.name as table_name | |
,c.name as column_name | |
,ty.name as type | |
,c.max_length |
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
dCalendario = | |
ADDCOLUMNS( | |
CALENDARAUTO(); | |
"Ano";FORMAT([Date];"yyyy"); | |
"Trimestre";FORMAT([Date];"q"); |
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
#fonte https://devaprender.com/como-criar-um-bot-no-telegram/ | |
import requests | |
import time | |
import json | |
import os | |
class TelegramBot: | |
def __init__(self): | |
token = 'seutoken' |
NewerOlder