forked from rstacruz/cheatsheets
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Formatting: update formatting of 20+ files (rstacruz#1490)
- Loading branch information
Showing
25 changed files
with
478 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,52 @@ | ||
--- | ||
title: Ansi codes | ||
category: CLI | ||
layout: 2017/sheet | ||
intro: | | ||
Quick reference to ANSI color codes. | ||
--- | ||
|
||
Format | ||
### Format | ||
|
||
\033[#m | ||
``` | ||
\033[#m | ||
``` | ||
|
||
Where: | ||
### ANSI codes | ||
|
||
0 clear | ||
1 bold | ||
4 underline | ||
5 blink | ||
``` | ||
0 clear | ||
1 bold | ||
4 underline | ||
5 blink | ||
30-37 fg color | ||
40-47 bg color | ||
30-37 fg color | ||
40-47 bg color | ||
1K clear line (to beginning of line) | ||
2K clear line (entire line) | ||
2J clear screen | ||
0;0H move cursor to 0;0 | ||
1K clear line (to beginning of line) | ||
2K clear line (entire line) | ||
2J clear screen | ||
0;0H move cursor to 0;0 | ||
1A move up 1 line | ||
1A move up 1 line | ||
``` | ||
|
||
Colors | ||
### Colors | ||
|
||
0 black | ||
1 red | ||
2 green | ||
3 yellow | ||
4 blue | ||
5 magenta | ||
6 cyan | ||
7 white | ||
``` | ||
0 black | ||
1 red | ||
2 green | ||
3 yellow | ||
4 blue | ||
5 magenta | ||
6 cyan | ||
7 white | ||
``` | ||
|
||
Stuff | ||
### Bash utilities | ||
|
||
hide_cursor() { printf "\e[?25l"; } | ||
show_cursor() { printf "\e[?25h"; } | ||
```sh | ||
hide_cursor() { printf "\e[?25l"; } | ||
show_cursor() { printf "\e[?25h"; } | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,34 @@ | ||
--- | ||
title: Cordova | ||
title: Apache Cordova | ||
layout: 2017/sheet | ||
intro: | | ||
A quick reference to common [Apache Cordova](https://cordova.apache.org/) commands. | ||
--- | ||
|
||
cordova plugin ls | ||
cordova plugin search facebook | ||
cordova plugin add com.phonegap.plugins.facebookconnect | ||
### Common commands | ||
|
||
cordova platform add ios | ||
cordova platform ls | ||
cordova platform update ios | ||
cordova platform check | ||
``` | ||
cordova plugin ls | ||
cordova plugin search facebook | ||
cordova plugin add com.phonegap.plugins.facebookconnect | ||
``` | ||
|
||
### Some plugins | ||
``` | ||
cordova platform add ios | ||
cordova platform ls | ||
cordova platform update ios | ||
cordova platform check | ||
``` | ||
|
||
You'll likely need these: | ||
### Common plugins | ||
|
||
* [org.apache.cordova.console](https://github.com/apache/cordova-plugin-console) | ||
* [org.apache.cordova.inappbrowser](https://github.com/apache/cordova-plugin-inappbrowser) | ||
* [org.apache.cordova.statusbar](https://github.com/apache/cordova-plugin-statusbar) | ||
* org.apache.cordova.splashscreen | ||
Some commonly-used plugins: | ||
|
||
- [org.apache.cordova.console](https://github.com/apache/cordova-plugin-console) | ||
- [org.apache.cordova.inappbrowser](https://github.com/apache/cordova-plugin-inappbrowser) | ||
- [org.apache.cordova.statusbar](https://github.com/apache/cordova-plugin-statusbar) | ||
- org.apache.cordova.splashscreen | ||
|
||
Also: | ||
|
||
* com.phonegap.plugins.facebookconnect | ||
- com.phonegap.plugins.facebookconnect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,26 @@ | ||
--- | ||
title: Freenode | ||
layout: 2017/sheet | ||
tags: [WIP] | ||
--- | ||
|
||
### irc.freenode.net | ||
### IRC server | ||
|
||
/msg nickserv identify [nick] <password> | ||
/msg nickserv info <nick> | ||
``` | ||
irc.freenode.net | ||
``` | ||
|
||
### NickServ commands | ||
|
||
``` | ||
/msg nickserv identify [nick] <password> | ||
/msg nickserv info <nick> | ||
``` | ||
|
||
### Add a nick | ||
|
||
/nick newnick | ||
/msg nickserv identify <oldnick> <password> | ||
/msg nickserv group | ||
``` | ||
/nick newnick | ||
/msg nickserv identify <oldnick> <password> | ||
/msg nickserv group | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,26 @@ | ||
--- | ||
title: Google Webfonts | ||
layout: 2017/sheet | ||
intro: | | ||
Short snippets on using [Google Webfonts](https://google.com/fonts) in a web page. | ||
--- | ||
|
||
### Link tag | ||
|
||
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'> | ||
<!-- prettier-ignore --> | ||
```html | ||
<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); | ||
<!-- prettier-ignore --> | ||
```css | ||
/* One font */ | ||
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700'); | ||
|
||
/* Combining multiple fonts */ | ||
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,400italic|Montserrat:400,700''); | ||
``` | ||
|
||
Great for using with [Codepen.io](https://codepen.io/) or similar websites! |
Oops, something went wrong.