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 ask_sdk_core.dispatch_components import AbstractRequestHandler | |
| from ask_sdk_core.utils import is_intent_name | |
| #inicio de bienvenida a el modo cumpleaños y pregunta nombre | |
| class CumpleanosHandler(AbstractRequestHandler): | |
| def can_handle(self, handler_input): | |
| return is_intent_name("ModeCumpleIntent")(handler_input) | |
| def handle(self, handler_input): | |
| speak = "¡Wujuuu! Bienvenido al modo cumpleaños. ¿Quién es el festejado?" |
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
| @startuml | |
| interface Motor { | |
| +mover() | |
| } | |
| interface Chofer { | |
| +manejar() | |
| } | |
| class MotorCombustion implements Motor { | |
| +mover() |
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 requests | |
| #Separare el api: | |
| #"https://api.themoviedb.org/3/search/movie?include_adult=false&language=en-US&page=1" | |
| class BuscadorTMDB: | |
| def __init__(self, api_key): | |
| self.api_key = api_key | |
| self.base_url = "https://api.themoviedb.org/3/search/movie" | |
| def buscar(self, titulo): |
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
| @startuml | |
| abstract class Figura { | |
| +abstract double calcularArea() | |
| +abstract double calcularPerimetro() | |
| } | |
| class Rectangulo extends Figura { | |
| -double base | |
| -double altura |