This file contains 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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/home/var-bin/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes |
This file contains 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
# reload config file (change file location to your the tmux.conf you want to use) | |
bind r source-file ~/.tmux.conf | |
# switch panes using Alt-arrow without prefix | |
bind -n M-Left select-pane -L | |
bind -n M-Right select-pane -R | |
bind -n M-Up select-pane -U | |
bind -n M-Down select-pane -D |
- [ Composition vs Inheritance ]
- [ Don’t Mutate the Original Component. Use Composition ]
- [ Design Principles. Composition ]
- Reusable components
This file contains 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
// home.module.js | |
"use strict"; | |
import angular from "angular"; | |
import { homeRouting } from "./home.module.routing"; | |
import { BlogService } from "../blog/blog.service"; | |
const HOME_MODULE = angular |
This file contains 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
project-root | |
├── src | |
│ ├── core | |
│ │ ├── bootstrap.js | |
│ ├── pages | |
│ │ ├── blog | |
│ │ │ ├── blog.module.js | |
│ │ │ ├── blog.service.js | |
│ │ │ ├── blog.view.html | |
│ │ ├── home |
This file contains 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
project-root | |
├── src | |
│ ├── core | |
│ │ ├── bootstrap.js | |
│ ├── pages | |
│ │ ├── home | |
│ │ │ ├── about | |
│ │ │ │ ├── about.module.js | |
│ │ │ │ ├── about.view.html | |
│ │ │ ├── index |
This file contains 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
{ | |
"extends": "eslint:recommended", | |
"parser": "babel-eslint", | |
"parserOptions": { | |
"ecmaVersion": 6, | |
"sourceType": "module", | |
"ecmaFeatures": { | |
"impliedStrict": false | |
} | |
}, |
This file contains 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 appBlog = { | |
name: "blog", | |
url: "/blog", | |
component: "blogComponent", | |
lazyLoad: ($transition$) => { | |
const $ocLazyLoad = $transition$.injector().get("$ocLazyLoad"); | |
// !!! Dynamic import !!! | |
return import(/* webpackChunkName: "blog.module" */ "./pages/blog/blog.module") | |
.then(mod => $ocLazyLoad.load(mod.BLOG_MODULE)) |
NewerOlder