A complete list of RxJS 5 operators with easy to understand explanations and runnable examples.
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 gs='git status ' | |
| # Отображение коммитов с коротким названием, датой, комментарием и автором. | |
| alias gl='git --no-pager log --pretty=format:"%h | %ad | %s%d [%an]" --graph --date=short' | |
| alias glo=gl | |
| alias glog=gl | |
| # Добавление всех файлов с учётом удалённых и отображение текущего состояния. | |
| alias gall='git add --all && git status' |
- ⭐⭐⭐ курсы на Egghead. Лучше посмотреть все, но есть самые полезные курсы
- ⭐⭐⭐ справочник операторов с примерами Learn RxJS
- ⭐⭐ анимированная песочница Rx Visualizer
- ⭐⭐ раздел по rxjs в блоге Angular in depth
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
| # vim:ft=zsh ts=2 sw=2 sts=2 | |
| # | |
| # Based on Agnoster's Theme — https://gist.github.com/3712874 | |
| # A Powerline-inspired theme for ZSH | |
| # | |
| # [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts) | |
| # [Solarized theme](https://github.com/altercation/solarized/) | |
| # [iTerm 2](http://www.iterm2.com/) | |
| ### Segment drawing |
Last major update: 21.10.2019
Аутентификация(authentication, от греч. αὐθεντικός [authentikos] – реальный, подлинный; от αὐθέντης [authentes] – автор) - это процесс проверки учётных данных пользователя (логин/пароль). Проверка подлинности пользователя путём сравнения введённого им логина/пароля с данными сохранёнными в базе данных.
Авторизация(authorization — разрешение, уполномочивание) - это проверка прав пользователя на доступ к определенным ресурсам.
Например после аутентификации юзер sasha получает право обращатся и получать от ресурса "super.com/vip" некие данные. Во время обращения юзера sasha к ресурсу vip система авторизации проверит имеет ли право юзер обращатся к этому ресурсу (проще говоря переходить по неким разрешенным ссылкам)
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 person = { | |
| name: 'Владилен' | |
| } | |
| function info(phone, email) { | |
| console.log(`Имя: ${this.name}, Тел.:${phone}, Email: ${email}`) | |
| } | |
| // Demo | |
| // info.bind(person)('12345', 'v@mail.ru') |
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 fizzbuzz = (begin, end) => { | |
| for (let i = begin; i <= end; i++) { | |
| const hasFizz = i % 3 === 0; | |
| const hasBuzz = i % 5 === 0; | |
| const fizz = hasFizz ? 'Fizz' : ''; | |
| const buzz = hasBuzz ? 'Buzz' : ''; | |
| console.log(hasFizz || hasBuzz ? `${fizz}${buzz}` : i); | |
| } | |
| }; |
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
| let where = document.createElement('div'); | |
| let class1 = `class-1`; | |
| let class2 = `class-1-3`; | |
| let text1 = '123'; | |
| let text2 = 'abc!@#213'; | |
| let stat = { | |
| tags: { P: 1, B: 2 }, | |
| classes: { [class1]: 2, [class2]: 1 }, | |
| texts: 3 | |
| }; |
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 flat = (arr, deep = 1) => { | |
| let newArr = []; | |
| for (let i = 0; i < arr.length; i++) { | |
| const current = arr[i]; | |
| const canDeep = Array.isArray(current) && deep !== 0; | |
| const element = canDeep ? flat(current, deep - 1) : [current]; | |
| // оптимизировать через guard expression | |
| newArr = current !== '' ? [...newArr, ...element] : newArr; |
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
| // https://cs.stanford.edu/people/miles/iso8859.html | |
| const alphabetized = (str) => { | |
| const chars = str.split(''); | |
| const filteredChars = chars.filter(item => item.charCodeAt(item.indexOf(item)) <= 255); | |
| const sortedChars = filteredChars.sort((a, b) => a.localeCompare(b, 'en-US-u-kf-upper')); | |
| return sortedChars.join('').trim(); | |
| }; |
OlderNewer