- Fork del repositorio
- Clonar el repositorio
- Actualizar la rama master
- Crear una rama
- Hacer los cambios
- Hacer un Pull Request
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 | |
echo 'Memoria Inicial: ' . memory_get_usage() . "\n"; | |
$arr = array(); | |
for($i = 0; $i < 1000000; $i++) | |
$arr[] = md5($i); | |
echo "\n*-----* Imprimiendo las primeras 5 posiciones *-----*\n"; |
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
//Ambos ejemplos fueron tomados para capturar error en Node.JS y lo dejo aquí por si acaso se me olvida | |
//Una función que sirve para ver la estructura de la variable error(objeto) que se captura en el catch puede ser: | |
.catch(function(error) { | |
var salida = ''; | |
for (var p in error) salida += p + ': ' + error[p] + '\n'; | |
console.log(salida); | |
}) |
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
package javascriptenjava_2; | |
import javax.script.Invocable; | |
import javax.script.ScriptEngine; | |
import javax.script.ScriptEngineManager; | |
import javax.script.ScriptException; | |
/** | |
* @author gutoccs | |
*/ |
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
package javascriptenjava_1; | |
import javax.script.ScriptEngine; | |
import javax.script.ScriptEngineManager; | |
import javax.script.ScriptException; | |
/** | |
* @author gutoccs | |
*/ | |
public class JavaScriptEnJava_1 { |
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; | |
//Clase necesaria para poder utilizar iTextSharp | |
using System.IO; | |
//Clases necesarias de iTextSharp | |
using iTextSharp; | |
using iTextSharp.text.pdf; | |
using iTextSharp.text; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Cálculo de los números primos que hay hasta un número n</title> | |
</head> | |
<body> | |
<?php | |
$inicio = microtime(true); | |
$numero = 0; |