| Keybinding | Action |
|---|---|
| Alt + f/b | Move cursor to previous/next word |
| Ctrl + a/e | Move cursor to beginning/end of command |
| Ctrl + xx | Toggle between the start of line and current cursor position |
This is how to use the Black Python code formatter in VS Code.
Black itself requires Python 3.6 to run, but few of our projects are on that version. The VS Code plugin conveniently lets you run black from its own virtualenv.
I had to give a specific version of black this morning. I didn't yesterday. Don't specify the version unless it makes you (and if you do, give the current version, not the one from this doc).
$ cd ~/EnvsNote: these are pretty rough notes I made for my team on the fly as I was reading through some pages. Some could be mildly inaccurate but hopefully not terribly so. I might resort to convenient fiction & simplification sometimes.
My top contenders, mostly based on popularity / community etc:
- Angular
- Backbone
- React
- Ember
Mostly about MVC (or derivatives, MVP / MVVM).
| #!/bin/bash | |
| # Installation: | |
| # cd my_gitproject | |
| # wget -O pre-commit.sh http://tinyurl.com/mkovs45 | |
| # ln -s ../../pre-commit.sh .git/hooks/pre-commit | |
| # chmod +x pre-commit.sh | |
| OPTIONS="-A8 -t8 --lineend=linux" | |
| RETURN=0 |
| #!/bin/bash | |
| JQPATH=$(which jq) | |
| if [ "x$JQPATH" == "x" ]; then | |
| echo "Couldn't find jq executable." 1>&2 | |
| exit 2 | |
| fi | |
| set -eu | |
| shopt -s nullglob |
| # This section of the documentation lists the properties available on | |
| # CMake cache entries: | |
| # | |
| # http://cmake.org/cmake/help/v2.8.12/cmake.html#section_PropertiesonCacheEntries | |
| # | |
| # | |
| # This code demonstrates retrieving the property values from a variable or | |
| # cache entry. | |
| # |
| // # Mocha Guide to Testing | |
| // Objective is to explain describe(), it(), and before()/etc hooks | |
| // 1. `describe()` is merely for grouping, which you can nest as deep | |
| // 2. `it()` is a test case | |
| // 3. `before()`, `beforeEach()`, `after()`, `afterEach()` are hooks to run | |
| // before/after first/each it() or describe(). | |
| // | |
| // Which means, `before()` is run before first it()/describe() |
- Documentation @ http://git.kernel.org/cgit/network/connman/connman.git/tree/doc
-
Scan for access points (run multiple times for more complete scan):
# connmanctl scan wifi
Scan completed for wifi
| # | |
| # Working with branches | |
| # | |
| # Get the current branch name (not so useful in itself, but used in | |
| # other aliases) | |
| branch-name = "!git rev-parse --abbrev-ref HEAD" | |
| # Push the current branch to the remote "origin", and set it to track | |
| # the upstream branch | |
| publish = "!git push -u origin $(git branch-name)" |