Skip to content

Commit dcaebbd

Browse files
authored
Merge branch 'mouredev:main' into main
2 parents 4b96415 + b01c6aa commit dcaebbd

File tree

85 files changed

+13875
-1240
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+13875
-1240
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
2828
## Corrección y próximo ejercicio
2929

30-
> #### Lunes 2 de septiembre de 2024 a las 20:00 (hora España) desde **[Twitch](https://twitch.tv/mouredev)**
31-
> #### Consulta el **[horario](https://discord.gg/tKNfr5p8?event=1275291456201953441)** por país y crea un **[recordatorio](https://discord.gg/tKNfr5p8?event=1275291456201953441)**
30+
> #### Lunes 9 de septiembre de 2024 a las 20:00 (hora España) desde **[Twitch](https://twitch.tv/mouredev)**
31+
> #### Consulta el **[horario](https://discord.gg/7A9NDvrb?event=1277739431696138385)** por país y crea un **[recordatorio](https://discord.gg/7A9NDvrb?event=1277739431696138385)**
3232
3333
## Roadmap
3434

@@ -69,7 +69,8 @@
6969
|32|[BATALLA DEADPOOL Y WOLVERINE](./Roadmap/32%20-%20BATALLA%20DEADPOOL%20Y%20WOLVERINE/ejercicio.md)|[📝](./Roadmap/32%20-%20BATALLA%20DEADPOOL%20Y%20WOLVERINE/python/mouredev.py)|[▶️](https://youtu.be/u2Tn2H3pqjw)|[👥](./Roadmap/32%20-%20BATALLA%20DEADPOOL%20Y%20WOLVERINE/)
7070
|33|[RESCATANDO A MICKEY](./Roadmap/33%20-%20RESCATANDO%20A%20MICKEY/ejercicio.md)|[📝](./Roadmap/33%20-%20RESCATANDO%20A%20MICKEY/python/mouredev.py)|[▶️](https://youtu.be/Bo9Cp3N68C0)|[👥](./Roadmap/33%20-%20RESCATANDO%20A%20MICKEY/)
7171
|34|[ÁRBOL GENEALÓGICO DE LA CASA DEL DRAGÓN](./Roadmap/34%20-%20ÁRBOL%20GENEALÓGICO%20LA%20CASA%20DEL%20DRAGÓN/ejercicio.md)|[📝](./Roadmap/34%20-%20ÁRBOL%20GENEALÓGICO%20LA%20CASA%20DEL%20DRAGÓN/python/mouredev.py)|[▶️](https://youtu.be/GAHBOAzgE2w)|[👥](./Roadmap/34%20-%20ÁRBOL%20GENEALÓGICO%20LA%20CASA%20DEL%20DRAGÓN/)
72-
|35|[REPARTIENDO LOS ANILLOS DE PODER](./Roadmap/35%20-%20REPARTIENDO%20LOS%20ANILLOS%20DE%20PODER/ejercicio.md)|[🗓️ 02/09/24](https://discord.gg/tKNfr5p8?event=1275291456201953441)||[👥](./Roadmap/35%20-%20REPARTIENDO%20LOS%20ANILLOS%20DE%20PODER/)
72+
|35|[REPARTIENDO LOS ANILLOS DE PODER](./Roadmap/35%20-%20REPARTIENDO%20LOS%20ANILLOS%20DE%20PODER/ejercicio.md)|[📝](./Roadmap/35%20-%20REPARTIENDO%20LOS%20ANILLOS%20DE%20PODER/python/mouredev.py)|[▶️](https://youtu.be/10i2dnaMLj8)|[👥](./Roadmap/35%20-%20REPARTIENDO%20LOS%20ANILLOS%20DE%20PODER/)
73+
|36|[EL SOMBRERO SELECCIONADOR](./Roadmap/36%20-%20EL%20SOMBRERO%20SELECCIONADOR/ejercicio.md)|[🗓️ 09/09/24](https://discord.gg/7A9NDvrb?event=1277739431696138385)||[👥](./Roadmap/36%20-%20EL%20SOMBRERO%20SELECCIONADOR/)
7374

7475
## Cursos en YouTube
7576

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
//Reto #00 SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO;
2+
3+
4+
public class Ainoaran {
5+
6+
public static void main(String[] args) {
7+
8+
//URL Sitio oficial JAVA: https://docs.oracle.com/javase/8/docs/api/
9+
10+
/*Comentarios:
11+
- Los comentarios de una sola línea se realizan utilizando "//"
12+
- Los comentarios en varias líneas se inicializan con "/*" y se finaliza con '* /'
13+
*/
14+
15+
//VARIABLES:
16+
17+
String variable = "Es una variable";
18+
final String constante = "Es una constante";
19+
20+
//DATOS PRIMITIVOS:
21+
22+
// Byte: Ocupa 8 bits (1 byte). Valores de -128 a 127 (inclusive).
23+
byte age = 25;
24+
25+
// Short: Ocupa 16 bits (2 bytes). Valores de -32,768 a 32,767 (inclusive).
26+
short year = 2024;
27+
28+
// int: Numero entero. Ocupa 32 bits (4 bytes). Valores de -2,147,483,648 a 2,147,483,647 (inclusive).
29+
int population = 8200000 ;
30+
31+
// long: Número entero largo. Ocupa 64 bits (8 bytes). Valores de -9,223,372,036,854,775,808 a 9,223,372,036,854,775,807 (inclusive).
32+
long distance= 1000000000L;
33+
34+
// float: Número de punto flotante de precisión simple. Ocupa 32 bits (4 bytes).
35+
float height = 1.75f;
36+
37+
// double: Número de punto flotante de doble precisión. Ocupa 64 bits (8 bytes).
38+
double decimal = 6371.0;
39+
40+
// char: Un solo carácter Unicode. Ocupa 16 bits (2 bytes).
41+
char character = 'A';
42+
43+
// boolean: Valor booleano, true o false. Ocupa 1 bit.
44+
boolean isAdult = true;
45+
46+
// Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
47+
48+
System.out.println("¡Hola, Java!");
49+
}
50+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
public class martinaq {
2+
3+
// Static variables have to be declared before any instance and can be shared among other instances.
4+
static final String myVar = "This is a const variable in Java";
5+
public static void main(String[] args) {
6+
/*
7+
* EJERCICIO:
8+
* - Crea un comentario en el código y coloca la URL del sitio web oficial del
9+
* lenguaje de programación que has seleccionado.
10+
* - Representa las diferentes sintaxis que existen de crear comentarios
11+
* en el lenguaje (en una línea, varias...).
12+
* - Crea una variable (y una constante si el lenguaje lo soporta).
13+
* - Crea variables representando todos los tipos de datos primitivos
14+
* del lenguaje (cadenas de texto, enteros, booleanos...).
15+
* - Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
16+
*
17+
* ¿Fácil? No te preocupes, recuerda que esta es una ruta de estudio y
18+
* debemos comenzar por el principio.
19+
*/
20+
21+
/* 1. Crea un comentario en el código y coloca la URL del sitio web oficial del
22+
* lenguaje de programación que has seleccionado. */
23+
24+
// https://www.java.com/es/
25+
26+
/* 2. Representa las diferentes sintaxis que existen de crear comentarios
27+
* en el lenguaje (en una línea, varias...). */
28+
29+
/* Comentario en
30+
* varias
31+
* lineas. */
32+
33+
// 3. Crea una variable (y una constante si el lenguaje lo soporta).
34+
String username = "martin-aq";
35+
System.out.println(username);
36+
37+
// 4. Crea variables representando todos los tipos de datos primitivos.
38+
boolean a = true; // 1 bit
39+
char b = '$'; // 2 bytes, char uses 2 bytes due to the usage of Unicode.
40+
byte c = 120; // 1 byte
41+
short d = 250; // 2 bytes
42+
int e = 36432; // 4 bytes
43+
long f = 9223372036854775L; // 8 bytes
44+
float g = 36739.24f; // 4 bytes, same as int data type
45+
double h = 9223372036854775.12d; // 8 bytes, same as long data type
46+
47+
System.out.printf("boolean: %s\nchar: %c\nbyte: %d\nshort: %d\nint: %d\nlong: %d\nfloat: %f\ndouble: %f\n", a,b,c,d,e,f,g,h);
48+
49+
// 5. Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
50+
System.out.println("Hello Java!");
51+
}
52+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
/*
2+
* ¿Preparad@ para aprender o repasar el lenguaje de programación que tú quieras?
3+
* - Recuerda que todas las instrucciones de participación están en el
4+
* repositorio de GitHub.
5+
*
6+
* Lo primero... ¿Ya has elegido un lenguaje?
7+
* - No todos son iguales, pero sus fundamentos suelen ser comunes.
8+
* - Este primer reto te servirá para familiarizarte con la forma de participar
9+
* enviando tus propias soluciones.
10+
*
11+
* EJERCICIO:
12+
* - Crea un comentario en el código y coloca la URL del sitio web oficial del
13+
* lenguaje de programación que has seleccionado.
14+
* - Representa las diferentes sintaxis que existen de crear comentarios
15+
* en el lenguaje (en una línea, varias...).
16+
* - Crea una variable (y una constante si el lenguaje lo soporta).
17+
* - Crea variables representando todos los tipos de datos primitivos
18+
* del lenguaje (cadenas de texto, enteros, booleanos...).
19+
* - Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
20+
*
21+
* ¿Fácil? No te preocupes, recuerda que esta es una ruta de estudio y
22+
* debemos comenzar por el principio.
23+
*/
24+
25+
// Documentacion JavaScript: https://developer.mozilla.org/es/docs/Web/JavaScript
26+
/*
27+
De esta forma se
28+
pueden hacer comentarios
29+
en varias lineas
30+
*/
31+
// Y este seria un comentario de una sola linea
32+
33+
34+
var nombre = 'Jorge'
35+
const PI = 3.1416
36+
// number
37+
const entero = 1
38+
const puntoFlotante = 9.7
39+
// string
40+
const apellido = 'Miranda'
41+
// boolean
42+
const suscrito = true
43+
const noSuscrito = false
44+
// object
45+
const persona = {
46+
nombre: 'Jorge',
47+
apellido: 'Miranda',
48+
edadl: 21
49+
}
50+
// array
51+
const lenguajesProgramacion = ['JavaScript', 'Java', 'Python', 'C']
52+
// bigint
53+
const x = 2n ** 65n
54+
// symbol
55+
const symbol = Symbol('Hola')
56+
// unndefined
57+
const undefined = undefined
58+
59+
console.log('Hola, JavaScript')
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
//It seems to me that there is no official language page, however I leave two reference links
2+
//The first to a documentation of language as such: https://lenguajejs.com/
3+
/*The second is an ECMAScript documentation, the standard set for the language: https://262.ecma-international.org/12.0/ Note: There is a more current specification: https://ecma-international.org/publications-and-standards/standards/ecma-262/ */
4+
5+
// One-line comments
6+
/* Comments
7+
of
8+
many lines */
9+
10+
var num; /* It declares a variable, is deprecated as its scope definition gives way to potential errors. Has a defined scope at the function level */
11+
12+
13+
let lang; /* It is most commonly used and has a defined scope at the block level.
14+
Unlike the var keyword, when declaring variables using let in the global context, variables will not
15+
attach to the window object as they do with var. */
16+
17+
const MIN_VA=0; /* Like the previous one, it has a scope defined in block, but it declares a constant and must be initialized at some value. By convention, capital letters are usually used */
18+
19+
20+
// Primitive Types or Primitive Values
21+
22+
let hello='Hi Girl!'; // string type
23+
console.log(`String type: ${hello}`);
24+
25+
let x_coord=100; // number type
26+
console.log('Number type: ', num);
27+
28+
let bool=true; // boolean type
29+
console.log('Boolean type: ', bool);
30+
31+
let stack=[0,1,2,3,4,5,6]; // array type
32+
console.log('Array type: ', stack);
33+
34+
let obj={
35+
name:'Niko',
36+
age:41,
37+
profession: 'Writer & Web Developer',
38+
39+
// method
40+
greetings: function(){
41+
console.log(`Hello I am ${this.name} and it's a pleasure to start and share this roadmap with you`) }
42+
} // object type
43+
console.log('Object type: ', obj);
44+
obj.greetings();
45+
46+
let obj2=null; // null type
47+
/* Representing the absence of a value helps to handle situations where a value is not available or has not been intentionally defined. */
48+
console.log('Null type: ', obj2);
49+
50+
let obj3; // undefined type
51+
/* undefined is a value that indicates that a variable has been declared but not initialized. */
52+
console.log('Undefined type: ', obj3);
53+
54+
let syn=Symbol('syn'); // symbol type
55+
console.log('Symbol type: ', syn);// Symbol can't be converted to string
56+
/* Symbols can be used to prevent object collisions, such as to create hidden non-enumerable properties on objects or private methods in a class */
57+
58+
let amount=BigInt(3783787487877877887)*BigInt(2); //bigint type
59+
console.log(`BigInt type: ${amount}`);
60+
/* Using BigInt is especially useful in situations where accuracy is required in calculations with large integers, such as in financial or crypto applications. */
61+
62+
63+
/* Typeof is an operator that we can use to figure out a type or make type comparisons */
64+
console.log('Type of syn:', typeof syn);
65+
console.log('Is amount of bigint type:', (typeof amount == "bigint"));
66+
67+
// short for console.log()
68+
let log=console.log.bind(console);
69+
70+
// mapping to a previously declared variable
71+
lang='JavaScript';
72+
73+
//print in console
74+
log(`Hello, ${lang}`);
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
//comentario en una sola linea
2+
3+
// link a la documentacion de javascript https://developer.mozilla.org/en-US/docs/Web/JavaScript
4+
5+
/**
6+
* comentario de varias
7+
* lineas de codigo
8+
*/
9+
10+
//esto es una variable
11+
12+
var nombre = "Nicolas";
13+
let apellido = "Rey";
14+
15+
// esto es una constante
16+
17+
const lenguaje = "Javascript";
18+
19+
// string
20+
21+
const string = "soy un string";
22+
23+
//boolean
24+
25+
const booleanTrue = true;
26+
const booleasFalse = false;
27+
28+
//number y decimal
29+
30+
const number = 1;
31+
const decimal = 1.1;
32+
33+
//array
34+
35+
const array = ["esto", "es", "un", "array", 1, 2, 3];
36+
37+
//objeto
38+
39+
const objeto = {
40+
nombre:"Nicolas",
41+
apellido:"Rey",
42+
};
43+
44+
console.log(`¡Hola, ${lenguaje}! Soy ${nombre} ${apellido}.`);
45+
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
fun main() {
2+
println("Hello World!")
3+
//https://kotlinlang.org/
4+
//comentario una linea
5+
/*
6+
Comentario
7+
de varias
8+
lineas
9+
*/
10+
var numeroVariable : Int = 1
11+
val numeroConstante : Int = 1
12+
13+
//Datos primitivos
14+
val entero : Int = 1
15+
val flotante : Float = 1f
16+
val largo : Long = 1
17+
val letra : Char = 'a'
18+
val cadena : String = "kotlin"
19+
val booleano : Boolean = true
20+
val arreglo = arrayOf("esto", "es", "un", "arreglo")
21+
22+
//Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
23+
println("Hola! $cadena")
24+
25+
26+
}
27+
/*
28+
* EJERCICIO:
29+
* - Crea un comentario en el código y coloca la URL del sitio web oficial del
30+
* lenguaje de programación que has seleccionado.
31+
* - Representa las diferentes sintaxis que existen de crear comentarios
32+
* en el lenguaje (en una línea, varias...).
33+
* - Crea una variable (y una constante si el lenguaje lo soporta).
34+
* - Crea variables representando todos los tipos de datos primitivos
35+
* del lenguaje (cadenas de texto, enteros, booleanos...).
36+
* - Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
37+
*
38+
*/
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#https://www.python.org/
2+
3+
#Esto es un comentario en una linea
4+
5+
"""
6+
Esto es un cometario en un bloque utilizando comillas dobles
7+
"""
8+
9+
'''
10+
Esto es un cometario en un bloque utilizando comillas simples
11+
'''
12+
13+
my_variable = "Mi Variable"
14+
15+
#En Python no extinten las constantes, pero se pueden hacer por convencion
16+
MY_CONSTANT = "Mi Constante"
17+
18+
my_int = 10
19+
my_float = 2.2
20+
my_bool = True
21+
my_bool = False
22+
my_str = "Cadena de Texto"
23+
24+
print("¡Hola, Python!")
25+
26+
print(type(my_int))
27+
print(type(my_float))
28+
print(type(my_bool))
29+
print(type(my_str))

0 commit comments

Comments
 (0)