Update
This commit is contained in:
parent
f75a70bafc
commit
8612d447b7
3
ets.md
3
ets.md
|
@ -4,7 +4,7 @@ category: Elixir
|
||||||
---
|
---
|
||||||
|
|
||||||
```elixir
|
```elixir
|
||||||
iex> table = :ets.new(:my_table)
|
iex> table = :ets.new(:my_table, [])
|
||||||
8211
|
8211
|
||||||
|
|
||||||
iex> :ets.insert(table, {:fruit, "Apple"})
|
iex> :ets.insert(table, {:fruit, "Apple"})
|
||||||
|
@ -12,6 +12,7 @@ iex> :ets.lookup(table, :fruit)
|
||||||
[{:fruit, "Apple"}]
|
[{:fruit, "Apple"}]
|
||||||
|
|
||||||
iex> :ets.delete(table)
|
iex> :ets.delete(table)
|
||||||
|
iex> :ets.delete_all_objects(table)
|
||||||
```
|
```
|
||||||
|
|
||||||
### Flags
|
### Flags
|
||||||
|
|
21
hledger.md
21
hledger.md
|
@ -13,9 +13,7 @@ hledger reg {query}
|
||||||
|
|
||||||
## Query
|
## Query
|
||||||
|
|
||||||
Queries are used on all commands (`bal`, `reg`, etc).
|
Queries are used on all commands (`bal`, `reg`, etc). [(docs)](http://hledger.org/manual.html#queries)
|
||||||
|
|
||||||
### Accounts
|
|
||||||
|
|
||||||
```
|
```
|
||||||
Assets # An account (regex)
|
Assets # An account (regex)
|
||||||
|
@ -25,27 +23,20 @@ inacct:'A:B' # transactions related to account
|
||||||
|
|
||||||
acctonly:A # no subaccounts
|
acctonly:A # no subaccounts
|
||||||
inacctonly:A # same, but no subaccounts
|
inacctonly:A # same, but no subaccounts
|
||||||
```
|
|
||||||
|
|
||||||
### Amounts
|
|
||||||
|
|
||||||
```
|
|
||||||
amt:2000 # amount (in absolute value)
|
amt:2000 # amount (in absolute value)
|
||||||
amt:<200 # amount comparison (in absolute value)
|
amt:<200 # amount comparison (in absolute value)
|
||||||
amt:<+200 # amount comparison
|
amt:<+200 # amount comparison
|
||||||
# also: <=, >, >=
|
# also: <=, >, >=
|
||||||
```
|
|
||||||
|
|
||||||
### Other queries
|
desc:REGEX # description
|
||||||
|
code:REGEX # transaction code (check number?)
|
||||||
```
|
|
||||||
desc:REGEX
|
|
||||||
code:REGEX
|
|
||||||
tag:REGEX
|
tag:REGEX
|
||||||
cur:'\$'
|
cur:'\$'
|
||||||
```
|
|
||||||
|
|
||||||
```
|
real: # real posts
|
||||||
|
real:0 # virtual posts
|
||||||
|
|
||||||
depth:N # --depth 2
|
depth:N # --depth 2
|
||||||
not:... # eg, not:status:!
|
not:... # eg, not:status:!
|
||||||
```
|
```
|
||||||
|
|
|
@ -59,8 +59,8 @@ function checkStatus (res) {
|
||||||
if (res.status >= 200 && res.status < 300) {
|
if (res.status >= 200 && res.status < 300) {
|
||||||
return res
|
return res
|
||||||
} else {
|
} else {
|
||||||
var err = new Error(response.statusText)
|
var err = new Error(res.statusText)
|
||||||
err.response = response
|
err.response = res
|
||||||
throw err
|
throw err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
13
package.md
13
package.md
|
@ -51,6 +51,19 @@ category: Node.js
|
||||||
"private": true,
|
"private": true,
|
||||||
"preferGlobal": true
|
"preferGlobal": true
|
||||||
|
|
||||||
|
### Config
|
||||||
|
|
||||||
|
```js
|
||||||
|
{
|
||||||
|
"config": {
|
||||||
|
"foobar": "hello"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"run": "echo $npm_package_config_foobar"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### References
|
### References
|
||||||
|
|
||||||
* http://package.json.nodejitsu.com/
|
* http://package.json.nodejitsu.com/
|
||||||
|
|
Loading…
Reference in New Issue