This commit is contained in:
Rico Sta. Cruz 2014-08-12 12:03:16 +08:00
parent c03d0b74e3
commit bd4ab84883
6 changed files with 73 additions and 1 deletions

View File

@ -22,6 +22,8 @@ Where:
2J clear screen
0;0H move cursor to 0;0
1A move up 1 line
Colors
0 black

View File

@ -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

13
google-webfonts.md Normal file
View File

@ -0,0 +1,13 @@
---
title: Google Webfonts
layout: default
---
### Link tag
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
### 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);

30
less.md
View File

@ -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') { }

View File

@ -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

View File

@ -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