Skip to content

Instantly share code, notes, and snippets.

View LoanCB's full-sized avatar

Loan Courchinoux-Billonnet LoanCB

View GitHub Profile
@LoanCB
LoanCB / cheat_sheet.md
Created October 12, 2021 14:59
Cheat sheet

Filtres Django

Date


Code

| date:" "

Explication

Formate la date comme on souhaite qu'elle s'affiche

@LoanCB
LoanCB / morpion amélioré dans le terminal
Created November 13, 2021 07:53
Projet algorithmique de première année de bachelor informatique à ESGI Lyon ~ Printemps 2021
############################################## Librairies #################################################
import os, platform, colorama, random
from colorama import Fore, Style
#############################################################################################################
############################################## Fonctions ##################################################
# Suppression de l'écran
@LoanCB
LoanCB / CustomTestCase.py
Last active July 4, 2022 06:58
Django custom TestCase for unit test
def _debugMail(body_html: bool):
print(
" ---------------------------------------------------------------------\n",
"| DEBUG INFORMATIONS ON THE MAIL(S) CONTAINED IN THE FOLDER |\n",
"---------------------------------------------------------------------\n\n"
)
for index, email in enumerate(mail.outbox):
print(f"Mail n°{index + 1}")
print(f"Subject : {email.subject}")
print(f"Recipient(s) : {email.to}")