This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$array = array( | |
array("Github","https://github.com"), | |
array("Pixelsoul","https://pixelsoul.com"), | |
array("Pixelsoul","https://pixelsoul.com"), | |
array("Acertus","https://www.acertusdelivers.com"), | |
array("Github","https://github.com"), | |
array("YouTube","https://youtube.com"), | |
array("Acertus","https://metrogistics.com") | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2022-02-20T19:34:21.587Z","extensionVersion":"v3.4.3"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function slugify($string){ | |
// trim off hyphens on ends of string | |
$string = trim($string, '-'); | |
// replace all non-standard characters or numbers | |
$string = preg_replace('~[^\\pL\d]+~u', '-', $string); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(window){ | |
window.htmlentities = { | |
/** | |
* Converts a string to its html characters completely. | |
* | |
* @param {String} str String with unescaped HTML characters | |
**/ | |
encode : function(str) { | |
var buf = []; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function robotsFile($url){ | |
$file = file_get_contents($url); | |
$pattern = '/Sitemap: ([^\s]+)/'; | |
preg_match_all($pattern, $file, $match); | |
$results = array(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function parseUrl(url) { | |
var parser = document.createElement('a'), | |
searchObject = {}, | |
queries, split, i; | |
// Let the browser do the work | |
parser.href = url; | |
// Convert query string to object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>tableToExcel Demo</title> | |
<script src="tableToExcel.js"></script> | |
</head> | |
<body> | |
<h1>tableToExcel Demo</h1> | |
<p>Exporting the W3C Example Table</p> |