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
$config['base_url'] = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http"); | |
$config['base_url'] .= "://".$_SERVER['HTTP_HOST']; | |
if (!isset($_SERVER['ORIG_SCRIPT_NAME'])) | |
{ | |
$config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']); | |
} | |
else | |
{ | |
$config['base_url'] .= str_replace(basename($_SERVER['ORIG_SCRIPT_NAME']),"",$_SERVER['ORIG_SCRIPT_NAME']); | |
} |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace ConsoleApplication1 | |
{ | |
class Program // Clase Program. | |
{ | |
static void ComprobarCadena(string cadena){ |
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
* | |
* Para cambiar esta plantilla use Herramientas | Opciones | Codificación | Editar Encabezados Estándar | |
*/ | |
using System; | |
// Necesario para ArrayList. | |
using System.Collections; | |
// Necesario para List. | |
using System.Collections.Generic; | |
namespace ac_test |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace ConsoleApplication1 | |
{ | |
class Frase | |
{ | |
public static int PalabrasVocales(string frase) |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Collections; | |
using System.Threading; | |
namespace ConsoleApplication1 | |
{ | |
class Dado |
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
////Alumno: Juan, Tocino. | |
////Division: 4to 3ra. | |
////Profesor: Pablo, Aveldaño. | |
////Materia: Computacion. | |
////Objetivo: Game of Bejeweled. | |
////Lenguaje Utilizado: C# | |
////Copyright 1994 - 2011 © | |
//using System; | |
//using System.Collections.Generic; |
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
function [raizaproximada, iteraciones] = newton(funcion, aproximacioninicial, Tolerancia, Iteracionesmaximas) | |
aprox= aproximacioninicial; | |
while 1 | |
raizaproximada = aprox - funcion(aprox)/numderivative(funcion, aprox); | |
errorabsoluto = abs((raizaproximada-aprox)/raizaproximada)*100; | |
aprox = raizaproximada; | |
iteraciones = iteraciones + 1; | |
if(errorabsoluto < Tolerancia | iteraciones == Iteracionesmaximas ) then | |
break | |
end |
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
/* | |
Version de PHP 5.6 | |
Para que funcione esto se deben seguir estos pasos: | |
1) http://php.net/manual/es/ref.pdo-sqlsrv.php Descarga de SQLSRV 3.0 -> To download PHP driver for SQL -> Windows PHP driver ->SQLSRV32.EXE | |
2) Descomprimir los archivos en xampp\php\ext | |
3) En XAMPP -> Apache -> Config -> PHP.ini -> | |
extension=php_sqlsrv_56_ts.dll | |
extension=php_sqlsrv_56_nts.dll | |
extension=php_pdo_sqlsrv_56_ts.dll | |
extension=php_pdo_sqlsrv_56_nts.dll |
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
///Intercambio utilizando algebra de bool. | |
void intercambio_algebra_bool(int* a, int* b) | |
{ | |
*a ^= *b; | |
*b ^= *a; | |
*a ^= *b; | |
} | |
///Intercambio utilizando operadores += -= | |
void intercambio_aritmetica_mejorada(int* a, int* b) |
OlderNewer