diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index cd15b34..01b917f 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -4,21 +4,27 @@ "type": "split", "children": [ { +<<<<<<< Updated upstream "id": "8394721853d949c0", "type": "tabs", "children": [ { "id": "b850042edcdc35ee", +======= + "id": "c244cecb07d7aabe", + "type": "tabs", + "children": [ + { + "id": "3449545729fd0f00", +>>>>>>> Stashed changes "type": "leaf", "state": { - "type": "markdown", + "type": "pdf", "state": { - "file": "BD/TD.md", - "mode": "source", - "source": false + "file": "SCR/SCR 1.1/CM-SCR.1.1_Access_Perm.pdf" }, - "icon": "lucide-file", - "title": "TD" + "icon": "lucide-file-text", + "title": "CM-SCR.1.1_Access_Perm" } } ] @@ -189,6 +195,7 @@ "bases:Créer une nouvelle base": false } }, +<<<<<<< Updated upstream "active": "b850042edcdc35ee", "lastOpenFiles": [ "EGOD/EGOD - Demule thenon.md", @@ -206,6 +213,18 @@ "SCR/SCR 1.1/image.png", "SCR/SCR 1.1/CM-SCR.1.1_Access_Perm.pdf", "SCR/SCR 1.1/TD.md", +======= + "active": "3449545729fd0f00", + "lastOpenFiles": [ + "SCR/SCR 1.1/TD.md", + "SCR/SCR 1.1/image.png", + "SCR/SCR 1.1/Sans titre.md", + "BD/TD.md", + "Pasted image 20261013162420.png", + "Pasted image 20261006141945.png", + "SCR/SCR 1.1/CM-SCR.1.1_Access_Perm.pdf", + "DEV1.1/CM.md", +>>>>>>> Stashed changes "Pasted image 20261002121116.png", "BD/BD 1.1.md", "DEV1.1/TP/README.md", diff --git a/Pasted image 20261006141945.png b/BD/Pasted image 20261006141945.png similarity index 100% rename from Pasted image 20261006141945.png rename to BD/Pasted image 20261006141945.png diff --git a/BD/TD.md b/BD/TD.md index f036c83..ba6d5cb 100644 --- a/BD/TD.md +++ b/BD/TD.md @@ -297,7 +297,10 @@ R5: SELECT * FROM (Modèle NATURAL JOIN Propriétaire) JOIN Personne ON NumPropriétaire = NumPersonne; ``` - + ![[Pasted image 20261013162420.png]] + + +# TD4 # TD 5 diff --git a/DEV1.1/TP b/DEV1.1/TP index f8f7a82..a420a60 160000 --- a/DEV1.1/TP +++ b/DEV1.1/TP @@ -1 +1 @@ -Subproject commit f8f7a823b2eb8e6c4d780f902e890c802eaf3c3e +Subproject commit a420a604f7e3e1e033ae73926817278aa3bbb568 diff --git a/Pasted image 20261002121116.png b/Pasted image 20261002121116.png deleted file mode 100644 index 1e32eee..0000000 Binary files a/Pasted image 20261002121116.png and /dev/null differ diff --git a/Pasted image 20261013162420.png b/Pasted image 20261013162420.png new file mode 100644 index 0000000..85f2d9a Binary files /dev/null and b/Pasted image 20261013162420.png differ diff --git a/SCR/SCR 1.1/Sans titre.md b/SCR/SCR 1.1/Sans titre.md new file mode 100644 index 0000000..3ff8dad --- /dev/null +++ b/SCR/SCR 1.1/Sans titre.md @@ -0,0 +1,5 @@ +TP + +# TP + + diff --git a/maker b/maker index 81add39..899e828 100755 --- a/maker +++ b/maker @@ -1,7 +1,7 @@ #!/usr/bin/python3 import getpass import os, subprocess - +import random class Colors: RED = "\033[0;31m" @@ -11,6 +11,7 @@ class Colors: END = "\033[0m" + def ask(question: str, default=None, required=False, confidential=False): """Ask a question to the user and check if the result is good""" while True: @@ -31,10 +32,32 @@ def ask(question: str, default=None, required=False, confidential=False): else: print(f"{Colors.RED}this field is required !{Colors.END}") +tips = [ + f"you can use environnment variables to set an Email and a Discord to the README file ! " +] + +print(Colors.YELLOW+random.choice(tips)+Colors.END) project_name = ask("enter your project filename > ", required=True) libs = ask("enter your libs flags press (let the field blank if None) > ", default="") +readme = """ +# ###PROJECTNAME### + +## Description + +## Compilation / Execution + +pour compiler le projet il suffit d'éxecuter : ```make``` + +pour éxecuter le projet il suffit d'éxécuter : ```bin/###PROJECTNAME###``` + +## FAQ + + + +""" + template = f"""# tool macros CC ?= gcc #CXX ?= @@ -110,6 +133,20 @@ with open("Makefile", "w", encoding="utf-8", errors="ignore") as f: f.write(template) print(f"{Colors.GREEN}Makefile build successfully !{Colors.END}") f.close() + + +readme=readme.replace("###PROJECTNAME###",project_name) + +mail=os.getenv("EMAIL") or None +mail=os.getenv("DISCORD") or None +if not mail == None and not discord == None: + readme+=f"\n\n## Bugs / Question\n-email: {mail}\n- Discord: {discord}" + +with open("README.md", "w", encoding="utf-8", errors="ignore") as f: + f.write(readme) + print(f"{Colors.GREEN}README written successfully !{Colors.END}") + f.close() + os.system("make makedir") open("src/main.c", "w").write( """#include \n#include \n\nint main(void) {\n\n\treturn EXIT_SUCCESS;\n}"""