Skip to content

Commit 55bf89c

Browse files
authored
Merge branch 'mouredev:main' into main
2 parents c6a0aa1 + d2cdcaf commit 55bf89c

File tree

364 files changed

+49792
-1859
lines changed

Some content is hidden

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

364 files changed

+49792
-1859
lines changed

README.md

Lines changed: 5 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 21 de octubre de 2024 a las 20:00 (hora España) desde **[Twitch](https://twitch.tv/mouredev)**
31-
> #### Consulta el **[horario](https://discord.gg/K4SGshHf?event=1294092672793051177)** por país y crea un **[recordatorio](https://discord.gg/K4SGshHf?event=1294092672793051177)**
30+
> #### Lunes 11 de noviembre de 2024 a las 20:00 (hora España) desde **[Twitch](https://twitch.tv/mouredev)**
31+
> #### Consulta el **[horario](https://discord.gg/bDgt5Zjk?event=1300807174523457676)** por país y crea un **[recordatorio](https://discord.gg/bDgt5Zjk?event=1300807174523457676)**
3232
3333
## Roadmap
3434

@@ -76,7 +76,9 @@
7676
|39|[BATMAN DAY](./Roadmap/39%20-%20BATMAN%20DAY/ejercicio.md)|[📝](./Roadmap/39%20-%20BATMAN%20DAY/python/mouredev.py)|[▶️](https://youtu.be/Lmj5enZG5pg)|[👥](./Roadmap/39%20-%20BATMAN%20DAY/)
7777
|40|[FORTNITE RUBIUS CUP](./Roadmap/40%20-%20FORTNITE%20RUBIUS%20CUP/ejercicio.md)|[📝](./Roadmap/40%20-%20FORTNITE%20RUBIUS%20CUP/python/mouredev.py)|[▶️](https://youtu.be/UlWtFvLLSXw)|[👥](./Roadmap/40%20-%20FORTNITE%20RUBIUS%20CUP/)
7878
|41|[CAMISETA RAR](./Roadmap/41%20-%20CAMISETA%20RAR/ejercicio.md)|[📝](./Roadmap/41%20-%20CAMISETA%20RAR/python/mouredev.py)|[▶️](https://youtu.be/QXFrWIFCkGY)|[👥](./Roadmap/41%20-%20CAMISETA%20RAR/)
79-
|42|[TORNEO DRAGON BALL](./Roadmap/42%20-%20TORNEO%20DRAGON%20BALL/ejercicio.md)|[🗓️ 21/10/24](https://discord.gg/K4SGshHf?event=1294092672793051177)||[👥](./Roadmap/42%20-%20TORNEO%20DRAGON%20BALL/)
79+
|42|[TORNEO DRAGON BALL](./Roadmap/42%20-%20TORNEO%20DRAGON%20BALL/ejercicio.md)|[📝](./Roadmap/42%20-%20TORNEO%20DRAGON%20BALL/python/mouredev.py)|[▶️](https://youtu.be/SgwX7ISEkvM)|[👥](./Roadmap/42%20-%20TORNEO%20DRAGON%20BALL/)
80+
|43|[GIT GITHUB CLI](./Roadmap/43%20-%20GIT%20GITHUB%20CLI/ejercicio.md)|[📝](./Roadmap/43%20-%20GIT%20GITHUB%20CLI/python/mouredev.py)|[▶️](https://youtu.be/Ct4GKpbqflI)|[👥](./Roadmap/43%20-%20GIT%20GITHUB%20CLI/)
81+
|44|[CUENTA ATRÁS MOUREDEV PRO](./Roadmap/44%20-%20CUENTA%20ATRÁS%20MOUREDEV%20PRO/ejercicio.md)|[🗓️ 11/11/24](https://discord.gg/bDgt5Zjk?event=1300807174523457676)||[👥](./Roadmap/44%20-%20CUENTA%20ATRÁS%20MOUREDEV%20PRO/)
8082

8183
## Cursos en YouTube
8284

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Sitio oficial Dart: https://dart.dev/
2+
3+
// Esto es un comentario en una linea
4+
5+
final String test = ''; // Esto es un comentario de una linea, también...
6+
7+
/* Esto es un comentario
8+
en varias lineas*/
9+
10+
/// Esto es un comentario de documentación, ejemplo: [arg] representa el argumento
11+
void doNothing(String arg) {}
12+
13+
/**
14+
Este también es para documentación
15+
cuando es muy extensa.
16+
...
17+
*/
18+
19+
var age = 32; //Variable
20+
21+
const name = 'Misael'; //Constante
22+
23+
//Datos Primitivos
24+
int fingersCant = 20;
25+
double pi = 3.1416;
26+
String language = 'dart';
27+
bool isEasy = false;
28+
29+
void main(List<String> arguments) {
30+
print('Hola, $language');
31+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
-- Este es un comentario de una línea
2+
3+
{-
4+
Este es un comentario
5+
que abarca varias líneas.
6+
-}
7+
8+
{-
9+
{- Comentario anidado -}
10+
-}
11+
12+
{-
13+
Sitio oficial: https://elm-lang.org/
14+
-}
15+
16+
{-
17+
Las variables en Elm son inmutables
18+
19+
nombreVariable : Tipo
20+
nombreVariable = valor
21+
-}
22+
23+
import Html
24+
25+
pi : Float
26+
pi = 3.141516
27+
28+
nombre : String
29+
nombre = "Elm"
30+
31+
-- Si no se proporciona un tipo Elm infiere el tipo
32+
33+
entero = 5
34+
35+
numeros = [1, 2, 3, 4, 5] -- Lista
36+
persona = { nombre = "Alice", edad = 30 } -- Registro
37+
38+
main =
39+
Html.text "¡Hola, Elm!"
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import gleam/io
2+
3+
// Los comentario en Gleam son lineas simples precedidas por //
4+
// Sitio oficial: https://gleam.run/
5+
// Documentación: https://gleam.run/documentation/
6+
7+
const lenguaje = "Gleam"
8+
9+
pub fn main() {
10+
// Declaración de variables con let
11+
let saludo = "¡Hola, "
12+
// Si una variable es asignada pero nunca se usa Gleam emitira un warning
13+
let _seignora = ""
14+
// Con el prefijo _ se ignora el warning
15+
16+
let _int = 1
17+
let _float = 1.0
18+
let _formato = 1_000_000
19+
let _binario = 0b1010
20+
let _octal = 0o10
21+
let _hexadecimal = 0x1a0
22+
let _string = "\"Hola Mundo\""
23+
let _unicode = "\u{1F600}"
24+
let _bool = True || False
25+
26+
io.println(saludo <> lenguaje <> "!")
27+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package main
2+
3+
// This is the golang programing page https://go.dev/
4+
5+
/*
6+
This is a multiline comment
7+
of this beautiful program :-D
8+
*/
9+
10+
import "fmt"
11+
12+
var myVariable = "Golang"
13+
14+
const myConstant = "My constant is here!"
15+
16+
var myString string = "String"
17+
var myBool bool = true
18+
var myInt int = 10
19+
var myFloat float32 = 3.14
20+
var myComplex complex64 = 2 + 3i
21+
var myAliasByte byte = 65
22+
var myAliasRune rune = '☺'
23+
24+
func main() {
25+
fmt.Println("Hola " + myVariable)
26+
fmt.Println(myConstant, myString, myBool, myInt, myFloat, myComplex, myAliasByte, myAliasRune)
27+
}
Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
// main: es el paquete principal del programa
2+
package main
3+
4+
// area de importación de paquetes
5+
import (
6+
"fmt" /* Paquete Format: usado para formatear texto e imprimirlo en consola.*/)
7+
8+
// Sitio oficial del lenguaje Go(Golang): https://go.dev/
9+
// Sitio oficial de ejemplos de uso del lenguaje: https://gobyexample.com/
10+
// Sitio oficial de codigo en linea: https://go.dev/play/
11+
12+
/*
13+
Comentarios de una línea(en go si se usan correctamente podemos generar la documentación a partir de estos)
14+
Para que la documentación se genere a partir de los comentarios debemos comentar de manera acertiva.
15+
Siempre se comienza por el nombre de la variable, constante, funcion, etc...
16+
17+
// firstName Variable que contiene el nombre del usuario.
18+
var firstName string = "Miguel"
19+
20+
21+
Los comentarios en bloque en go se usan sobre todo para bloques de código que no necesitemos usar en el momento
22+
pero estos bloques de código no deben quedar ahí como comentarios sin usar, esto haría el código muy sucio.
23+
*/
24+
// main Es la función principal del programa
25+
func main() {
26+
27+
// firstName declaración de variables simples
28+
var firstName string
29+
30+
// Asignación del valor de la variable
31+
firstName = "Miguel"
32+
33+
// lastName declaración y asignación de variables simples en la misma línea.
34+
var lastName string = "Portillo"
35+
36+
// correo delcaración y asignacion de una variable usando la asignación de variable corta(go infiere el tipo de dato)
37+
email := "miguelportillo@gmail.com"
38+
39+
// declaracion de variables multiples y con variedad de tipos de datos, (Age es Int y birthDate es un String)
40+
var age, birthDate = 31, "13 - 10 - 1993"
41+
42+
/*
43+
A diferencia de las variables que se puede declarar y asignar su valor con solo una asignación corta (:=)
44+
las cosntantes se declaran con la palabra reservada const
45+
*/
46+
// isDeveloper declaración de constantes simple
47+
const isDeveloper = true
48+
49+
/*
50+
Aquí se usa iota para asignar un entero a cada més, que va desde 1 a 12. Iota es un metodo para asignar rapidamente
51+
el valor a las constantes si se quieren usar números.
52+
*/
53+
// declaración de constantes en bloque
54+
const (
55+
enero = iota + 1 // 1
56+
febrero // 2
57+
marzo // 3
58+
abril // 4
59+
mayo // 5
60+
junio // 6
61+
julio // 7
62+
agosto // 8
63+
septiembre // 9
64+
octubre // 10
65+
noviembre // 11
66+
diciembre // 12
67+
)
68+
69+
// Tipos de datos en go.
70+
71+
// Booleanos(Valores 1 y 0, o Verdadero y falso)
72+
var a bool = false
73+
74+
// Los tipos de datos "UINT" aunque son enteros solo almacenan valores positivos.
75+
76+
// u8 Variable uint8 Almacena desde 0 a 255
77+
var u8 uint8 = 255
78+
79+
// u16 Variable uint16 Alamcane de 0 a 65535
80+
var u16 uint16 = 65535
81+
82+
// u32 Almacena desde 0 a 4294967295
83+
var u32 uint32 = 4294967295
84+
85+
// u64 Alamacena de 0 a 18446744073709551615
86+
var u64 uint64 = 18446744073709551615
87+
88+
// u Se ajusta a los bits del sistema operativo, es decir que si es de 32Bits(Raro hoy dia) se ajusta a este, lo mismo para 64bits.
89+
var u uint = 18446744073709551615
90+
91+
// Los tipos Int permiten valores tanto negativos coomo positivos.
92+
93+
// i8 Almacena desde -128 hasta 127
94+
var i8 int8 = -128
95+
96+
// i16 Alamacena desde -32768 hasta 32767
97+
var i16 int16 = -32768
98+
99+
// i32 Alamacena desde -2147483648 hasta 2147483647
100+
var i32 int32 = -2147483648
101+
102+
// i64 Alamacena desde -9223372036854775807 hasta 9223372036854775807
103+
var i64 int64 = -9223372036854775808
104+
105+
// i Alamacena desde - hasta
106+
var i int = -9223372036854775808
107+
108+
/*
109+
Almacenar un valor mayor es overflow(Desbordamiento).
110+
Usar un tipo int que toma como referencia los bits del sistema operativo para asignar el valor: 64bits es igual a int64. Esto no es recomendable sobre todo si es una variable que almacena por ejemplo la edad, para eso el uint8 es más que suficiente.
111+
*/
112+
113+
// Imprimiendo valores - Nota: Las variable declaradas deben ser usadas, en GO no se puede y no se debe declarar sin usar.
114+
/*
115+
La unica forma de declararlas es con el ID Blank que se hace con un guión bajo.
116+
se usa cuando queres tener la variable sin comentarla porque se usara más tarde,
117+
pero solo las variables que estamos seguros de usar.
118+
*/
119+
// Alias de los tipos de datos.
120+
// b byte:es alias para uint8 (0 a 255)
121+
var b byte = 99
122+
123+
// Nota: para obtener valores unicode los datos van entre comillas simples.
124+
// r rune: alias para int32 o unicode
125+
var r rune = -214748364
126+
var r2 rune = 'a' // valor unicode = 97
127+
128+
// f32 Float32 es una variable de números decimales pero este solo deja un digito luego de la coma.
129+
var f32 float32 = 990.3
130+
131+
// f64 Float64 al contrario qe float32 si toma multiples digitos luego de la coma.
132+
var f64 float64 = 990.325
133+
134+
var chain string = "¡Hola!"
135+
136+
// impresión de la primera variable nombre.
137+
fmt.Println("nombre :", firstName, "Apellido: ", lastName, "Edad: ", age, "Correo: ", email, "Nacimineto: ", birthDate)
138+
139+
// Impriendo valores de algunas constantes.
140+
fmt.Println("enero: ", enero, "agosto: ", agosto, "diciembre: ", diciembre)
141+
142+
/*
143+
Imprimiendo con Printf se pueden ver los placeholders(Verbos) de las variables y
144+
datos impresos(incluso su dirección en memoria.)
145+
estas impresiones se pueden y deben simplificar en una funcion para que las imprima una a una,
146+
pero no es para este primer objetivo de la ruta.
147+
*/
148+
fmt.Printf("Tipo de dato: %T, Valor alamacenado: %v\n", a, a)
149+
fmt.Printf("Tipo de dato: %T, Valor alamacenado: %v\n", u8, u8)
150+
fmt.Printf("Tipo de dato: %T, Valor alamacenado: %v\n", u16, u16)
151+
fmt.Printf("Tipo de dato: %T, Valor alamacenado: %v\n", u32, u32)
152+
fmt.Printf("Tipo de dato: %T, Valor alamacenado: %v\n", u64, u64)
153+
fmt.Printf("Tipo de dato: %T, Valor alamacenado: %v\n", u, u)
154+
fmt.Printf("Tipo de dato: %T, Valor alamacenado: %v\n", i8, i8)
155+
fmt.Printf("Tipo de dato: %T, Valor alamacenado: %v\n", i16, i16)
156+
fmt.Printf("Tipo de dato: %T, Valor alamacenado: %v\n", i32, i32)
157+
fmt.Printf("Tipo de dato: %T, Valor alamacenado: %v\n", i64, i64)
158+
fmt.Printf("Tipo de dato: %T, Valor alamacenado: %v\n", i, i)
159+
fmt.Printf("Tipo de dato: %T, Valor alamacenado: %v\n", r, r)
160+
fmt.Printf("Tipo de dato: %T, Valor alamacenado: %v\n", r2, r2)
161+
fmt.Printf("Tipo de dato: %T, Valor alamacenado: %v\n", b, b)
162+
fmt.Printf("Tipo de dato: %T, Valor alamacenado: %v\n", f32, f32)
163+
fmt.Printf("Tipo de dato: %T, Valor alamacenado: %v\n", f64, f64)
164+
fmt.Printf("Tipo de dato: %T, Valor alamacenado: %q\n", chain, chain)
165+
166+
fmt.Println("Hola, Go.")
167+
168+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
//https://www.java.com/es/
2+
3+
/**
4+
*
5+
* @author AdanSutro
6+
*/
7+
package algoritmos.retosprogramacion;
8+
9+
public class RetosProgramacion {
10+
11+
public static void main(String[] args) {
12+
13+
//datos primitivos
14+
int num=1;
15+
double num2=5;
16+
boolean opcion3=true;
17+
String Cybersutro;
18+
float num3= 6.79f;
19+
char adan;
20+
21+
//variable
22+
int cualquiernumero=100;
23+
24+
//variable constante EULER
25+
final double e = 2.71828;
26+
27+
System.out.println("Hola Euler " +e);
28+
29+
30+
31+
32+
33+
}
34+
35+
}

0 commit comments

Comments
 (0)