TAEG is the Taux Annuel Effectif Global
, it is the cost of money for a year with the current fees on the loan.
From an amortization table, you can compute it like that:
+------------+--------------+
# Voir https://docs.djangoproject.com/fr/3.0/ref/signals/#m2m-changed pour plus d'infos | |
@receiver(m2m_changed, sender = VisiteMedicale.animaux.through) | |
def visite_medicale_save_action(sender, instance, **kwargs): | |
if reverse: | |
# Cas de popi.visite_medicale_set.remove(sterilisation_20200413) | |
animaux = [instance] | |
visite_medicale = model.objects.get(pk__in=pk_set) | |
else: | |
# Cas de sterilisation_20200413.animaux.add(Popi) |
module Square exposing (..) | |
import Html exposing (..) | |
import Html.Attributes exposing (..) | |
import Html.Events exposing (..) | |
import Animation exposing (px, percent) | |
import Time exposing (second) | |
import Ease exposing (..) | |
type alias Page = | |
{ name : String | |
, url : String | |
, created_at : Date | |
, title : String | |
, description : String | |
, url : String | |
} | |
from functools import partial | |
RULES = { | |
'six_h': {'high': 390, 'low': 330}, | |
'twelve_h': {'high': 750, 'low': 690}, | |
'twentyfour_h': {'high': 1490, 'low': 1410}, | |
'seven_d': {'high': 169, 'low': 168} | |
} | |
import aiohttp | |
import asyncio | |
import os | |
WOLEET_SERVER = 'https://api.woleet.io/v1' | |
WOLEET_HEADERS = { | |
'Authorization': 'Bearer {}'.format(os.getenv('WOLEET_BEARER_TOKEN')), | |
'Content-Type': 'application/json' | |
} |
To use it:
python kinto_bootstrap.py -s http://localhost:8888 -a token:my-token -v
$ python kinto_bootstrap.py --help
usage: kinto_bootstrap.py [-h] [-s SERVER] [-a AUTH] [-b BUCKET] [-v] [-q]
[-D]
Bootstrap bucket
# -*- coding: utf-8 -*- | |
# This is PY3 only code using asyncIO | |
import asyncio | |
import aiohttp | |
import base64 | |
import json | |
from random import randint | |
from kinto_client import Client, Endpoints | |
from pyquery import PyQuery as pyquery |
# -*- coding: utf-8 -*- | |
# This is PY3 only code using asyncIO | |
import asyncio | |
import aiohttp | |
from pyquery import PyQuery as pyquery | |
async def fetch_info(session, record): | |
if 'blockID' not in record: | |
print("{} doesn't have a blockID".format(record['id'])) |