This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """ | |
| Sterge complet un folder dintr-un repository GitHub. | |
| Flux: | |
| 1. Cere URL-ul repository-ului. | |
| 2. Cere calea relativa a folderului din repository. | |
| 3. Cloneaza repository-ul, ruleaza git rm -r, face commit si push. | |
| Exemplu cale folder: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """ | |
| adauga-folder-in-repository.py | |
| Adauga toate fisierele dintr-un folder local intr-un repository de pe GitHub. | |
| Flux: | |
| Fereastra 1 -> intreaba in ce repo de pe GitHub sa adaugi fisierele (URL repo). | |
| Fereastra 2 -> intreaba calea folderului local pe care vrei sa-l copiezi in repo, | |
| cu un checkbox: "Copiaza si subfolderele" (recursiv) sau doar fisierele din folder. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from __future__ import annotations | |
| import argparse | |
| import hashlib | |
| import html as html_lib | |
| import json | |
| import os | |
| import re | |
| import shutil | |
| import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """ | |
| adauga-new-repository.py | |
| Creeaza un repository NOU pe GitHub dintr-un folder local si urca toate fisierele. | |
| Varianta SIMPLA - fara token, fara user, fara parola in script. | |
| Foloseste GitHub CLI (gh), care isi gestioneaza singur autentificarea | |
| (te-ai logat o data cu "gh auth login" si gata). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FINAL Corecturi gramaticale, punctuatie, stilistice si semantic-logice de pe site-ul https://neculaifantanaru.com | |
| Corectează gramatica, ortografia și punctuația textului dat in limba romana. Precizeaza ce anume nu e corect, logic si stilistic in textul dat, conform instrucțiunilor de mai jos: | |
| 1. Respectarea fidelă a textului original: | |
| - Analizează textul pentru a corecta greșelile gramaticale, de ortografie, punctuație și structură. | |
| - Păstrează cât mai mult posibil stilul, tonul și intenția originală a autorului. | |
| 2. Intervenții minime: | |
| - Corectează doar elementele care împiedică claritatea sau respectarea normelor limbii române. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """ | |
| adauga-folder-in-repository.py | |
| Adauga toate fisierele dintr-un folder local intr-un repository de pe GitHub. | |
| Flux: | |
| Fereastra 1 -> intreaba in ce repo de pe GitHub sa adaugi fisierele (URL repo). | |
| Fereastra 2 -> intreaba calea folderului local pe care vrei sa-l copiezi in repo, | |
| cu un checkbox: "Copiaza si subfolderele" (recursiv) sau doar fisierele din folder. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """ | |
| DOWNLOAD FULL - Metoda 1 | |
| ======================== | |
| Bazat pe structura din "Claude-FINAL 15 ... Firefox.py", dar SINGURA diferenta | |
| este METODA de preluare a datelor: NU se mai descarca PDF (are limita). In schimb, | |
| pentru fiecare pagina se preia IMAGINEA SURSA din browser (METODA 1 = fetch la | |
| blob-ul <img class="page-canvas">), apoi toate imaginile unui document se pun | |
| intr-un PDF. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // ───────────────────────────────────────────────────────────────────────────── | |
| // Word Editor — editor de documente (docx / doc / odt / rtf / pdf) cu toolbar tip Word. | |
| // Inspirat din "index V.4.php" (Mini Dreamweaver), dar dedicat fisierelor office. | |
| // • docx → deschis client-side cu mammoth.js → editabil → salvat cu html-docx-js | |
| // • odt → convertit server-side (zip + content.xml) → editabil → salvat ca .docx | |
| // • rtf → convertit server-side minimal → editabil → salvat ca .docx | |
| // • pdf → randat cu pdf.js; text extras pentru editare → salvat ca .docx | |
| // • doc → binar vechi: doar avertisment (recomanda conversie in .docx) | |
| // ───────────────────────────────────────────────────────────────────────────── |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """ | |
| DOWNLOAD FULL - Metoda 1 | |
| ======================== | |
| Bazat pe structura din "Claude-FINAL 15 ... Firefox.py", dar SINGURA diferenta | |
| este METODA de preluare a datelor: NU se mai descarca PDF (are limita). In schimb, | |
| pentru fiecare pagina se preia IMAGINEA SURSA din browser (METODA 1 = fetch la | |
| blob-ul <img class="page-canvas">), apoi toate imaginile unui document se pun | |
| intr-un PDF. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """ | |
| Arcanum - METODA 2: printscreen real + deplasare controlata + lipire pe geometrie. | |
| Gandire diferita fata de metoda 1 (care preia blob-ul sursa cu fetch). Aici | |
| capturam PIXELII DE PE ECRAN, dar NU ne bazam pe scroll-ul viewer-ului (care e | |
| virtual/clamp-uit). In schimb: | |
| 1. luam <img> paginii (cea mai mare), o mutam in <body>; | |
| 2. o fixam la rezolutie nativa (position:fixed, z-index maxim, NW x NH); | |
| 3. o deplasam noi pe verticala (top:-offset) banda cu banda; |
NewerOlder