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
/*-Bancario | |
Una de las actividades más comunes en el mundo financiero es la realización de | |
simulaciones que permitan a los clientes saber el rendimiento de sus productos a través del tiempo, contemplando diferentes escenarios y posibles situaciones que se presenten. Se quiere crear un programa que haga la simulación en el tiempo de la cuenta bancaria de un cliente. Un cliente tiene un nombre y un número de cédula el cual identifica la cuenta. | |
Una cuenta, por su parte, está constituida por tres productos financieros básicos: (1) Una cuenta de ahorro, (2) una cuenta corriente y (3) un certificado de depósito a término (CDT). | |
Estos productos son independientes y tienen comportamientos particulares. | |
El saldo total de la cuenta es la suma de lo que el cliente tiene en cada uno de dichos productos. En la cuenta corriente el cliente puede depositar o retirar dinero. Su principal característica es que no recibe ningún interés por el dinero que se encuentre allí depositado. En la cuenta de ahorro, |
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
2019-05-29 17:53:49.311170 I | rookcmd: starting Rook v1.0.0 with arguments '/rook/rook ceph osd provision' | |
2019-05-29 17:53:49.311374 I | rookcmd: flag values: --cluster-id=d31a835f-8237-11e9-b2df-0800278a31ba, --data-device-filter=all, --data-devices=, --data-directories=, --encrypted-device=false, --force-format=false, --help=false, --location=, --log-flush-frequency=5s, --log-level=INFO, --metadata-device=, --node-name=slkdaksldlkasdklasdklaklsdlksdkldklaksld, --osd-database-size=1024, --osd-journal-size=1024, --osd-store=, --osd-wal-size=576, --osds-per-device=1 | |
2019-05-29 17:53:49.311381 I | op-mon: parsing mon endpoints: c=10.109.3.226:6789,a=10.107.139.9:6789,b=10.107.196.42:6789 | |
2019-05-29 17:53:52.334473 W | cephconfig: failed to add config file override from '/etc/rook/config/override.conf': open /etc/rook/config/override.conf: no such file or directory | |
2019-05-29 17:53:52.334485 I | cephconfig: writing config file /var/lib/rook/rook-ceph/rook-ceph.config | |
2019-05-29 17:53:52.334549 I | cephconfig: |
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 pygame | |
import math | |
ANCHO=800 | |
ALTO=500 | |
ROJO=[255,0,0] | |
BLANCO=[255,255,255] | |
NEGRO=[0,0,0] |
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
sudo yum-config-manager --enable "Red Hat Enterprise Linux Server 7 Extra(RPMs)" | |
sudo yum install docker -y |
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
''' | |
A python script which starts celery worker and auto reload it when any code change happens. | |
I did this because Celery worker's "--autoreload" option seems not working for a lot of people. | |
''' | |
import time | |
from watchdog.observers import Observer ##pip install watchdog | |
from watchdog.events import PatternMatchingEventHandler | |
import psutil ##pip install psutil | |
import os |