Skip to content

Instantly share code, notes, and snippets.

View erickdsama's full-sized avatar
🕳️

Erick Samaniego erickdsama

🕳️
View GitHub Profile
(function(Bo){typeof define=="function"&&define.amd?define(Bo):Bo()})(function(){"use strict";var Tz=Object.defineProperty;var kz=(Bo,Vo,Ru)=>Vo in Bo?Tz(Bo,Vo,{enumerable:!0,configurable:!0,writable:!0,value:Ru}):Bo[Vo]=Ru;var wn=(Bo,Vo,Ru)=>kz(Bo,typeof Vo!="symbol"?Vo+"":Vo,Ru);function Bo(c,u){for(var d=0;d<u.length;d++){const h=u[d];if(typeof h!="string"&&!Array.isArray(h)){for(const g in h)if(g!=="default"&&!(g in c)){const E=Object.getOwnPropertyDescriptor(h,g);E&&Object.defineProperty(c,g,E.get?E:{enumerable:!0,get:()=>h[g]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}function Vo(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var Ru={exports:{}},Od={},av={exports:{}},Rt={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var _1;functio
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 February 28, 2025 15:03
Restore database with the last backup in develop
import math
import os
import subprocess
import sys
import time
import boto3
BUCKET = 'erpnext-backups-zeb'
[
{
"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