diff --git a/ansi.md b/ansi.md index 778ab0b31..50d8f5380 100644 --- a/ansi.md +++ b/ansi.md @@ -22,6 +22,8 @@ Where: 2J clear screen 0;0H move cursor to 0;0 + 1A move up 1 line + Colors 0 black diff --git a/badges.md b/badges.md index 71abcaa86..64290bde7 100644 --- a/badges.md +++ b/badges.md @@ -98,6 +98,5 @@ Here are some badges for open source projects. > GitHub [@rstacruz](https://github.com/rstacruz)  ·  > Twitter [@rstacruz](https://twitter.com/rstacruz) - [MIT License]: License.md [MIT License]: http://mit-license.org/ [contributors]: http://github.com/rstacruz/nprogress/contributors diff --git a/google-webfonts.md b/google-webfonts.md new file mode 100644 index 000000000..c7fb76117 --- /dev/null +++ b/google-webfonts.md @@ -0,0 +1,13 @@ +--- +title: Google Webfonts +layout: default +--- + +### Link tag + + + +### CSS import + + @import url(http://fonts.googleapis.com/css?family=Open+Sans); + @import url(http://fonts.googleapis.com/css?family=Open+Sans:400,400italic|Montserrat:400,700); diff --git a/less.md b/less.md index 1d5d096dc..3fee0435f 100644 --- a/less.md +++ b/less.md @@ -11,3 +11,33 @@ layout: default e("ms:stuff()") #=> ms:stuff() (unquote) %("count: %d", 1+2) #=> "count: 3" + + iscolor(@x) + isstring(@x) + isnumber(@x) + iskeyword(@x) + isurl(url(...)) + ispixel() + isem() + ispercentage() + isunit() + + hue(@color) + saturation(@color) + lightness(@color) + luma(@color) + luminance(@color) + + fade(@color, amount) + fadein(@color, amount) + fadeout(@color, amount) + spin(@color, degrees) + mix(@a, @b, amount) + +### Conditionals + + .image when (luma(@color) > 50%) { } + .image when (not(...)) { } + .image when (default()) {} + .image when (e(@shape) = 'circle') { } + diff --git a/minimist.md b/minimist.md index 5fab6ae17..f7a14f86e 100644 --- a/minimist.md +++ b/minimist.md @@ -18,6 +18,31 @@ args == { } ``` +```js +if (args.help) { + var cmd = require('path').basename(process.argv[1]); + console.log(require('fs').readFileSync(__dirname+'/../help.txt','utf-8').replace(/\$0/g, cmd)); + ].join('\n')); + process.exit(); +} + +if (args.version) { + console.log(require('../package.json').version); + process.exit(); +} +``` + +### Help.txt + +``` +Usage: + $0 FILES [options] + +Options: + -h, --help print usage information + -V, --version show version info and exit +``` + ### Reference * https://www.npmjs.org/package/minimist diff --git a/ubuntu.md b/ubuntu.md index 2fdb8c8c6..eb859909c 100644 --- a/ubuntu.md +++ b/ubuntu.md @@ -11,9 +11,12 @@ layout: default dpkg -i *.deb # Install a deb file dpkg -s nodejs # Show info + dpkg --get-selections # list installed packages + ### Apt archives path /var/cache/apt/archives ### List services + service --status-all