# Qual o seu nome? Marcelo
# Prazer Marcelo, eu acho que Marcelo e um nome muito bonito!
This file contains hidden or 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
| #!/bin/python3 | |
| import math | |
| import os | |
| import random | |
| import re | |
| import sys | |
| from collections import defaultdict | |
This file contains hidden or 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
| #!/usr/bin/env python3.6 | |
| import argparse | |
| import logging | |
| from mysql import connector | |
| MYSQL_DB = "XXX" | |
| MYSQL_HOST = "XXX" | |
| MYSQL_TCP_PORT = 3306 | |
| BATCH_SIZE = 100 | |
| CONNECTION_TIMEOUT_S = 1000 |
This file contains hidden or 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
| package mastermind | |
| data class Evaluation(val rightPosition: Int, val wrongPosition: Int) | |
| fun evaluateGuess(secret: String, guess: String): Evaluation { | |
| val charsInSecret = secret.groupingBy { it }.eachCount().toMutableMap() | |
| var rightPosition = 0 | |
| var wrongPosition = 0 | |
| guess.forEachIndexed { index, c -> | |
| if (c == secret[index]) { |
This file contains hidden or 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
| package taxipark | |
| /* | |
| * Task #1. Find all the drivers who performed no trips. | |
| */ | |
| fun TaxiPark.findFakeDrivers(): Set<Driver> = | |
| this.allDrivers - this.trips.map { it.driver }.toSet() | |
| /* |
This file contains hidden or 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="pt-br"> | |
| <head itemscope itemtype="http://schema.org/WebSite" > | |
| <title itemprop='name' >Qual operadora de de número. Como saber se um número usa WhatsApp?</title> | |
| <link rel="canonical" href="https://www.qual-operadora.net" itemprop="url"> | |
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> | |
| <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1" /> | |
| <meta name="description" content="Quer saber qual operadora de um número? Como saber se a pessoa usa whatsapp? Ou saber se o número usa WhatsApp? Descubra grátis qual é a operadora e se usa WhatsApp, inclusive da portabilidade de um número de celular, telefone fixo ou rádio e economize seus créditos! Consulta número que deseja saber a operadora" /> | |
| <meta name="keywords" content="Whatsapp, usa whatsapp, saber se número usa whatsapp,qual operadora, portabilidade, consulta, operadora, celular, telefone, fixo, nono dígito, bdo, bdr, cadup, número, consulta operadora, qual operadora |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
| DECRETO RIO Nº 45682 DE 25 DE FEVEREIRO DE 2019 Dispõe sobre a preferência para o uso de | |
| assentos nos veículos de transporte público coletivo no âmbito do Município, e | |
| dá outras providências. O PREFEITO DA CIDADE DO RIO DE JANEIRO, no uso de suas atribuições legais e, CONSIDERANDO que os tratados internacionais sobre direitos humanos | |
| aprovados na forma do § 3º do art. 5º da Constituição Federal equivalem a | |
| Emendas Constitucionais; CONSIDERANDO a Convenção sobre os Direitos das Pessoas com |
This file contains hidden or 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 re | |
| import os | |
| import sqlite3 | |
| def create_db(): | |
| os.remove('Leitor_DO.db') if os.path.exists('Leitor_DO.db') else None | |
| con = sqlite3.connect('Leitor_DO.db') | |
| cur = con.cursor() | |
| sql_create = 'create table Dados (id integer primary key, nome_do_instrumento text, numero_instrumento text, posicao_texto text)' |
This file contains hidden or 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
| |0000|ba3c826a-83af-4e79-b73b-d86c0e0dcf7b|ba3c826a-83af-4e79-b73b-d86c0e0dcf7b|0000|LECD|01012018|31122018|EMPRESA DO BAN-BAN-BAN|08X221X90001X4|SP|ISENTO|3550308|||0|1|0||0|0||N|N| | | |
| |0001|cee62316-2eee-4ce7-be60-05a2083e738e|cee62316-2eee-4ce7-be60-05a2083e738e|0001|0| | | |
| |0007|9470090e-d447-4ba7-9242-0bff7951d2de|9470090e-d447-4ba7-9242-0bff7951d2de|0007|00|| | | |
| |0007|9900ac74-2288-41ba-b79b-97cf81ad29d9|9900ac74-2288-41ba-b79b-97cf81ad29d9|0007|00|| | | |
| |0007|e606528d-b50d-41c8-a6c |
This file contains hidden or 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
| from collections import deque | |
| ONE = '1' | |
| class Solution: | |
| def numIslands(self, grid): | |
| width = len(grid) | |
| height = len(grid[0]) if width != 0 else 0 | |
| drc = [(-1, 0), (0, 1), (1, 0) , (0, -1)] | |