Skip to content

Instantly share code, notes, and snippets.


Artur Prydatko aprydatko

Block or report user

Report or block aprydatko

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
View .eslintrc.yml
browser: true
es6: true
node: true
extends: 'eslint:recommended'
- eslint-plugin-css-modules
- eslint-plugin-html
ecmaVersion: 2015
aprydatko / basic settings
Created Jan 22, 2019
Sublime Text 3 settings
View basic 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,
aprydatko /
Last active Feb 3, 2019
# 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 / owl-dots_top_center_saas
Last active May 31, 2017
View owl-dots_top_center_saas
position: absolute
top: 50%
left: 0
width: 7px
height: 7px
margin-bottom: 17px
margin-left: 5px
aprydatko / owl-nav_center_position_saas
Last active May 31, 2017
center position owl-carousel
View owl-nav_center_position_saas
// center position owl-carousel
position: absolute
top: 50%
width: 100%
text-align: right
.owl-prev, .owl-next
display: inline-block
position: relative
opacity: 1
View button sass
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
View sublime-text preset (Preferences > Settings)
"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,
aprydatko / gist:3d3c73829fcf6a7da074e89c62385804
Created Feb 26, 2017
WordPress Get Category name By label
View gist:3d3c73829fcf6a7da074e89c62385804
$idObj = get_category_by_slug('s_about');
$id = $idObj->term_id;
echo get_cat_name($id);
View gist:9911e4432969a514e2ac5d1f05896782
<?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 / gist:1f0bac63bb0dee60dde0b62802b360b6
Created Feb 26, 2017
Post Thumbnail Linking to Large Image Size
View gist:1f0bac63bb0dee60dde0b62802b360b6
<?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)); ?>
<?php endif; ?>
You can’t perform that action at this time.