Skip to content

Instantly share code, notes, and snippets.

Avatar
👾

Andrew Svirin andrew-svirin

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

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 Aug 26, 2021
PHP: Fix broken html tags in string and use html entities
View fixBrokenHTMLString.php
/**
* 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
*/