This file contains hidden or 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 main() { | |
const args = process.argv.slice(2); | |
const argsObject = argsController(args, { | |
create: { | |
mainArgRequired: false, | |
requiredArgs: ["title", "price"], | |
resolver: createController | |
}, |
This file contains hidden or 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
# Esta secuencia de comandos sirve cuando tenemos un fork | |
# clonado en nuestro compu y queremos traernos cambios | |
# del repo original (el que forkeamos) | |
# Cuando clonamos un repo de GitHub, nuestro repo local | |
# queda enganchado al repo remoto para que podamos hacer pull y push | |
# Apenas clonamos se va a generar un remoto llamado "origin" | |
# Para hacer pull y push de otro repo remoto debemos agregar un nuevo remoto | |
# en este caso lo voy a llamar "repo-original" |
This file contains hidden or 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
// mi-playlist.js | |
const miPlaylist = [ | |
{ | |
titulo: "Una lista ordenada de datos", | |
url: "https://www.youtube.com/watch?v=Ac7_qK6OJEs&t=2s", | |
resumen: "En este video vamos a introducirnos al concepto de arrays en JavaScript.", | |
tags: ["JavaScript", "Arrays", "Programacion", "Apx"], | |
visto: true, | |
dificultad: 3 |
This file contains hidden or 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
// CONSIGNA: Completar la clase Banda | |
// en base a al test (testClaseBanda) | |
class Banda { | |
// Propiedad que almacena los miembros de la banda | |
members: string[]; | |
// definir albums - agregar una propiedad para los 谩lbumes de la banda | |
// Constructor que inicializa los miembros y los 谩lbumes | |
constructor(members: string[], albums: /*Tipo de Albums*/) { | |
this.members = members; |
This file contains hidden or 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
//ANTES DE EMPEZAR: | |
//Copia este c贸digo base completo en un nuevo archivo llamado desafio.js | |
//------------------------------------------------ -----------------------// | |
//JUGADORES: | |
// NO MODIFICAR LOS NOMBRES DE ESTOS OBJETOS | |
// (El test automatico les cambia los valores para probar que el resto | |
// de la logica funciona bien) |
This file contains hidden or 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
//ANTES DE EMPEZAR: | |
//Copia este c贸digo base completo en un nuevo archivo llamado desafio.js | |
//-----------------------------------------------------------------------// | |
//JUGADORES: | |
// NO MODIFICAR LOS NOMBRES DE ESTOS OBJETOS | |
// (El test autom谩tico les cambia los valores para probar que el resto | |
// de la l贸gica funcione bien) |
This file contains hidden or 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
* { | |
box-sizing: border-box; | |
line-height: calc(2px + 2ex + 2px); | |
} | |
body, | |
h1, | |
h2, | |
h3, | |
h4 { |
This file contains hidden or 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
{ | |
"routes": [ | |
{ | |
"src": "/api/(.*)", | |
"headers": { | |
"access-control-allow-credentials":"true", | |
"access-control-allow-origin": "*" | |
}, | |
"continue": true | |
}, |
This file contains hidden or 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 { Component } from "React"; | |
export var Enhance = ComposedComponent => class extends Component { | |
constructor() { | |
this.state = { data: null }; | |
} | |
componentDidMount() { | |
this.setState({ data: 'Hello' }); | |
} | |
render() { |
This file contains hidden or 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
var query = (function(){ | |
var q = {}; (location.search.slice(1).split('&') || []).forEach(function(i){ var pair=i.split('='); q[pair[0]] = (pair[1]||null) }); return q; | |
})(); |
NewerOlder