This file contains hidden or 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
| [user] | |
| name = Carlos Levano | |
| email = calevano@gmail.com | |
| [core] | |
| editor = vim | |
| excludesfile = ~/.gitignore_global | |
| autocrlf = false | |
| [alias] | |
| a = add | |
| br = branch |
This file contains hidden or 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
| git filter-branch --env-filter ' | |
| WRONG_EMAIL="dude@gmail.com" | |
| NEW_NAME="Dude Name" | |
| NEW_EMAIL="dude@company.com" | |
| if [ "$GIT_COMMITTER_EMAIL" = "$WRONG_EMAIL" ] | |
| then | |
| export GIT_COMMITTER_NAME="$NEW_NAME" | |
| export GIT_COMMITTER_EMAIL="$NEW_EMAIL" | |
| fi |
This file contains hidden or 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
| INSERT INTO `regiones` (`id`, `region`) VALUES | |
| (1, 'AMAZONAS'), | |
| (2, 'ANCASH'), | |
| (3, 'APURIMAC'), | |
| (4, 'AREQUIPA'), | |
| (5, 'AYACUCHO'), | |
| (6, 'CAJAMARCA'), | |
| (7, 'CALLAO'), | |
| (8, 'CUSCO'), | |
| (9, 'HUANCAVELICA'), |
This file contains hidden or 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
| INSERT INTO `provincias` (`id`, `provincia`, `region_id`) VALUES | |
| (1, 'CHACHAPOYAS ', 1), | |
| (2, 'BAGUA', 1), | |
| (3, 'BONGARA', 1), | |
| (4, 'CONDORCANQUI', 1), | |
| (5, 'LUYA', 1), | |
| (6, 'RODRIGUEZ DE MENDOZA', 1), | |
| (7, 'UTCUBAMBA', 1), | |
| (8, 'HUARAZ', 2), | |
| (9, 'AIJA', 2), |
This file contains hidden or 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
| INSERT INTO `distritos` (`id`, `distrito`, `provincia_id`) VALUES | |
| (1, 'CHACHAPOYAS', 1), | |
| (2, 'ASUNCION', 1), | |
| (3, 'BALSAS', 1), | |
| (4, 'CHETO', 1), | |
| (5, 'CHILIQUIN', 1), | |
| (6, 'CHUQUIBAMBA', 1), | |
| (7, 'GRANADA', 1), | |
| (8, 'HUANCAS', 1), | |
| (9, 'LA JALCA', 1), |
This file contains hidden or 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
| <?hp | |
| function url_amigable($url) { | |
| //$urlMinuscula = strtolower($url); | |
| $buscarLetra = array('Á', 'É', 'Í', 'Ó', 'Ú', 'Ñ', 'á', 'é', 'í', 'ó', 'ú', 'ñ'); | |
| $reemplazar = array('A', 'E', 'i', 'O', 'U', 'N', 'a', 'e', 'i', 'o', 'u', 'n'); | |
| $urlNueva = str_replace($buscarLetra, $reemplazar, $url); | |
| $buscarCaracteres = array(' ', '&', '\r\n', '\n', '+'); | |
| $urlAceptable = str_replace($buscarCaracteres, ' ', $urlNueva); | |
| //$find = array('/[^a-z0-9\-<>]/', '/[\-]+/', '/<[^>]*>/'); | |
| //$repl = array('', '-', ''); |
This file contains hidden or 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
| public function handle() | |
| { | |
| $tableName = $this->argument('table'); | |
| if ($tableName != null) { | |
| $table = Schema::hasTable($tableName); | |
| if ($table) { | |
| $columnName = $this->option('column'); | |
| if ($columnName != null) { | |
| $column = Schema::hasColumn($tableName, $columnName); | |
| if ($column) { |
This file contains hidden or 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
| #In view | |
| <a href="[_route_]" | |
| class="btn btn btn-success btn-circle btn-xs zmdi zmdi-edit" | |
| data-toggle='modal' | |
| data-target="#openModal" | |
| data-tamanio='lg'> | |
| </a> | |
| #OpenModal |
This file contains hidden or 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
| SELECT | |
| ROUTINE_NAME ,ROUTINE_DEFINITION | |
| FROM | |
| INFORMATION_SCHEMA.ROUTINES | |
| WHERE | |
| ROUTINE_DEFINITION LIKE '%Letter%' | |
| AND ROUTINE_TYPE = 'PROCEDURE' | |
| ORDER BY ROUTINE_NAME |
This file contains hidden or 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
| function remove(array, element) { | |
| const index = array.indexOf(element); | |
| if (index !== -1) { | |
| array.splice(index, 1); | |
| } | |
| } |
OlderNewer