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 BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Running; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace ExceptAproachXAnyAproach | |
{ | |
class Program | |
{ |
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
/**Search and Open Reports | |
* Este algoritmo serve para ler as informações de laudo direto do arquivo.csv | |
* que gera eles e assim fornecer a funcionalidade de busca ao usuário. | |
* Dessa forma o usuário pode buscar por um laudo de forma geral. | |
*/ | |
// ========================================== | |
//============ Funções ====================== | |
// ========================================== |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<!-- Fonts --> | |
<link rel="stylesheet" href="../../assets/css/open-sans.css"> |
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
<section class="table"> | |
<div class="table__topHeader"> | |
<div class="filter__clear"> | |
<button type="button" aria-label="Left Align"> | |
Limpar Filtros | |
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span> | |
</button> | |
</div> | |
<div class="table__title"> |
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 random | |
number_of_tries = 1000 | |
number_of_sequencial_errors = 4 | |
error_values = [7,8,9,10] # the condition of unwanted number | |
percentage = (10 - len(error_values))/10 * 100 | |
previous = False # save the previous generated number | |
condition = 0 # verifies when the error happens 3 times | |
count = 0 # counts the number of times the error happens 3 times in a row | |
total = 0 |
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 random | |
sorteio = set() | |
def gerar_mega(): | |
while len(sorteio) <= 5: | |
d = random.randint(1, 60) | |
sorteio.add(d) | |
print(sorted(sorteio)) |
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
# coding: utf-8 | |
# Aplicativo de na mega sena. | |
import random | |
sorteio = [] | |
def gerar_mega2(): | |
while len(sorteio) <= 5: | |
d = random.randint(1, 60) |
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
# coding=utf-8 | |
#Aplicativo de apostas na mega sena. | |
# Autor: Vitor RFR | |
import random | |
def gerar_mega(): | |
dezenas = [] | |
#Irá gerar as 6 dezenas da mega sena. | |
for a in range(6): |