Skip to content

Instantly share code, notes, and snippets.

View mihir1337's full-sized avatar
🎯
Focusing

Sabber Hossain mihir1337

🎯
Focusing
View GitHub Profile
@mihir1337
mihir1337 / cloudSettings
Created June 18, 2020 16:44
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-06-18T16:44:53.656Z","extensionVersion":"v3.4.3"}
@mihir1337
mihir1337 / cloudSettings
Last active June 18, 2020 16:44
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-06-18T16:44:42.861Z","extensionVersion":"v3.4.3"}
@mihir1337
mihir1337 / cloudSettings
Created October 4, 2019 08:45
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-10-04T08:44:59.297Z","extensionVersion":"v3.4.3"}
@mihir1337
mihir1337 / cloudSettings
Last active October 4, 2019 08:40
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-10-04T08:40:26.596Z","extensionVersion":"v3.4.3"}
function mainSlider() {
var BasicSlider = $('.slider-active');
BasicSlider.on('init', function(e, slick) {
var $firstAnimatingElements = $('.single-slider:first-child').find('[data-animation]');
doAnimations($firstAnimatingElements);
});
BasicSlider.on('beforeChange', function(e, slick, currentSlide, nextSlide) {
var $animatingElements = $('.single-slider[data-slick-index="' + nextSlide + '"]').find('[data-animation]');
doAnimations($animatingElements);
});
// way one
var i = 1;
$('.owl-carousel .owl-dot').each(function(){
$(this).text(i);
i++;
});
//way two
var dot = $('.slideWrap .owl-dot');
@mihir1337
mihir1337 / node sass
Created September 4, 2018 07:44 — forked from mdsalim/node sass
version
----------
node -v
for folder select
-------
cd Desktop/sinax/sinax
for sass install
--------
/* XL Device :1200px. */
@media (min-width: 1200px) and (max-width: 1500px) {
}
/* LG Device :992px. */
@media (min-width: 992px) and (max-width: 1200px) {
/* ===========================================
Template Name: Site Name
Author: Authore Name
Version: 1.00
============================================== */
/* ===========================================
Table of Content
============================================== */
/**
* Registers a new post type
**/
function prefix_register_name() {
// Slider coustom post
register_post_type('slide', array(
'public' => true,
'label' => 'Slide',
'labels' => array(
'name' => 'Slides',