View ATV9..py
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
from __future__ import annotations | |
from abc import ABC, abstractmethod | |
class Funcionario(): | |
""" | |
Classe principal | |
""" | |
def __init__(self, name, salary, strategy: StrategySalary) -> None: |
View AS_CCH3.py
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
from abc import ABC, abstractmethod | |
class Sandwich(ABC): | |
# Classe Abstrata | |
def template_method(self) -> None: | |
self.add_bread() | |
self.cut_bread() | |
self.add_ingredients() |
View AS_CCH2.py
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
from abc import ABC, abstractmethod | |
import time | |
import random | |
from datetime import date, datetime | |
class InterfaceApiTef(ABC): | |
@abstractmethod | |
def transaction(self) -> None: | |
pass |
View AS_CCH1.py
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
from __future__ import annotations | |
from abc import ABC, abstractmethod | |
from typing import Any | |
class Builder(ABC): | |
""" | |
Interface principal -> Builder | |
""" |
View MachineLearning.py
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 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 |
View teste_qrcode_js.html
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> | |
<!-- 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(){ |