in terminal
apt-get install pygments
in case the 'binary' pygmentize is not found
- Download the most recent tarball from the here
- Unpack the tarball
sudo python setup.py install
| module.exports = { | |
| parserOptions: { | |
| ecmaVersion: 7, | |
| sourceType: 'module', | |
| ecmaFeatures: { | |
| jsx: true, | |
| experimentalObjectRestSpread: true | |
| } | |
| }, |
in terminal
apt-get install pygments
in case the 'binary' pygmentize is not found
sudo python setup.py install| var webpack = require('webpack'); | |
| var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
| var path = require('path'); | |
| var folders = { | |
| APP: path.resolve(__dirname, '../app'), | |
| BUILD: path.resolve(__dirname, '../build'), | |
| BOWER: path.resolve(__dirname, '../bower_components'), | |
| NPM: path.resolve(__dirname, '../node_modules') | |
| }; |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
Components are not "helper" methods, they are the best change in Angular 1.x since I've been using it.
What is the role of
.component()?
template or templateUrl| # first, fetch the latest refs for all branches. And be sure we have latest master, etc | |
| git checkout master | |
| git fetch | |
| # If any changes from remote, catch our local version up | |
| git rebase origin/master | |
| # could also be done as |
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
You want a script that does a local compile to e.g. an out/ directory. Let's call this compile.sh for our purposes, but for your project it might be npm build or gulp make-docs or anything similar.
The out/ directory should contain everything you want deployed to gh-pages. That almost always includes an index.html.