Skip to content

Instantly share code, notes, and snippets.

View calvinmorett's full-sized avatar
🎨
Save as...

Calvin calvinmorett

🎨
Save as...
View GitHub Profile
@calvinmorett
calvinmorett / html-head-boilerplate.html
Created June 21, 2019 14:15 — forked from nunosans/html-head-boilerplate.html
HTML Head Boilerplate & Reference
<!doctype html>
<html>
<head>
<!-- Priority tags. These must come first. -->
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge; chrome=1"> <!-- Render Chrome if available or using latest version of Internet Explorer (Recommended). -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<!-- Document Title -->
<title>Page Title</title>
<!-- Allows control over where resources are loaded from. Place as early in the document as possible, only applies to content below this tag. -->
<html>
<head>
<title>Site Title</title>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="author" content="">
<meta name="keywords" content="">
<meta property="og:title" content="" />
<meta property="og:type" content="" />
@calvinmorett
calvinmorett / linkify.php
Created October 18, 2018 17:14 — forked from jasny/linkify.php
PHP function to turn all URLs in clickable links
<?php
/**
* Turn all URLs in clickable links.
*
* @param string $value
* @param array $protocols http/https, ftp, mail, twitter
* @param array $attributes
* @param string $mode normal or all
* @return string
*/