A very basic regex-based Markdown parser. Supports the
following elements (and can be extended via Slimdown::add_rule()):
- Headers
- Links
- Bold
- Emphasis
- Deletions
| Eg. URL translating en page to es | |
| http://translate.google.com/translate?hl=en&sl=en&tl=es&u=http://about.com | |
| Define the web interface language to be English by adding | |
| hl=en to the end of the URL and after the change the URL will look | |
| like this: | |
| http://www.google.com/search?hl=en | |
| When you use more than one setting code in the URL, you need to use |
| <?php | |
| class Encode{ | |
| private $isEncode; | |
| public function __construct($serverEncode="none") { | |
| $this->isEncode = $serverEncode; | |
| } | |
| public function compress( $data, $type ) { | |
| $supportsGzip = strpos($this->isEncode, 'gzip' ) !== false; |
| (function() { | |
| "use strict"; | |
| /** | |
| * @namespace | |
| */ | |
| var BOOTSTRAP = {}; | |
| /** |
| <?php | |
| // API access key from Google API's Console | |
| define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' ); | |
| $registrationIds = array( $_GET['id'] ); | |
| // prep the bundle | |
| $msg = array |
| <?php | |
| // Ref : http://php.net/manual/en/function.ftp-put.php | |
| $name = "test.txt"; | |
| $filename = "/home/mine/Desktop/test.txt"; | |
| //-- Code to Transfer File on Server Dt: 06-03-2008 by Aditya Bhatt --// | |
| //-- Connection Settings | |
| $ftp_server = "server_url_here"; // Address of FTP server. | |
| $ftp_user_name = "username_here"; // Username |
| <?php | |
| function folderSize ($dir) | |
| { | |
| $size = 0; | |
| foreach (glob(rtrim($dir, '/').'/*', GLOB_NOSORT) as $each) { | |
| $size += is_file($each) ? filesize($each) : folderSize($each); | |
| } |