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
require 'uri' | |
require 'net/http' | |
require 'json' | |
class EasyBrokerAPI | |
BASE_URL = "https://api.stagingeb.com/v1/properties" | |
def initialize(access_token, page: 1, limit: 20) | |
@page = page | |
@limit = limit |
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
{ | |
"name": "wayne", | |
"lockfileVersion": 3, | |
"requires": true, | |
"packages": { | |
"": { | |
"dependencies": { | |
"@fortawesome/fontawesome-svg-core": "^1.2.32", | |
"@fortawesome/free-solid-svg-icons": "^5.15.1", | |
"@fortawesome/vue-fontawesome": "^3.0.1", |
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 fabric.api import task | |
from fabric.api import local | |
from fabric.api import cd | |
from fabric.api import env | |
from fabric.api import prefix | |
from fabric.api import sudo | |
from fabric.api import run | |
from fabric.api import get | |
from fabric.api import put # scp |
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
- Suma de listas: Escribe una función que tome dos listas como entrada y devuelva una nueva lista que contenga la suma de los elementos correspondientes de ambas listas. | |
- Número máximo y mínimo: Escribe una función que tome una lista de números como entrada y devuelva el número máximo y mínimo de la lista. | |
- Eliminar duplicados: Escribe una función que tome una lista como entrada y devuelva una nueva lista sin elementos duplicados. | |
- Palabras más largas: Escribe una función que tome una lista de palabras como entrada y devuelva una tupla, de un solo elemento, con las palabras más largas de la lista. | |
- Invertir lista: Escribe una función que tome una lista como entrada y devuelva una nueva lista con los elementos en orden inverso. |
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 time | |
import timeit | |
from functools import partial | |
def is_prime(number): | |
if number < 2: | |
return False | |
for x in range(2, number): |
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
class QueueLLEmptyError(Exception): | |
pass | |
class Node: | |
def __init__(self, data): | |
self.data = data | |
self.next = None | |
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
class QueueFullError(Exception): | |
pass | |
class QueueEmptyError(Exception): | |
pass | |
class ListQueue(): |
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 time | |
from stack import Stack | |
from stackll import StackLL | |
from collections import deque | |
total = 100_000_000 | |
start = time.time() | |
def timer_decorator(function): |
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 typing import Optional, Any | |
class StackUnderFlowError(Exception): | |
def __init__(self): | |
super().__init__('Stack Under Flow error') | |
class Node: | |
def __init__(self, data: Any = None) -> None: |
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 typing import Optional, List, Any | |
class StackOverFlowError(Exception): | |
def __init__(self): | |
super().__init__('Stack Over Flow error') | |
class StackUnderFlowError(Exception): | |
def __init__(self): | |
super().__init__('Stack Under Flow error') |