diff --git a/badges.md b/badges.md
index 6c40dca7e..c17df94f9 100644
--- a/badges.md
+++ b/badges.md
@@ -27,28 +27,15 @@ Here are some badges for open source projects.
### Versions
-[](https://npmjs.org/package/jquery "View this project on npm")
-
- [](https://npmjs.org/package/PACKAGE "View this project on npm")
-
-[](http://rubygems.org/gems/rails "View this project in Rubygems")
-
- [](http://rubygems.org/gems/GEM "View this project in Rubygems")
-
+[](https://npmjs.org/package/jquery "View this project on npm")
+[](https://npmjs.org/package/jquery "View this project on npm")
+[](http://rubygems.org/gems/rails "View this project in Rubygems")
[](https://github.com/rstacruz/nprogress)
- [](https://github.com/USER/REPO)
-
### Links
[](https://npmjs.org/package/jquery "View this project on npm")
-
- [](https://npmjs.org/package/PACKAGE "View this project on npm")
-
[](http://rubygems.org/gems/rails "View this project in Rubygems")
-
- [](http://rubygems.org/gems/GEM "View this project in Rubygems")
-
### Etc
[](https://gitter.im/USER/REPO "Gitter chat")
diff --git a/css-flexbox.md b/css-flexbox.md
index 9e6a3c603..07e132f70 100644
--- a/css-flexbox.md
+++ b/css-flexbox.md
@@ -33,9 +33,9 @@ layout: default
flex-wrap: nowrap; /* one-line */
flex-wrap: wrap; /* multi-line */
- align-items: flex-start; /* vertically-align to top */
- align-items: flex-end; /* vertically-align to bottom */
- align-items: center; /* vertically-align to center */
+ align-items: flex-start; /* vertical-align to top */
+ align-items: flex-end; /* vertical-align to bottom */
+ align-items: center; /* vertical-align to center */
align-items: stretch; /* same height on all (default) */
justify-content: flex-start; /* horizontal alignment - default */
diff --git a/css.md b/css.md
index 43c532159..56c54d395 100644
--- a/css.md
+++ b/css.md
@@ -37,9 +37,17 @@ Background
### Shorthand
- background: #ff0 url(bg.jpg) center top 100px auto no-repeat fixed;
- /* ^ ^ ^ ^ ^ ^
- color image position size repeat attachment */
+ background: #ff0 url(bg.jpg) left top / 100px auto no-repeat fixed;
+ background: #abc url(bg.png) center center / cover repeat-x local;
+ /* ^ ^ ^ ^ ^ ^
+ color image position size repeat attachment */
+
+### Multiple backgrounds
+
+ background:
+ linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
+ url('background.jpg') center center / cover,
+ #333;
### Other properties
diff --git a/firefox.md b/firefox.md
index b2513eca9..7e0f18320 100644
--- a/firefox.md
+++ b/firefox.md
@@ -3,6 +3,10 @@ title: Firefox
layout: default
---
+### [Firefox 31](https://www.mozilla.org/en-US/firefox/31.0/releasenotes/) (July 2014)
+
+ * CSS: variables
+
### [Firefox 30](https://developer.mozilla.org/en-US/Firefox/Releases/30) (June 2014)
* CSS: Allow `line-height` in ``
diff --git a/html-input.md b/html-input.md
new file mode 100644
index 000000000..5125ffa85
--- /dev/null
+++ b/html-input.md
@@ -0,0 +1,58 @@
+---
+title: "HTML: input tag"
+layout: default
+---
+
+
+ autocompletetype='cc-exp'
+ autocapitalize='off'
+ pattern='\d*'
+
+### Input types
+
+Text:
+
+ * email
+ * hidden
+ * month
+ * password
+ * tel
+ * text
+ * search
+ * week
+
+Time:
+
+ * date
+ * datetime
+ * datetime-local
+ * time
+
+Etc:
+
+ * file
+ * radio
+ * checkbox
+
+Buttons:
+
+ * button
+ * reset
+ * submit
+ * image
+
+Numeric:
+
+ * number
+ * range
+
+### Ref
+
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input
diff --git a/ledger.md b/ledger.md
index cd6e780af..9366a1f38 100644
--- a/ledger.md
+++ b/ledger.md
@@ -3,6 +3,17 @@ title: Ledger CLI
layout: default
---
+ $ ledger bal
+ $ ledger reg
+
+ $ ledger reg grocery # show entries for grocery
+ $ ledger bal assets # check if im broke
+
+ -b 01/01 # --begin
+ -e 01/31 # --end
+ -S date # --sort
+ -S amount
+
### Examples
# any/all matches
@@ -41,7 +52,8 @@ 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
@@ -121,21 +133,6 @@ layout: default
| also line comment
* also line comment
-CLI interface
--------------
-
- $ ledger bal # show balance
- $ ledger reg grocery # show entries for grocery
- $ ledger print # show entries
-
- $ ledger bal assets # check if im broke
-
- $2000 Assets
- $1400 Savings
- $600 Cash
-
- $ ledger bal -b 2013/01/01 -e 2013/01/31
-
### Periods
[interval] [begin] [end]
diff --git a/nodejs.md b/nodejs.md
index 927f8f51f..cba5d6a53 100644
--- a/nodejs.md
+++ b/nodejs.md
@@ -65,12 +65,17 @@ layout: default
process.stderr.write('...');
function stdin(fn) {
- process.stdin.resume(); /* paused by default */
- process.stdin.setEncoding('utf8');
-
var data = '';
- process.stdin.on('data', function(chunk) { data += chunk.toString(); });
- process.stdin.on('end', function() { fn(null, data); });
+
+ process.stdin.setEncoding('utf8');
+ process.stdin.on('readable', function() {
+ var chunk = process.stdin.read();
+ if (chunk !== null) data += chunk;
+ });
+
+ process.stdin.on('end', function() {
+ fn(null, data);
+ });
}
### stuff
diff --git a/nopt.md b/nopt.md
new file mode 100644
index 000000000..08f428597
--- /dev/null
+++ b/nopt.md
@@ -0,0 +1,50 @@
+---
+title: Nopt
+layout: default
+---
+
+```js
+var args = require('nopt')({
+ foo: [String, null],
+ size: ['big', 'medium', 'small'],
+ many: [String, Array],
+ debug: Boolean,
+ version: Boolean,
+ help: Boolean
+}, {
+ h: '--help',
+ v: '--version'
+}, process.argv);
+
+args == {
+ debug: true,
+ version: true,
+ size: 'big',
+ argv: {
+ remain: ['...', '...'],
+ cooked: ...,
+ original: ...
+ }
+}
+```
+
+```js
+if (args.help) {
+ console.log([
+ 'Usage:',
+ ' hicat [options] [file]',
+ '',
+ 'Options:',
+ ' -h, --help print usage information',
+ ' -v, --version show version info and exit',
+ ].join('\n'));
+ process.exit(0);
+}
+
+if (args.version) {
+ console.log(require('../package.json').version);
+ process.exit(0);
+}
+```
+
+https://www.npmjs.org/package/nopt