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 | |
/* __________________________________________________________________ | |
/* | |
/* Fechas obtenidas desde la base de datos y desde el formulario | |
/* enviado por el usuario | |
/* _______________________________________________________________ */ | |
$dateDataBase = "2/8/2014"; | |
$dateMinUser = "3/11/2012"; | |
$dateMaxUser = "5/12/2016"; |
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 | |
/* separar el nombre completo en espacios */ | |
$tokens = explode(' ', trim($full_name)); | |
/* arreglo donde se guardan las "palabras" del nombre */ | |
$names = array(); | |
/* palabras de apellidos (y nombres) compuetos */ | |
$special_tokens = array('da', 'de', 'del', 'la', 'las', 'los', 'mac', 'mc', 'van', 'von', 'y', 'i', 'san', 'santa'); | |
$prev = ""; |
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
# Last updated May, 2024 for Apple silicon Macs | |
# Install Homebrew if you don't already have it: https://brew.sh | |
# install nano from homebrew | |
brew install nano nanorc | |
# update your nanorc file | |
echo 'include "'"$(brew --cellar nano)"'/*/share/nano/*.nanorc"' >> ~/.nanorc | |
# close and re-open your terminal and you'll have syntax highlighting |