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 xml.etree.ElementTree as ET | |
| from datetime import datetime | |
| SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) | |
| EXCLUDED_DIR_NAMES = {"vendor", "index_files", "creative-studio"} | |
| def read_canonical_link(file_path): |
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 xml.etree.ElementTree as ET | |
| from datetime import datetime | |
| SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) | |
| EXCLUDED_DIR_NAMES = {"vendor", "index_files", "creative-studio"} | |
| def read_canonical_link(file_path): |
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
| Mai jos sunt propozitii si paragrafe corectate in limba romana, extrase de pe site-ul https://neculaifantanaru.com : | |
| Cu cât protecția ta provine dintr-o forță mai înaltă, cu atât vrajmasii tai fac mai multe greseli care le atrag în mod inevitabil propria judecata și condamnare. | |
| reformuleaza. | |
| Iată câteva variante mai naturale și mai elegante: | |
| Cu cât ocrotirea ta vine dintr-o putere mai înaltă, cu atât vrăjmașii tăi se afundă mai mult în propriile greșeli, atrăgându-și singuri judecata și osânda. (recomandată) | |
| Cu cât ești mai puternic ocrotit de o forță superioară, cu atât vrăjmașii tăi își pregătesc, prin propriile fapte, judecata și condamnarea. |
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
| # Folosesc API-ul Windows direct, ca să nu depindă de pyautogui: mută cursorul pe coordonată, citește forma cursorului, și dă click doar dacă forma este IDC_HAND. | |
| # Ce face. Te uiti pe youtube la un video, full screen. Nu ai varianta platita youtube, asa ca apar reclame la fiecare cateva minute, si apoi butonul skip. | |
| # așteaptă 60 secunde la pornire; apoi, la fiecare 5 secunde, mută mouse-ul la x=1848, y=978; | |
| # apasă click doar dacă acolo cursorul devine mânuță; după click așteaptă 12 secunde înainte să verifice din nou; | |
| # se oprește cu Ctrl+C. | |
| # Acum verificarea la 5 secunde nu mai mută mouse-ul deloc. Citește pixelii din zona butonului Skip și mută mouse-ul doar în momentul în care pare că butonul chiar există, ca să apese click. | |
| # Preia coordonatele https://gist.github.com/me-suzy/ef5596c07960f38f336e8b0002d87b98 | |
| import ctypes | |
| import time |
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
| #!/usr/bin/env python3 | |
| r""" | |
| Mouse coordinate capture for Windows. | |
| Shows live mouse coordinates in the console, but saves a coordinate only when | |
| the right mouse button is clicked. Left click stays free for normal work. | |
| Saved captures go to: | |
| - captures\coordinates.html | |
| - captures\coordinates.csv |
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
| # Folosesc API-ul Windows direct, ca să nu depindă de pyautogui: mută cursorul pe coordonată, citește forma cursorului, și dă click doar dacă forma este IDC_HAND. | |
| # Ce face. Te uiti pe youtube la un video, full screen. Nu ai varianta platita youtube, asa ca apar reclame la fiecare cateva minute, si apoi butonul skip. | |
| # așteaptă 60 secunde la pornire; apoi, la fiecare 5 secunde, mută mouse-ul la x=1848, y=978; | |
| # apasă click doar dacă acolo cursorul devine mânuță; după click așteaptă 12 secunde înainte să verifice din nou; | |
| # se oprește cu Ctrl+C. | |
| import ctypes | |
| import time | |
| from ctypes import wintypes |
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
| $dirs = @( | |
| "E:\Carte\BB\17 - Site Leadership\Principal 2022\Leadership ART\2022 - ro", | |
| "E:\Carte\BB\17 - Site Leadership\Principal 2022\Leadership ART\2022 - en" | |
| ) | |
| foreach ($dir in $dirs) { | |
| Write-Output "=== $dir ===" | |
| Get-ChildItem -Path $dir -Recurse -Filter *.html | ForEach-Object { | |
| $content = Get-Content -Raw $_.FullName | |
| $hasLoader = $content -match 'loader-fade' | |
| $hasBundle = $content -match 'bundle\.min\.js' |
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 -*- | |
| # FIND-and-REPLACE.py | |
| # | |
| # Inlocuieste blocul de CSS-uri din <head> in toate fisierele .html | |
| # din folderele setate in DIRECTORIES (inclusiv subfoldere). | |
| # | |
| # Cum functioneaza: | |
| # Nu cauta textul exact (care esua din cauza comentariilor HTML, tab-urilor | |
| # si spatiilor invizibile), ci foloseste doua ANCORE: | |
| # - inceput: # - sfarsit: <link rel="stylesheet" href="../../art-topic-nav.css"> |
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 -*- | |
| # FIND-and-REPLACE.py | |
| # | |
| # Inlocuieste blocul de CSS-uri din <head> in toate fisierele .html | |
| # din folderele setate in DIRECTORIES (inclusiv subfoldere). | |
| # | |
| # Cum functioneaza: | |
| # Nu cauta textul exact (care esua din cauza comentariilor HTML, tab-urilor | |
| # si spatiilor invizibile), ci foloseste doua ANCORE: | |
| # - inceput: <!-- Favicon --> |
NewerOlder