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 | |
declare(strict_types=1); | |
function extract_name_parts(string $full_name) : ?stdClass | |
{ | |
$obj = new stdClass(); | |
$obj->firstName = null; | |
$obj->secondName = null; | |
$obj->surname = null; | |
$obj->secondSurname = null; |
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
[ ] Press Windows button and type cmd. | |
[ ] Right-click on Command Prompt and choose Run as administrator. | |
[ ] Copy and paste the following keys successively and press Enter after each command: | |
[ ] sc delete DiagTrack | |
[ ] sc delete dmwappushservice | |
[ ] echo “” > C:\ProgramData\Microsoft\Diagnosis\ETLLogs\AutoLogger\AutoLogger-Diagtrack-Listener.etl | |
[ ] reg add “HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection” /v AllowTelemetry /t REG_DWORD /d 0 /f |
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 | |
$xls = new Excel_Writer_Workbook('prueba.xls'); | |
//creamos nuestro estilo para titulos | |
$h1 = $xls->addFormat(array( | |
'bold' => 1, | |
'size' => 8, | |
'fontFamily' => 'Tahoma', | |
'border' => 1, | |
'align' => 'center' | |
)); |
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 | |
$excel = new PHPExcel(); | |
//Usamos el worsheet por defecto | |
$sheet = $excel->getActiveSheet(); | |
//creamos nuestro array con los estilos para titulos | |
$h1 = array( | |
'font' => array( | |
'bold' => true, | |
'size' => 8, | |
'name' => 'Tahoma' |
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 | |
$xls = new Excel_Writer_Workbook('prueba.xls'); | |
//creamos nuestro estilo para títulos | |
$h1 = $xls->addFormat(); | |
$h1->setBold(); | |
$h1->setSize(8); | |
$h1->setFontFamily('Tahoma'); | |
$h1->setBorder(1); | |
$h1->setAlign('center'); | |
//creamos nuestro worksheet |
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 | |
$excel = new PHPExcel(); | |
//Usamos el worsheet por defecto | |
$sheet = $excel->getActiveSheet(); | |
//Agregamos un texto a la celda A1 | |
$sheet->setCellValue('A1', 'Prueba'); | |
//Damos formato o estilo a nuestra celda | |
$sheet->getStyle('A1')->getFont()->setName('Tahoma')->setBold(true)->setSize(8); | |
$sheet->getStyle('A1')->getBorders()->applyFromArray(array('allBorders' => 'thin')); | |
$sheet->getStyle('A1')->getAlignment()->setVertical('center')->setHorizontal('center'); |
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 | |
class Excel | |
{ | |
/** @var PHPExcel */ | |
protected $PHPExcel; | |
/** @var string */ | |
protected $title; |
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
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type="text/javascript"></script> | |
<script> | |
$(function(){ | |
/** | |
* Algoritmo para validar cedulas de Ecuador | |
* @Author : Victor Diaz De La Gasca. | |
* @Fecha : Quito, 15 de Marzo del 2013 | |
* @Email : [email protected] | |
* @Pasos del algoritmo |