Skip to content

Instantly share code, notes, and snippets.

View praisedpk's full-sized avatar

Hamid Sarfraz praisedpk

View GitHub Profile
<link href="https://pagecdn.io/lib/easyfonts/fonts.css" rel="stylesheet" />
<div class="font-roboto">
<div class="font-open-sans w600i">
Stuff here appears in Open Sans, bold and italic
</div>
<div class="w600">
Stuff here appears in Roboto, bold
</div>
@praisedpk
praisedpk / cdn.md
Last active November 18, 2020 21:07 — forked from fffaraz/cdn.md
A list of Content Delivery Network providers
@praisedpk
praisedpk / get-domain-name-from-url.php
Created September 18, 2016 20:22
Get host or domain name from a URL with PHP
function get_domain_from_url( $string )
{
return strtolower( parse_url( $string , PHP_URL_HOST ) );
}
Source https://pageconfig.com/post/extract-host-from-a-url-php