Skip to content

Instantly share code, notes, and snippets.

👽
Coding

Yordan Zhelev yordanzhelevdev

👽
Coding
Block or report user

Report or block yordanzhelevdev

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 fns-data.php
function gallery_data($id, $section_id = 12, $limit = 100, $type = 1) {
$order = 'res_order, res_id';
if ($section_id == $GLOBALS['s_products']) {
if ($GLOBALS['row']['prod_parent']) $order = 'res_order > 0 DESC, res_order';
else if (strpos($id, ',') !== false && $GLOBALS['row']['prod_id']) $order = "page_id != {$GLOBALS['row']['prod_id']} DESC, ".$order;
}
$res = query("SELECT *
FROM wf_resources
WHERE page_id IN ($id) AND section_id = $section_id AND res_type = $type
ORDER BY res_type, $order LIMIT $limit");
View products.scss
// Sizes filteration
.filter-sizes {
ul {
& { display: flex; flex-wrap: wrap; }
& > * { flex-shrink: 0; flex-grow: 0; flex-basis: 31%; margin: 0 3.5% 0 0; padding-bottom: 3.5%; overflow: hidden; }
& > :nth-child(3n) { margin-right: 0; }
}
input {
& { opacity: 0; visibility: hidden; }
&:checked + a, &:checked + span {
View dasdas.html
<div class="">
<div class="heading-block heading-block--light">
<h2 class="heading-block__head">Професионализъм и партньорство</h2>
</div>
<div class="flex-list flex-list--check">
<a class="flex-list__item" href="#">Устав</a>
<a class="flex-list__item" href="#">Ръководство</a>
<a class="flex-list__item" href="#">Фирми</a>
<a class="flex-list__item" href="#">Издания</a>
View article.html
<div class="pw page">
<div class="page__grid">
<div class="page__col page__col--1">
<article class="article">
<div class="article__content">
<div class="acc">
<div class="article__gallery js-articleGalleryWrapper">
<div class="owl-carousel js-articleGallery">
<div class="owl-lazy article__slide" data-src="https://picsum.photos/600/400"></div>
<div class="owl-lazy article__slide" data-src="https://picsum.photos/600/400"></div>
@yordanzhelevdev
yordanzhelevdev / items.css
Created Apr 16, 2019
Unknown number items spacing distribution with flexbox
View items.css
.items {
display: flex;
flex-wrap: wrap;
width: 1000px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
margin: -3% 0 0 -3%;
}
View flexbox-vendor-prefixer.scss
@mixin flexbox {
display: -webkit-box;
display: -moz-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
@mixin inline-flex {
display: -webkit-inline-box;
View nth-child-quantity-mixins.scss
@mixin valid-quantity($quantity) {
@if type-of($quantity) != 'number' {
@error 'The "quantity" parameter must be a number!';
}
@if not(unitless($quantity)) {
@error 'The "quantity" parameter must not have a unit!';
}
@if $quantity < 0 {
@error 'The "quantity" parameter must be at least 0!';
}
@yordanzhelevdev
yordanzhelevdev / README-Template.md
Created Oct 1, 2018 — forked from PurpleBooth/README-Template.md
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

View 2018-09-06T14_55_14_059Z-debug.log
12006 silly finalize C:\Users\User\Desktop\IonicPlaygroud\node_modules\fsevents\node_modules\delegates
12007 silly finalize C:\Users\User\Desktop\IonicPlaygroud\node_modules\fsevents\node_modules\detect-libc
12008 silly finalize C:\Users\User\Desktop\IonicPlaygroud\node_modules\fsevents\node_modules\fs.realpath
12009 silly finalize C:\Users\User\Desktop\IonicPlaygroud\node_modules\fsevents\node_modules\has-unicode
12010 silly finalize C:\Users\User\Desktop\IonicPlaygroud\node_modules\fsevents\node_modules\inherits
12011 silly finalize C:\Users\User\Desktop\IonicPlaygroud\node_modules\fsevents\node_modules\ini
12012 silly finalize C:\Users\User\Desktop\IonicPlaygroud\node_modules\fsevents\node_modules\isarray
12013 silly finalize C:\Users\User\Desktop\IonicPlaygroud\node_modules\fsevents\node_modules\minimatch
12014 silly finalize C:\Users\User\Desktop\IonicPlaygroud\node_modules\fsevents\node_modules\ignore-walk
12015 silly finalize C:\Users\User\Desktop\IonicPlaygroud\node_modules\fsevents\node_modules\minim
@yordanzhelevdev
yordanzhelevdev / gist:e28d0fcc69bdf78da36d313cf8776b69
Created Aug 27, 2018 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View gist:e28d0fcc69bdf78da36d313cf8776b69

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
You can’t perform that action at this time.