##Symfony
php app/console generate:bundle
php app/console router:debug
| ISO 3166-1 3 Letter Code & Common Name | |
| Some codes are repeated but that's not my fault <codes come from: http://www.andrewpatton.com/countrylist.html> | |
| You may be also interested in looking at: http://unstats.un.org/unsd/methods/m49/m49alpha.htm | |
| <option value="AFG"> Afghanistan </option> | |
| <option value="ALB"> Albania </option> | |
| <option value="DZA"> Algeria </option> |
| http://www.loc.gov/standards/iso639-2/ISO-639-2_utf-8.txt | |
| ISO-639-2 Standard three letter codes for langs | |
| <option value="aar"> Afar </option> | |
| <option value="abk"> Abkhazian </option> | |
| <option value="ace"> Achinese </option> | |
| <option value="ach"> Acoli </option> | |
| <option value="ada"> Adangme </option> | |
| <option value="ady"> Adyghe Adygei </option> |
| <!DOCTYPE html> | |
| <html lang="en-US"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>TITLE</title> | |
| <link href='http://fonts.googleapis.com/css?family=Dancing+Script' rel='stylesheet' type='text/css'> | |
| <link href='http://fonts.googleapis.com/css?family=Autour+One' rel='stylesheet' type='text/css'> | |
| <style type="text/css"> | |
| body { |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>title</title> | |
| <!--<link rel="stylesheet" href="style.css">--> | |
| <!--<script src="script.js"></script>--> | |
| </head> | |
| <body> | |
| <!-- page content --> |
| <!DOCTYPE html> | |
| <html lang="en-US"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>TITLE</title> | |
| <link href='http://fonts.googleapis.com/css?family=Dancing+Script' rel='stylesheet' type='text/css'> | |
| <link href='http://fonts.googleapis.com/css?family=Autour+One' rel='stylesheet' type='text/css'> | |
| <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> | |
| <script src="./game.js"></script> |
| $( document ).ready(function() { | |
| console.log( "ready!" ); | |
| }); |
$timeIsOK = preg_match('#^([01]?[0-9]|2[0-3]):[0-5][0-9]?$#', $timeString);
src: http://stackoverflow.com/questions/11005728/php-validating-24-hour-time-format
$timeIsOK = preg_match('#^([01]?[0-9]|2[0-3]):[0-5][0-9](:[0-5][0-9])?$#', $timeString);
| cd ~ | |
| sudo apt-get update | |
| sudo apt-get install openjdk-7-jre-headless -y | |
| ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below | |
| # NEW WAY / EASY WAY | |
| wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.9.deb | |
| sudo dpkg -i elasticsearch-0.90.9.deb |
| cadena => áéíóú ñ aeiou qwerty | |
| strtoupper => áéíóú ñ AEIOU QWERTY | |
| mb_convert_case => ÁÉÍÓÚ Ñ AEIOU QWERTY |