Skip to content

Instantly share code, notes, and snippets.

View mhimon's full-sized avatar
🎯
Focusing

Mahbub Hasan Imon mhimon

🎯
Focusing
View GitHub Profile
@mhimon
mhimon / string-utils.js
Created July 18, 2021 10:51 — forked from jonlabelle/string-utils.js
Useful collection of JavaScript string utilities.
// String utils
//
// resources:
// -- mout, https://github.com/mout/mout/tree/master/src/string
/**
* "Safer" String.toLowerCase()
*/
function lowerCase(str) {
return str.toLowerCase();
@mhimon
mhimon / php-html-css-js-minifier.php
Created December 27, 2020 09:40 — forked from Rodrigo54/php-html-css-js-minifier.php
PHP Function to Minify HTML, CSS and JavaScript
<?php
/**
* -----------------------------------------------------------------------------------------
* Based on `https://github.com/mecha-cms/mecha-cms/blob/master/system/kernel/converter.php`
* -----------------------------------------------------------------------------------------
*/
// HTML Minifier
function minify_html($input) {
@mhimon
mhimon / Media Query For Responsive Design ( Sass ).scss
Created May 8, 2018 09:43
Media Query For Responsive Design ( Sass )
$small_mobile:'(max-width: 767px)';
$large_mobile: 'only screen and (min-width: 480px) and (max-width: 767px)';
$tab_device:'only screen and (min-width: 768px) and (max-width: 991px)';
$desktop: '(min-width: 1281px)';
|--| How to use ?
just add this code into your scss file