Skip to content

Instantly share code, notes, and snippets.

View deepydee's full-sized avatar
🧐
I may be slow to respond.

Vitalii Semenov deepydee

🧐
I may be slow to respond.
  • Kazakhstan, Karaganda
  • 18:55 (UTC +05:00)
View GitHub Profile
@deepydee
deepydee / .php-cs-fixer.php
Created December 27, 2023 04:21 — forked from laravel-shift/.php-cs-fixer.php
PHP CS Fixer - Laravel Coding Style Ruleset
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$rules = [
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'default' => 'single_space',
@deepydee
deepydee / commit-msg
Created March 10, 2023 06:25 — forked from gorbatova/commit-msg
Add timestamp and branch name to GIT commit message
# 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"
@deepydee
deepydee / main.c
Created May 23, 2021 10:41
Main C code
/* */
#include <stdio.h>
int main(void)
{
return 0;
}
@deepydee
deepydee / main.sass
Created August 6, 2018 17:43
clearfix
.clearfix
&::after
content: ''
display: block
clear: both
visibility: hidden
height: 0
@deepydee
deepydee / visually-hidden.css
Last active August 6, 2018 09:27
visually-hidden
.visually-hidden:not(:focus):not(:active) {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
border: 0;
padding: 0;
white-space: nowrap;
@deepydee
deepydee / index.html
Created July 30, 2018 10:27
checkbox html
<label class="checkbox"><input type="checkbox" checked><div class="checkbox-text">Запомните меня</div></label>
@deepydee
deepydee / main.sass
Created July 30, 2018 10:26
Checkbox
.checkbox
input
position: absolute
z-index: -1
opacity: 0
margin: 10px 0 0 20px
&:checked + .checkbox-text
&::before
background: #9FD468
&::after
@deepydee
deepydee / button.sass
Created July 16, 2018 09:08
button.sass
.button
display: inline-block
border: none
color: #fff
text-decoration: none
background-color: $accent
padding: 15px 45px
font-size: 13px
text-transform: uppercase
font-weight: 600
**
* Metabox function.
*/
require get_template_directory() . '/inc/metaboxes.php';
@deepydee
deepydee / owl-equal-heights.js
Created May 3, 2018 19:55
Owl Carousel Equal Heights
onRefresh: function () {
owl.find('div.owl-item').height('');
},
onRefreshed: function () {
owl.find('div.owl-item').height(owl.height());
}