Skip to content

Instantly share code, notes, and snippets.

from __future__ import annotations
from abc import ABC, abstractmethod
class Funcionario():
"""
Classe principal
"""
def __init__(self, name, salary, strategy: StrategySalary) -> None:
from abc import ABC, abstractmethod
class Sandwich(ABC):
# Classe Abstrata
def template_method(self) -> None:
self.add_bread()
self.cut_bread()
self.add_ingredients()
from abc import ABC, abstractmethod
import time
import random
from datetime import date, datetime
class InterfaceApiTef(ABC):
@abstractmethod
def transaction(self) -> None:
pass
from __future__ import annotations
from abc import ABC, abstractmethod
from typing import Any
class Builder(ABC):
"""
Interface principal -> Builder
"""
@BrunoBiz
BrunoBiz / MachineLearning.py
Created November 29, 2022 01:50
MachineLearning
import pandas as pd
import numpy as np
from sklearn.model_selection import KFold
from sklearn.model_selection import cross_val_score
from sklearn.metrics import accuracy_score, confusion_matrix, classification_report
from sklearn.model_selection import train_test_split
# Modelos
from sklearn.naive_bayes import GaussianNB
<!DOCTYPE html>
<!-- Gera QrCode com base no conteúdo do input usando a API Google Charts -->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script>
function GerarCodBarras(){