A very basic regex-based Markdown parser. Supports the
following elements (and can be extended via Slimdown::add_rule()
):
- Headers
- Links
- Bold
- Emphasis
- Deletions
<?php | |
$regions = array( | |
'Africa' => DateTimeZone::AFRICA, | |
'America' => DateTimeZone::AMERICA, | |
'Antarctica' => DateTimeZone::ANTARCTICA, | |
'Aisa' => DateTimeZone::ASIA, | |
'Atlantic' => DateTimeZone::ATLANTIC, | |
'Europe' => DateTimeZone::EUROPE, | |
'Indian' => DateTimeZone::INDIAN, | |
'Pacific' => DateTimeZone::PACIFIC |
<?php | |
/** | |
* SplClassLoader implementation that implements the technical interoperability | |
* standards for PHP 5.3 namespaces and class names. | |
* | |
* http://groups.google.com/group/php-standards/web/final-proposal | |
* | |
* // Example which loads classes for the Doctrine Common package in the | |
* // Doctrine\Common namespace. |
<?php | |
/* | |
This is a very tiny proof-of-concept SMTP client. Currently it's over 320 characters (if the var names are compressed). Think you can build one smaller? | |
*/ | |
ini_set('default_socket_timeout', 3); | |
$user = 'you@gmail.com'; | |
$pass = ''; | |
$host = 'ssl://smtp.gmail.com'; |
body { | |
font-family: Helvetica, arial, sans-serif; | |
font-size: 14px; | |
line-height: 1.6; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
background-color: white; | |
padding: 30px; } | |
body > *:first-child { |
<?php | |
/* | |
* .htaccess | |
* <IfModule mod_rewrite.c> | |
* RewriteEngine on | |
* RewriteCond %{REQUEST_FILENAME} !-d | |
* RewriteCond %{REQUEST_FILENAME} !-f | |
* RewriteRule ^(.*)\.(.+)\.(css|js)$ $1.$3 [L] # Strip out the version number | |
* </IfModule> |
1. Crie uma conta no Digital Ocean; | |
2. Crie um droplet Ubuntu (estas instruções são baseadas em Ubuntu) | |
3. Escolha o pacote LEMP para ser instalado com seu Ubuntu | |
4. Escolha ou associa sua chave publica para acesso ao servidor | |
5. Acesse seu server usando SSH (ssh root@<ip informado pelo DO>) |
<label class="toggle"> | |
<input type="checkbox" class="toggle-phony"/> | |
<span class="toggle-indicator"></span> | |
</label> |