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 | |
$number = '+2pop0۱00193086۵'; | |
function fixPhoneNumbers($number) | |
{ | |
// Remove all non numerals characters | |
$number = preg_replace("/[^0-9\x{0660}-\x{0669}\x{06F0}-\x{06F9}\+]/u", '', $number); | |
// Convert indic to Arabic numerals |
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
var links = []; | |
$('.download a:contains(TCX)').each ( function () { | |
links.push($(this).attr('href')) | |
} ); | |
links.forEach(function(link) { | |
// console.log(link); | |
var newFrame = document.createElement('iframe'); | |
document.body.appendChild(newFrame); |
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 retrieve_shortened_link($shortUrl){ | |
$headers = get_headers($shortUrl, 1); | |
if(is_array($headers['Location'])){ | |
return $headers['Location'][0]; | |
}else{ | |
return $headers['Location']; | |
} | |
} |
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 | |
/** | |
* Is RTL | |
* Check if there RTL characters (Arabic, Persian, Hebrew) | |
* | |
* @author Khaled Attia <[email protected]> | |
* @param String $string | |
* @return bool | |
*/ |
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
[Desktop Entry] | |
Encoding=UTF-8 | |
Version=2.0.1 | |
Name=Sublime Text 2 | |
Exec=subl %u | |
Terminal=false | |
Icon=/home/khal3d/applications/Sublime Text 2/Icon/128x128/sublime_text.png | |
Type=Application | |
Categories=Application;Utility;IDE;Development;TextEditor | |
StartupNotify=true |