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
import { fromEvent } from "rxjs"; | |
const onKeyDown$ = fromEvent(document , "keydown") | |
const observadorMouse = { | |
next: (event) =>{ | |
console.log(event.key) | |
} | |
} |
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
import { Observable } from 'rxjs' | |
//desclaracion del observable | |
//parametro: un suscriptor | |
const observableAlfa$ = new Observable(subscriber => { | |
//el observable emite una información al suscriptor | |
subscriber.next(1) | |
subscriber.next(2) | |
// con complete, se da por completado el flujo de informacion y a partir de aqui no se emite mas |
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
let myArray: Array<Post> = [{ | |
id: 1, | |
text: "Carlos" | |
}, | |
{ | |
id: 2, | |
text: "Zarta" | |
} | |
]; | |
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 App() { | |
const title:string = "Blog post"; | |
const loading: boolean = false; | |
const showComments: boolean = true; | |
let myArray: Array<Post> = [{ | |
id: 1, | |
text: "Carlos" | |
}, |
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 org.example.util; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.SQLException; | |
public class ConexionSingleton { | |
private static String url = "jdbc:mysql://localhost:3306/java_curso"; | |
private static String username="root"; | |
private static String password=""; |
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
go build -o structura_inherit main. Go | |
./structura_inherit |
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
go build -o structura path/to/main.go |
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
o run main.go 204 |
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
const juegos = ['Assasins Creed ', 'GTA', 'Streets of Rage', 'AOE', 'BattleField']; | |
export default juegos; |
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
const juegos = ['Assasins Creed ', 'GTA', 'Streets of Rage', 'AOE', 'BattleField']; | |
export default juegos; |
NewerOlder