Skip to content

Instantly share code, notes, and snippets.

View aprydatko's full-sized avatar
🏠
Working from home

Artur Prydatko aprydatko

🏠
Working from home
  • A-bank
  • Sumy
View GitHub Profile
env:
browser: true
es6: true
node: true
extends: 'eslint:recommended'
plugins:
- eslint-plugin-css-modules
- eslint-plugin-html
parserOptions:
ecmaVersion: 2015
@aprydatko
aprydatko / basic settings
Created January 22, 2019 15:44
Sublime Text 3 settings
{
"auto_complete": false,
"bold_folder_labels": true,
"color_scheme": "Packages/One Dark Material - Theme/schemes/OneDark.tmTheme",
"fold_buttons": false,
"font_size": 13,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
@aprydatko
aprydatko / init.coffee
Last active February 3, 2019 14:12
a344e27f87232f391a4a0f7a1e9bab4818ecdbe2
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@aprydatko
aprydatko / owl-dots_top_center_saas
Last active May 31, 2017 20:15
owl-dots_top_center_saas
.owl-dots
position: absolute
top: 50%
left: 0
.owl-dot
span
width: 7px
height: 7px
margin-bottom: 17px
margin-left: 5px
@aprydatko
aprydatko / owl-nav_center_position_saas
Last active May 31, 2017 20:03
center position owl-carousel
// center position owl-carousel
.owl-nav
position: absolute
top: 50%
width: 100%
text-align: right
.owl-prev, .owl-next
display: inline-block
position: relative
opacity: 1
.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
{
"show_definitions": false,
"auto_complete": false,
"bold_folder_labels": true,
"color_scheme": "Packages/One Dark Material - Theme/schemes/OneDark.tmTheme",
"fold_buttons": false,
"font_size": 13,
"highlight_line": true,
"indent_guide_options":
[
@aprydatko
aprydatko / gist:3d3c73829fcf6a7da074e89c62385804
Created February 26, 2017 16:46
WordPress Get Category name By label
<?php
$idObj = get_category_by_slug('s_about');
$id = $idObj->term_id;
echo get_cat_name($id);
?>
<?php if ( have_posts() ) : query_posts('p=1');
while (have_posts()) : the_post(); ?>
<?php the_title(); ?>
<?php the_content(); ?>
<?php the_post_thumbnail(array(100, 100)); ?>
<? endwhile; endif; wp_reset_query(); ?>
@aprydatko
aprydatko / gist:1f0bac63bb0dee60dde0b62802b360b6
Created February 26, 2017 07:55
Post Thumbnail Linking to Large Image Size
<?php if ( has_post_thumbnail() ) : ?>
<a class="popup" href="<?php
$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large' );
echo $large_image_url[0];
?>" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail(array(250, 250)); ?>
</a>
<?php endif; ?>