Skip to content

Instantly share code, notes, and snippets.

View dangdinhtu2014's full-sized avatar

Đặng Đình Tứ dangdinhtu2014

View GitHub Profile
@dangdinhtu2014
dangdinhtu2014 / php-html-css-js-minifier.php
Created March 28, 2016 10:05 — forked from taufik-nurrohman/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) {
@dangdinhtu2014
dangdinhtu2014 / schema-org-structured-data-markup-using-microdata.html
Created April 21, 2017 18:57 — forked from milanaryal/schema-org-structured-data-markup-using-microdata.html
An example of how to mark up a HTML5 webpage using the schema.org schemas and microdata.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Site Title</title>
<link rel="stylesheet" href="/assets/css/style.min.css">