Skip to content

Instantly share code, notes, and snippets.

View andrew-svirin's full-sized avatar
👾

Andrew Svirin andrew-svirin

👾
View GitHub Profile
@sorokadima
sorokadima / Українські імена список.txt
Last active September 7, 2024 15:51
Українські імена список
Ніка
Адріана
Адріан
Тіна
Аліна
Ангеліна
Алінка
Ліна
Аліса
Алла
@pfrenssen
pfrenssen / README.md
Last active May 10, 2022 14:00
Git hook to check coding standards using PHP CodeSniffer before pushing

About

This is a git pre-push hook intended to help developers keep their PHP code base clean by performing a scan with PHP CodeSniffer whenever new code is pushed to the repository. When any coding standards violations are present the push is rejected, allowing the developer to fix the code before making it public.

To increase performance only the changed files are checked when new code is

@joshmfrankel
joshmfrankel / fixBrokenHTMLString.php
Last active September 8, 2023 12:22
PHP: Fix broken html tags in string and use html entities
/**
* Fix for broken html tags inside strings for php.
*
* By using passing the html through DOMDocument and converting the html
* entities we are left with beautiful well formatted code. Huzzah!
*
* "Nothing is ever easy" -Zedd, Wizards First Rule
*
* @var DOMDocument
*/