Skip to content

Instantly share code, notes, and snippets.

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

Amir Abdullin fyapy

🏠
Working from home
View GitHub Profile
@fyapy
fyapy / PostgreSQL_index_naming.rst
Created July 30, 2022 22:27 — forked from popravich/PostgreSQL_index_naming.rst
PostgreSQL index naming convention to remember

The standard names for indexes in PostgreSQL are:

{tablename}_{columnname(s)}_{suffix}

where the suffix is one of the following:

  • pkey for a Primary Key constraint;
  • key for a Unique constraint;
  • excl for an Exclusion constraint;
  • idx for any other kind of index;
http://idangero.us/swiper/demos/#.WcZzJCMY5Xg
$(window).on('load', function() {
$('.preloader').delay(1).fadeOut('slow');
})
<div class="preloader"><div class="loader"></div></div>
.preloader
position: fixed
top: 0
left: 0
$('element:hidden')
$('element:visible')
$('#myDiv').is(':visible');
$('#myDiv').is(':hidden');
<div class="mouse-icon"><div class="wheel"></div></div>
.mouse-icon
border: 2px solid #000
border-radius: 16px
height: 40px
width: 24px
display: block
z-index: 10
opacity: 0.7
https://codepen.io/devstreak/pen/dMYgeO
\::-webkit-scrollbar-button
background-image: url('')
background-repeat: no-repeat
width: 6px
height: 0px
\::-webkit-scrollbar-track
background-color: #32312e
&::-webkit-input-placeholder
color: #fff
opacity: 1
&:-moz-placeholder
color: #fff
opacity: 1
&::-moz-placeholder
color: #fff
opacity: 1
&:-ms-input-placeholder
npm i gulp -g
npm init
npm i
--save-dev
$('.carousel-service-composition h3').each(function() {
var ths = $(this);
ths.html(ths.html().replace(/(\S+)\s*$/, '<span>$1</span>'));
});
$('section h2').each(function() {
var ths = $(this);
ths.html(ths.html().replace(/^(\S+)/, '<span>$1</span>'));
});
https://codepen.io/agragregra/pen/bEbbmZ