Skip to content

Instantly share code, notes, and snippets.

View monrax's full-sized avatar

Ramón Márquez monrax

View GitHub Profile
@monrax
monrax / halving.ipynb
Created April 18, 2024 23:53
Historical price of Bitcoin (BTC/USD) before and after halving
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am monrax on github.
  • I am monra (https://keybase.io/monra) on keybase.
  • I have a public key whose fingerprint is F124 2FDD 5BE7 A4C6 A7F0 4405 13EF 797D 3178 C10B

To claim this, I am signing this object:

class Mat:
def __init__(self, n_rows, m_columns, matrix=None):
self.rows = n_rows
self.cols = m_columns
self.dim = (self.rows, self.cols)
self.matrix = matrix[:] if matrix else []
def __add__(self, other):
if self.dim == other.dim:
res = Mat(*self.dim)
@monrax
monrax / creditcalc.py
Created July 12, 2020 01:30
simple CLI credit calculator
import math
import sys
# credit_principal = p
# annuity_payment = a
# count_of_periods = n
# credit_interest = i
def calc_parameter(dict_pars, dict_calc):