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
| // <script src="angular.min.js"></script> | |
| (function(name, factory) { | |
| // our basic IO module system that stores every module on modules with the "file" namespace | |
| // please use something like browserify rather than rolling your own like this | |
| window.modules = window.modules || {}; | |
| window.require = window.require || function require(name) { return window.modules[name] || window[name]; }; | |
| var exports = {}; factory(exports, window.require); | |
| window.modules[name] = exports; | |
| }('TodoService', function(exports, require) { |
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
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| /* CSS */ | |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
// default exports
export default 42;
export default {};
export default [];
export default (1 + 2);
export default foo;
export default function () {}
export default class {}
export default function foo () {}
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
| #!/bin/bash | |
| yarn add -D @typescript-eslint/eslint-plugin \ | |
| typescript ts-node-dev \ | |
| @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint eslint-config-prettier eslint-plugin-prettier eslint-plugin-vue prettier | |
| cat > .eslintrc.js <<EOF | |
| module.exports = { | |
| root: true, | |
| env: { |
OlderNewer