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) {