Skip to content

Instantly share code, notes, and snippets.

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

Delowar Hossain delowardev

🏠
Working from home
View GitHub Profile
/* Medium Layout: 1280px. */
@media only screen and (min-width: 992px) and (max-width: 1200px) {
}
/* Tablet Layout: 768px. */
@media only screen and (min-width: 768px) and (max-width: 991px) {
}
$provision_toolkit_allowed_html_in_st = array(
'a' => array(
'href' => array(),
'class' => array(),
'target' => array(),
),
'img' => array(
'href' => array(),
'class' => array(),
'alt' => array(),
{URL}?license=regular&open_purchase_for_item_id={ID}&purchasable=source&ref=idea420
flat.portfolio_isotope = $('.portfolio-isotope');
flat.portfolio_menu = $('.isotope-menu li');
flat.portfolio_isotope.isotope({
itemSelector: '.single-portfolio',
layoutMode: 'fitRows'
});
flat.portfolio_menu.on('click', function () {
flat.portfolio_menu.removeClass("active");
$(this).addClass("active");
@delowardev
delowardev / css-compress.php
Created February 8, 2018 09:31 — forked from brentonstrine/css-compress.php
Fix space removal so that it doesn't break space-separated values where the developer used more than one space to separate values.
<?php
/**
* On-the-fly CSS Compression
* Copyright (c) 2009 and onwards, Manas Tungare.
* Creative Commons Attribution, Share-Alike.
*
* In order to minimize the number and size of HTTP requests for CSS content,
* this script combines multiple CSS files into a single file and compresses
* it on-the-fly.
*
@delowardev
delowardev / override-tutor-login-registration-form.php
Created October 29, 2019 11:15
Helps you to customize the login & registration forms in Tutor LMS WordPress plugin.
<?php
/**
* Fires Before Tutor Global Login Form
* @Hook: tutor_load_template_before
* @Template: global.login
*/
add_action('tutor_load_template_before', 'tutor_global_login_before', 10, 2);
function tutor_global_login_before($template, $variable){
@delowardev
delowardev / js-scope.js
Created July 18, 2021 17:31
Scope in JavaScript
if (true) {
let x = 10;
var y = 10;
}
// `x` can't be accessed from outside of the if block
console.log(x) // return: Uncaught ReferenceError: x is not defined
// `y` can be accessed from outside of the if block
console.log(y) // return 10