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 | |
use PhpCsFixer\Config; | |
use PhpCsFixer\Finder; | |
$rules = [ | |
'array_indentation' => true, | |
'array_syntax' => ['syntax' => 'short'], | |
'binary_operator_spaces' => [ | |
'default' => 'single_space', |
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
# Step 1: Go to .git/hooks/ directory | |
# Step 2: Rename "commit-msg.sample" to "commit-msg" (CLI: mv commit-msg.sample commit-msg) | |
# Step 3: Replace the existing code in a "commit-msg" file with the following code | |
NAME=$(git branch | grep '*' | sed 's/* //') | |
TIMESTAMP=$(date +"%D %T") | |
DESCRIPTION=$(git config branch."$NAME".description) | |
echo "$TIMESTAMP — $NAME"': '$(cat "$1") > "$1" | |
if [ -n "$DESCRIPTION" ] | |
then | |
echo "" >> "$1" |
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
/* */ | |
#include <stdio.h> | |
int main(void) | |
{ | |
return 0; | |
} |
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
.clearfix | |
&::after | |
content: '' | |
display: block | |
clear: both | |
visibility: hidden | |
height: 0 |
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
<label class="checkbox"><input type="checkbox" checked><div class="checkbox-text">Запомните меня</div></label> |
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
.checkbox | |
input | |
position: absolute | |
z-index: -1 | |
opacity: 0 | |
margin: 10px 0 0 20px | |
&:checked + .checkbox-text | |
&::before | |
background: #9FD468 | |
&::after |
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
** | |
* Metabox function. | |
*/ | |
require get_template_directory() . '/inc/metaboxes.php'; |
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
onRefresh: function () { | |
owl.find('div.owl-item').height(''); | |
}, | |
onRefreshed: function () { | |
owl.find('div.owl-item').height(owl.height()); | |
} |