Skip to content

Instantly share code, notes, and snippets.

View enzofrnt's full-sized avatar
🤪
Learning to much !

Fournet Enzo enzofrnt

🤪
Learning to much !
View GitHub Profile
@enzofrnt
enzofrnt / wait_for_db.py
Created March 9, 2024 10:56
Django command to wait for database availability
import time
from django.db import connections
from django.db.utils import OperationalError
from django.core.management.base import BaseCommand
from django.db import DEFAULT_DB_ALIAS
class Command(BaseCommand):
"""Django command to pause execution until database is available"""
@enzofrnt
enzofrnt / TestEffi.java
Created June 18, 2023 09:27
Fichier de test d'efficacité SAE Algo
package exercice;
import java.util.*;
public class TestEffi {
public static void main(String[] args) {
List<List<Character>> ordres = new ArrayList<>();
ordres.add(List.of('c', 't', 'e', 'x', 'a', 'm', 'p', 'l', 's', 'r', 'd'));
ordres.add(List.of('t', 's', 'p', 'm', 'r', 'l', 'x', 'e', 'd', 'a', 'c'));
ordres.add(List.of('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k'));