Skip to content

Instantly share code, notes, and snippets.

🖥
Hello world

Nikita Murzin nmurzin

🖥
Hello world
Block or report user

Report or block nmurzin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nmurzin
nmurzin / pre-commit
Created Apr 10, 2018 — forked from fesor/pre-commit
php-cs-fixer pre-commit hook
View pre-commit
#!/usr/bin/env bash
echo "php-cs-fixer pre commit hook start"
PHP_CS_FIXER="bin/php-cs-fixer"
PHP_CS_CONFIG=".php_cs"
CHANGED_FILES=$(git diff --cached --name-only --diff-filter=ACM -- '*.php')
if [ -n "$CHANGED_FILES" ]; then
$PHP_CS_FIXER fix --config "$PHP_CS_CONFIG" $CHANGED_FILES;
git add $CHANGED_FILES;
@nmurzin
nmurzin / index.html
Created Aug 26, 2016
How to transfer jquery to bottom of the page
View index.html
<head>
<script>
// Fallback code for the jQuery inline scripts on pages:
if (window.jQuery === undefined) {
window.jQueryReadyHandlers = [];
window.$ = window.jQuery = function (callback) {
window.jQueryReadyHandlers.push(callback);
return window.$;
};
View brainfuck.php
<?php
class Foo {
public $deepest = 10;
public function __toString()
{
return 'deep';
}
}
You can’t perform that action at this time.