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[] PalabrasCaracteres(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
ORG $0000 | |
P RMB 2 | |
Q RMB 2 | |
R RMB 2 | |
S RMB 2 | |
ORG $C000 | |
LDAA P | |
LDAB Q | |
ABA |
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
*Cuente los numeros negativos y los pares. | |
ORG $0000 | |
Dirini RMB 2 | |
DirFin RMB 2 | |
Neg RMB 1 | |
Par RMB 1 | |
ORG $C000 | |
LDX DirIni |
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
* Dado un numero entero sin signo de 8 bits, informar: | |
* centenas, decenas y unidades en tres posiciones de memoria | |
ORG $0000 | |
num RMB 1 * el mister en cuestion | |
cen RMB 1 | |
dec RMB 1 | |
uni RMB 1 | |
ORG $C000 |
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
*Encontrar un numero en un vector e indicar en que posicion de memoria esta. | |
ORG $0000 | |
Dirfin RMB 2 | |
Cant RMB 1 | |
Dato RMB 1 | |
Memoria RMB 2 | |
ORG $C000 | |
LDX DirFin |
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
* Dado un vector de numeros signados del que se conoce direccion inicial (dirIni) | |
* y la cantidad de elementos (cant) obtener la suma de los positivos (sumap) | |
* la cantidad de impares (cimpar), y la posición del primer cero (ppc) | |
ORG $0000 | |
dirIni RMB 2 | |
cant RMB 1 * cantidad de elementos del vector | |
sumap RMB 2 * suma de los positivos | |
cimpar RMB 1 * cantidad de impares | |
ppc RMB 1 * posicion dentro del vector (subindice) del primer cero | |
* si en lugar de la posicion (subindice) estuviera pidiendo direccion |
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] = biseccion(funcion, A, B, Tolerancia, Iteracionesmaximas) | |
raizaproximada = A; // Esto es para que en la primera iteracion no de error. | |
iteraciones = 0; | |
while 1 | |
raizaproximadaanterior = raizaproximada; | |
raizaproximada = (A+B)/2; | |
errorabsoluto = abs((raizaproximada-raizaproximadaanterior)/raizaproximada)*100; | |
r = funcion(raizaproximada); | |
a = funcion(A); // Evaluo A en la funcion, y lo guardo en a. | |
b = funcion(B); // Evaluo B en la funcion y lo guardo en b. |
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 Aleatorio | |
{ | |
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
Guia para generar imagen de Docker a partir del contenedor y subirla a DockerIO | |
1) docker commit containerid | |
2) docker tag imageid nombreaelegir | |
3) docker login --u | |
4) Si hay error con timeout despues de introducir password sudo apt install gnupg2 pass y reintentar | |
5) docker build -t usuariodocker/nombreimagen:latest . | |
6) docker push usuariodocker/nombreimagen:latest |
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
public class FormatoAmigable | |
{ | |
/** Limites https://cs.fit.edu/~ryan/java/language/java-data.html | |
* Calculadora https://www.dcode.fr/big-numbers-division | |
* MAX_INT = 2147483647 | |
* MAX_LONG = 9223372036854775807 | |
* Segundos en un ano = 31536000 | |
* Cantidad max anos (int) 68 | |
* Cantidad max anos (long) 292471208677 | |
*/ |
NewerOlder