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 | |
| // Simple Dreamweaver-like HTML/PHP editor with code + design view | |
| // NOTE: Set your project root folder here: | |
| $ROOT = 'e:/Carte/BB/17 - Site Leadership/'; // schimbă daca vrei alt folder de lucru | |
| mb_internal_encoding('UTF-8'); | |
| function norm_path($p) | |
| { | |
| $p = str_replace(["\\", ".."], ["/", ""], $p); | |
| return ltrim($p, "/"); |
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
| import os | |
| import re | |
| import sys | |
| # Asigură afișarea corectă a diacriticelor în consolă (Windows) | |
| try: | |
| sys.stdout.reconfigure(encoding="utf-8", errors="replace") | |
| except Exception: | |
| # Dacă reconfigure nu este disponibil, ignorăm eroarea | |
| pass |
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
| import os | |
| import re | |
| import sys | |
| # Asigură afișarea fără erori a diacriticelor în consolă (Windows) | |
| try: | |
| sys.stdout.reconfigure(encoding="utf-8", errors="replace") | |
| except Exception: | |
| # Dacă reconfigure nu este disponibil, ignorăm eroarea | |
| pass |
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
| import os | |
| BASE_DIR = r'e:\Carte\BB\17 - Site Leadership\Principal\ro' | |
| REPLACEMENTS = { | |
| # ă / Ă | |
| 'ă': 'ă', 'ă': 'ă', 'ă': 'ă', | |
| 'Ă': 'Ă', 'Ă': 'Ă', 'Ă': 'Ă', | |
| # â / Â |
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
| import os | |
| BASE_DIR = r'e:\Carte\BB\17 - Site Leadership\Principal\ro' | |
| REPLACEMENTS = { | |
| # ă / Ă | |
| 'ă': 'ă', 'ă': 'ă', 'ă': 'ă', | |
| 'Ă': 'Ă', 'Ă': 'Ă', 'Ă': 'Ă', | |
| # â / Â |
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
| import os | |
| import re | |
| BASE_DIR = r'e:\Carte\BB\17 - Site Leadership\Principal\en' | |
| # Blocul dintre <!-- SASA-1 --> și <!-- SASA-2 --> | |
| SASA_BLOCK_RE = re.compile( | |
| r'<!--\s*SASA-1\s*-->(.*?)<!--\s*SASA-2\s*-->', | |
| re.DOTALL | re.IGNORECASE | |
| ) |
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 | |
| // Simple Dreamweaver-like HTML/PHP editor with code + design view | |
| // NOTE: Set your project root folder here: | |
| $ROOT = 'e:/Carte/BB/17 - Site Leadership/'; // schimbă daca vrei alt folder de lucru | |
| mb_internal_encoding('UTF-8'); | |
| function norm_path($p) | |
| { | |
| $p = str_replace(["\\", ".."], ["/", ""], $p); | |
| return ltrim($p, "/"); |
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
| import os | |
| RO = r"e:\Carte\BB\17 - Site Leadership\Principal\ro" | |
| EN = r"e:\Carte\BB\17 - Site Leadership\Principal\en" | |
| FILES_RO = [ | |
| "index.html","lideri-si-atitudine.html","leadership-magic.html", | |
| "leadership-de-succes.html","hr-resurse-umane.html","legile-conducerii.html", | |
| "leadership-total.html","leadership-de-durata.html","principiile-conducerii.html", | |
| "leadership-plus.html","calitatile-unui-lider.html","leadership-de-varf.html", |
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
| import os | |
| RO = r"e:\Carte\BB\17 - Site Leadership\Principal\ro" | |
| EN = r"e:\Carte\BB\17 - Site Leadership\Principal\en" | |
| FILES_RO = [ | |
| "index.html","lideri-si-atitudine.html","leadership-magic.html", | |
| "leadership-de-succes.html","hr-resurse-umane.html","legile-conducerii.html", | |
| "leadership-total.html","leadership-de-durata.html","principiile-conducerii.html", | |
| "leadership-plus.html","calitatile-unui-lider.html","leadership-de-varf.html", |
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
| cd "d:\Targul Cartii" | |
| # 1. Creeaza repo pe GitHub (foloseste tokenul tau) | |
| $token = "YOUR-TOKEN" | |
| $repoName = "Cumparaturi-Targul-Cartii" | |
| $body = @{ name = $repoName; private = $false } | ConvertTo-Json | |
| Invoke-RestMethod ` | |
| -Method Post ` | |
| -Uri "https://api.github.com/user/repos" ` | |
| -Headers @{ Authorization = "token $token"; "User-Agent" = "AutoCorectGitHubUploader" } ` |
NewerOlder