ERROR in /home/samuel/Documentos/TesteTeste/sing-cli-com-scss/src/app/core/providers/api/api-base.service.ts (55,5): Type 'Observable<T | T[]>' is not assignable to type 'Observable<T>'.
Type 'T | T[]' is not assignable to type 'T'.
Type 'T[]' is not assignable to type 'T'.
ERROR in /home/samuel/Documentos/TesteTeste/sing-cli-com-scss/src/app/core/providers/api/api-base.service.ts (69,5): Type 'Observable<T | T[]>' is not assignable to type 'Observable<T[]>'.
Type 'T | T[]' is not assignable to type 'T[]'.
Type 'T' is not assignable to type 'T[]'.
Type '{ id: string; }' is not assignable to type 'T[]'.
Property 'includes' is missing in type '{ id: string; }'.
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, OnInit, OnDestroy, HostBinding } from '@angular/core' | |
// import { Router, ActivatedRoute } from '@angular/router' | |
// import { Subscription } from 'rxjs/Subscription' | |
// import { AuthService } from '../../core' | |
// @Component( { | |
// templateUrl: './forgot.component.html', | |
// styleUrls: [ './forgot.component.scss' ] | |
// } ) | |
// export class ForgotComponent implements OnInit, OnDestroy { |
yarn start v0.24.4
$ ng serve
** NG Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200 **
Hash: 2e4faa3c53819ee36039
Time: 28619ms
chunk {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 158 kB {4} [initial] [rendered]
chunk {1} styles.bundle.js, styles.bundle.js.map (styles) 189 kB {4} [initial] [rendered]
chunk {2} main.bundle.js, main.bundle.js.map (main) 7.45 kB {3} [initial] [rendered]
chunk {3} vendor.bundle.js, vendor.bundle.js.map (vendor) 2.46 MB [initial] [rendered]
samuel@develop:~/Documentos/xDevel/Teste/sing-angular-cli$ yarn start
yarn start v0.24.4
$ ng serve
** NG Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200 **
Hash: 9577620142e18e9c6890
Time: 147318ms
chunk {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 158 kB {4} [initial] [rendered]
chunk {1} main.bundle.js, main.bundle.js.map (main) 6.16 kB {3} [initial] [rendered]
chunk {2} styles.bundle.js, styles.bundle.js.map (styles) 10.7 kB {4} [initial] [rendered]
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 path = require('path'); | |
module.exports = { | |
entry: path.resolve(__dirname, 'src') + '/app/index.js', | |
output: { | |
path: path.resolve(__dirname, 'dist') + '/app', | |
filename: 'bundle.js', | |
publicPath: '/app/' | |
}, |
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
# Spider Websites with Wget – 20 Practical Examples | |
Wget is extremely powerful, but like with most other command line programs, the plethora of options it supports can be intimidating to new users. Thus what we have here are a collection of wget commands that you can use to accomplish common tasks from downloading single files to mirroring entire websites. It will help if you can read through the wget manual but for the busy souls, these commands are ready to execute. | |
1. Download a single file from the Internet | |
wget http://example.com/file.iso | |
2. Download a file but save it locally under a different name | |
wget ‐‐output-document=filename.html example.com |
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
$(document).ready(function() { | |
function ren() { | |
// render the page -- in case you're wondering, | |
// nothing will work without javascript! | |
$("#tit").html('<font face="Garamond"><h1> <i>sleepyti.me <font color="lightblue">bedtime calculator</font></i></h1></font>'); | |
var mrend = ''; | |
mrend = mrend + | |
'<table><tr width="100%">' + | |
'<td width="20%"></td>' + | |
'<td><span class="intro"><font face="Garamond" size=5>I have to wake up at <span class="waketime" style="display:none;"></span> </td>' + |
Mais à esquerda eu falei sobre tipos de dados (string, float, double e integer), depois como eles concatenam (juntar duas strings, dois floats e etc)
Um pouco antes do meio, ainda da esquerda pra direita eu expliquei sobre codificação da string (UTF-8, ANSI, Unicode) e o que era o ASCII
Antes do meio embaixo expliquei sobre manipuladores de memória e o uso para desenvolvimento de exploits
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
<form (submit)="$event.preventDefault()"> | |
<div class="form-group"> | |
<label for="email">EMAIL:</label> | |
<input [(ngModel)]="usuario.email" type="email" id="email" class="form-control"> | |
</div> | |
<div class="form-group"> | |
<label for="senha">SENHA:</label> | |
<input [(ngModel)]="usuario.senha" type="password" id="senha" class="form-control"> | |
</div> | |
<button class="btn waves-effect waves-light" |
NewerOlder