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
as admin: | |
- choco install firacode | |
settings.json | |
"editor.fontFamily": "Fira Code, Menlo, Monaco, 'Courier New', monospace", | |
"editor.fontLigatures": true, | |
restart IDE |
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 url(https://fonts.googleapis.com/css?family=Roboto:100); | |
body { margin-top: 100px; background-color: #137b85; color: #fff; text-align:center; } | |
h1 { | |
font: 2em 'Roboto', sans-serif; | |
margin-bottom: 40px; | |
} | |
#loading { |
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 distinct = subjects.filter( | |
(thing, i, arr) => arr.findIndex(t => t.INN === thing.INN) === i | |
); | |
// IE version | |
const distinctThings = thingsWithDuplicates.filter((thing, i, arr) => { | |
return arr.indexOf(arr.find(t => t.id === thing.id)) === i; | |
}); |