Skip to content

Instantly share code, notes, and snippets.

View erickdsama's full-sized avatar
🕳️

Erick Samaniego erickdsama

🕳️
View GitHub Profile
import json
import os
from bs4 import BeautifulSoup
from requests import Session
session = Session()
from requests import post
from pokemon.application.model import TourData
from pokemon.domain.exceptions import WrongKantoLocation
from pokemon.domain.model import AreaData, LocationData, TourResponse
from pokemon.domain.repository import AbstractPokemonAdapter
class PokemonTourService:
def __init__(self, adapter: AbstractPokemonAdapter):
self.adapter = adapter
[
{
"name": "ACC-SINV-2022-a9640090",
"order_types": "D2C Carga inicial",
"uuid": "49A6C075-C363-4B6E-8AD1-BE94472155D4",
"status": "Vigente",
"issuing_rfc": "KCA150708KVA",
"customer_rfc": "XAXX010101000",
"emitted_date": "2022-04-21T15:41:10",
"amount": 22901,
import requests
import json
banks = ["ABC CAPITAL, S.A. INSTITUCISN DE BANCA MULTIPLE",
"AMERICAN EXPRESS",
"BANAMEX",
"BANCA AFIRME, S.A.",
"BANCA CREMI, S.A.",
"BANCA MIFEL, S.A.",
"BANCA SERFIN, S.A.",
@erickdsama
erickdsama / restore.py
Last active April 5, 2024 20:11
Restore database with the last backup in develop
import getpass
import gzip
import math
import os
import re
import stat
import subprocess
import sys
import time
[
{
"height": 0.7,
"weight": 6.9,
"attack": 49,
"hp": 45,
"defense": 49,
"speed": 45,
"speedAttack": 65,
"speedDefense": 65,
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@erickdsama
erickdsama / hello_world.py
Created July 13, 2019 00:22
Como utilizar todas los tipos de variables en python
mensaje = "hola mundo"
iteraciones = 10
mensajes = []
pares = True
for iteracion in range(iteraciones):
par = iteracion % 2 == 0
@erickdsama
erickdsama / variables_python.py
Last active July 12, 2019 23:56
Tipos de variables en python y como asignar
# variable de tipo texto
a = "texto"
# variable de tipo entero
b = 1
# variable de tipo doble
c = 1.0
# varibale de tipo boleano
with open('Downloads/problem_1_data.txt', 'r') as content_file:
import re
content = content_file.read()
data = []
init = 0
while True:
person = {}
person["name"] = content[init:init+10].strip()
person["middlename"] = content[init+10:init+20].strip()
init_street = init+50