Hit highlighted region to generate an object of square or circular shape randomly. The object is randomly coloured, randomly positioned within svg object bounds, 20px<=(square side)<=150px, 30px<=(circle diameter)<=200px. Hit randomly generated object to dismiss it.
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
to check if the server works - https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice | |
stun: | |
stun.l.google.com:19302, | |
stun1.l.google.com:19302, | |
stun2.l.google.com:19302, | |
stun3.l.google.com:19302, | |
stun4.l.google.com:19302, | |
stun.ekiga.net, | |
stun.ideasip.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
@Input() set mimeType(v: string) { | |
// eslint-disable-next-line no-underscore-dangle | |
this._mimeType = v.split('/')[1]; | |
} | |
get mimeType(): string { | |
// eslint-disable-next-line no-underscore-dangle | |
return this._mimeType; | |
} |
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 observer = { | |
next: x => console.log('Observer got a next value: ' + x), | |
error: err => console.error('Observer got an error: ' + err), | |
complete: () => console.log('Observer got a complete notification'), | |
}; |
(It's not a file, do this before using)
- Have D3.js v4 implement in your project first.
- npm install --save d3-sankey
npm install --save @types/d3-sankey
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 parseJwt (token) { | |
var base64Url = token.split('.')[1]; | |
var base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/'); | |
var jsonPayload = decodeURIComponent(atob(base64).split('').map(function(c) { | |
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2); | |
}).join('')); | |
return JSON.parse(jsonPayload); | |
}; |
Если вы хотите вернуть изменения, внесенные в рабочую копию, сделайте следующее:
git checkout .
Если вы хотите отменить изменения, внесенные в индекс (т.е. добавленные вами), сделайте это. Предупреждение: это приведет к сбросу всех ваших неотправленных коммитов на master!
git reset
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
public apiSearchAddressFromData( | |
searchAddress: string | |
): Observable<unknown[]> { | |
return this.http.get<unknown[]>( | |
`${environment.laccUrl}/searchAddress?searchReq=${searchAddress}` | |
); | |
} |
To add onto what @Delosdos has posted.
Set a validator for a control in the FormGroup:
this.myForm.controls['controlName'].setValidators([Validators.required])
Remove the validator from the control in the FormGroup:
this.myForm.controls['controlName'].clearValidators()
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
{ | |
"message":"Form is not valid. Check inputs and try again", | |
"modelState":{ | |
"id":{ | |
"errors":{ | |
} | |
}, | |
"customFields[32].valueContainer.value":{ | |
"errors":[ | |
{ |
OlderNewer