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
| test('deben de ser iguales los strings', () => { | |
| // 1. inicialización | |
| const mensaje = 'Hola Mundo'; | |
| // 2. estímulo | |
| const mensaje2 = `Hola Mundo!`; | |
| // 3. observar el comportamiento | |
| expect ( mensaje ).toBe( mensaje2); // === |
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
| ## Alias para log y status | |
| λ git config --global alias.lg "log --oneline --decorate --all --graph" | |
| λ git config --global alias.s "status -s -b" | |
| ## Para ver el litado de alias: | |
| λ git config --global -l |
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
| * Para setear una variable en el entorno de heroku | |
| heroku config:set MONGO_URI="mongodb+srv://USR:[email protected]/covider?retryWrites=true&w=majority" | |
| * Para ver todas las variables de entorno | |
| heroku config | |
| * Para loguear | |
| heroku login | |
| * Para crear la app en heroku |
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
| docker version | |
| docker info | |
| docker run -d -p 80:80 docker/getting-started | |
| docker ps | |
| -- para ver los procesos en windows | |
| tasklist |
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 19 columns, instead of 17 in line 5.
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
| fecha,dia_inicio,dia_cuarentena_dnu260,osm_admin_level_2,osm_admin_level_4,osm_admin_level_8,tot_casosconf,nue_casosconf_diff,tot_fallecidos,nue_fallecidos_diff,tot_recuperados,tot_terapia,test_RT-PCR_negativos,test_RT-PCR_total,transmision_tipo,informe_tipo,informe_link,observacion,covid19argentina_admin_level_4 | |
| 2/03/2020,1,,Argentina,CABA,,1,1,0,0,,,,,importado,,https://www.infobae.com/coronavirus/2020/03/03/confirmaron-el-primer-caso-de-coronavirus-en-la-argentina/,no hay informe,capital-federal | |
| 3/03/2020,2,,Argentina,Indeterminado,,1,0,0,0,,,,,importado,,,no hay informe,no-data | |
| 4/03/2020,3,,Argentina,Indeterminado,,1,0,0,0,,,,,importado,,,no hay informe,no-data | |
| 5/03/2020,4,,Argentina,Buenos Aires,,2,1,2,2,,,,,importado,informe nacional,https://www.argentina.gob.ar/sites/default/files/5-03-2020-nuevo-coronavirus-covid-19-reporte-diario_1.pdf,,buenos-aires | |
| 6/03/2020,5,,Argentina,Indeterminado,,2,0,2,0,,,,,importado,informe nacional,https://www.argentina.gob.ar/sites/default/files/6-03-2020-nuevo-coronavirus |
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 { NgModule, Component } from '@angular/core'; | |
| import { CommonModule } from '@angular/common'; | |
| import { Routes, RouterModule} from '@angular/router' | |
| import { PaisesComponent } from './pages/paises/paises.component'; | |
| const routes: Routes = [ | |
| { path: '', component: PaisesComponent}, | |
| { path: 'pais/:id', component: PaisesComponent}, | |
| { path: '**', component: PaisesComponent} | |
| ]; |
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
| const urlCRUD = 'https://reqres.in/api/users'; | |
| const getUsuario = async ( id )=> { | |
| const resp = await fetch(`${ urlCRUD }/${ id }`) ; | |
| const { data } = await resp.json(); | |
| return data; |
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
| export const buscarHeroeAsync = async( id ) => { | |
| // No utilizamos resolve ni reject , ni promise, etc... | |
| const heroe = heroes[id]; | |
| if ( heroe ) { | |
| return heroe; | |
| } else { | |
| throw Error(`No existe el heroe id ${ id }`); | |
| } |
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 notificarme() { | |
| if ( !window.Notification ) { | |
| console.log('Este navegador no soporta notificaciones!'); | |
| return; | |
| } | |
| // Si se le pregunto con anterioridad si | |
| // desea recibir notificaciones | |
| if ( Notification.permission === 'granted' ) { |
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
| { | |
| "short_name": "Twittor", | |
| "name": "Twittor para heroes", | |
| "start_url": "index.html", | |
| "background_color": "#3498db", | |
| "theme_color": "#3498db", | |
| "display": "standalone", | |
| "orientation": "portrait", | |
| "icons": [ |
NewerOlder