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