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 | |
/** | |
* - Version modificada que no requiere el modulo allow_url_fopen. | |
* | |
* Una simple función para obtener los costos de envío de un paquete mediante Chilexpress. | |
* Como única dependencia se necesita de la liberia PHP Simple HTML DOM Parser: http://simplehtmldom.sourceforge.net/ | |
* | |
* Para poder comunicarse con Chilexpress, se debe tener la lista de todas las comunas que ellos utilizan y el código | |
* que le asignan a cada una. En este archivo, al final, podrás encontrar el listado, el cual podrás parsear fácilmente | |
*/ |
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 | |
/* | |
* Sencilla funcion para cotizar los precios de los paquetes enviados a traves de Starken (antes Turbus Cargo). | |
* No requiere el modulo allow_url_fopen. | |
*/ | |
include 'simple_html_dom.php'; | |
/** | |
* @param int $origen Código ciudad origen. |
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
array ( | |
1287 => 'ACHAO', | |
2424 => 'AGUA BUENA', | |
1531 => 'AHUI', | |
2435 => 'AIQUINA', | |
1250 => 'ALERCE', | |
2346 => 'ALGARROBAL', | |
1143 => 'ALGARROBITO', | |
588 => 'ALGARROBO', | |
1331 => 'ALHUE', |
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
Vee Validate | |
v-validate="'required|regex:^([a-zA-Z\\-]+)(\\s+)([a-zA-Z\\-]+)?$'" | |
it's validate two words with one space | |
node_modules/laravel-mix/src/index.js | |
if (Mix.sees('laravel')) { | |
Config.publicPath = 'system'; //custom folder | |
} |
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
Install MySQL / MariaDB | |
Install with pacman. | |
sudo pacman -S mariadb | |
Initialize data directories. | |
sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql | |
By default MySQL will run as the user running the command unless a user is explicitly specified with --user option. Path to the installation directory can be specified with --basedir option while data directory is specified with --datadir. |