From b65992b9d87c934cc29a01dedb1695a1754dc38a Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Sat, 7 Jun 2014 22:32:02 +0800 Subject: [PATCH] Update applinks, ledger, flexbox --- applinks.md | 28 ++++++++++++++++++++++++++++ css-flexbox.md | 16 +++++++++++++--- ledger.md | 48 ++++++++++++++++++++++++++++++------------------ 3 files changed, 71 insertions(+), 21 deletions(-) create mode 100644 applinks.md diff --git a/applinks.md b/applinks.md new file mode 100644 index 000000000..a2ebf8e26 --- /dev/null +++ b/applinks.md @@ -0,0 +1,28 @@ +--- +title: Applinks +layout: default +--- + + + + + + + + + + + + +### Device types + + * `ios` + * `ipad` + * `iphone` + * `android` + * `windows_phone` + * `web` + +### Reference + + * [applinks.org](http://applinks.org/documentation/) diff --git a/css-flexbox.md b/css-flexbox.md index b9514a8b9..02445390d 100644 --- a/css-flexbox.md +++ b/css-flexbox.md @@ -45,7 +45,7 @@ Full flex-grow: 0; } -### Centering +### Vertical center .container { display: flex; @@ -57,14 +57,24 @@ Full margin: auto; } -### Mobile +### Reordering + + .container > .top { + order: 1; + } + + .container > .bottom { + order: 2; + } + +### Mobile layout .container { display: flex; flex-direction: column; } - .container > .top-bar { + .container > .top { flex: 0 0 100px; } diff --git a/ledger.md b/ledger.md index a8983a3eb..cd6e780af 100644 --- a/ledger.md +++ b/ledger.md @@ -3,7 +3,7 @@ title: Ledger CLI layout: default --- -### Queries +### Examples # any/all matches ledger bal Rent Transportation # any @@ -41,7 +41,7 @@ layout: default ledger reg -b 01/25 -e 01/27 --subtotal ledger reg -b 01/25 -e 01/27 --subtotal grocery -### Format +## Format 2013/01/03 * Rent for January Expenses:Rent $600.00 @@ -92,6 +92,13 @@ layout: default 2010/05/31 * Gas Expenses:Gasoline 11 GAL {=$2.299} +### Commodity definitions + + commodity $ + note American Dollars + format $1,000.00 + nomarket + default ### Budgeting @@ -117,8 +124,6 @@ layout: default CLI interface ------------- -### Examples - $ ledger bal # show balance $ ledger reg grocery # show entries for grocery $ ledger print # show entries @@ -170,20 +175,35 @@ CLI interface -b, --begin DATE -e, --end DATE - -d EXPR # only transactions matching EXPR (`-d payee =~ /pioneer/`) + -d payee =~ /pioneer/ - -C, --cleared # only cleared transactions (with *) - -U, --uncleared # only uncleared (no *) - --pending # only pending (with !) + -C, --cleared # (with *) + -U, --uncleared # (no *) + --pending # (with !) -R, --real # ignore virtual postings (eg: "(Cash) $-400") -L, --actual # no automated postings (eg: "= /^Income/") - --aux-date # use aux dates as if it were the primary dates - -r, --related # show the other side # "reg -r savings" shows where it comes from) +### Queries + + ^regex$ + @payee + %tag + =note + #code + term and term + term or term + not term + \( term \) + +Example: + + ledger r ^expenses and @Denny's + ledger r food and @Starbucks and not dining + ### Display -n, --collapse # [register] collapse entries @@ -215,14 +235,6 @@ Then, when you receive the payment, you change it to "2013/09/04","","stuff", "Assets:Cash","P","-20","*","" "2013/09/04","","stuff", "Expneses:Others","P","20","*","" -### Commodity - - commodity $ - note American Dollars - format $1,000.00 - nomarket - default - ### See * http://ledger-cli.org/3.0/doc/ledger3.html