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 passportFacebookMiddleware = function(req,res,next){ | |
| var conf = { | |
| session:false, | |
| callbackURL: 'http://localhost:3000/auth/facebook/callback?returnTo='+encodeURIComponent('/pepe/lala') | |
| }; | |
| passport.authenticate('facebook', conf)(req,res,next); | |
| } | |
| app.get('/auth/facebook',passportFacebookMiddleware,function(req,res,next){ | |
| res.json(arguments); |
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 gulp = require('gulp'); | |
| var watchify = require('watchify'); | |
| var glob = require('glob'); | |
| var browserify = require('browserify'); | |
| gulp.task('js', function(){ | |
| glob('./scripts/*.js', function(err, files) { | |
| files.forEach(function(entry) { | |
| var w = watchify(browserify({ entries: [entry] })) | |
| var build = function(){ |
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; | |
| })(); |
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
| { | |
| "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
| * { | |
| 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
| //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
| //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
| // 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
| // 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 |
OlderNewer