Skip to content

Commit 9699673

Browse files
authored
Formatting: update formatting of 20+ files (rstacruz#1490)
1 parent 87ed01b commit 9699673

25 files changed

+478
-304
lines changed

ansi.md

+37-26
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,52 @@
11
---
22
title: Ansi codes
33
category: CLI
4+
layout: 2017/sheet
5+
intro: |
6+
Quick reference to ANSI color codes.
47
---
58

6-
Format
9+
### Format
710

8-
\033[#m
11+
```
12+
\033[#m
13+
```
914

10-
Where:
15+
### ANSI codes
1116

12-
0 clear
13-
1 bold
14-
4 underline
15-
5 blink
17+
```
18+
0 clear
19+
1 bold
20+
4 underline
21+
5 blink
1622
17-
30-37 fg color
18-
40-47 bg color
23+
30-37 fg color
24+
40-47 bg color
1925
20-
1K clear line (to beginning of line)
21-
2K clear line (entire line)
22-
2J clear screen
23-
0;0H move cursor to 0;0
26+
1K clear line (to beginning of line)
27+
2K clear line (entire line)
28+
2J clear screen
29+
0;0H move cursor to 0;0
2430
25-
1A move up 1 line
31+
1A move up 1 line
32+
```
2633

27-
Colors
34+
### Colors
2835

29-
0 black
30-
1 red
31-
2 green
32-
3 yellow
33-
4 blue
34-
5 magenta
35-
6 cyan
36-
7 white
36+
```
37+
0 black
38+
1 red
39+
2 green
40+
3 yellow
41+
4 blue
42+
5 magenta
43+
6 cyan
44+
7 white
45+
```
3746

38-
Stuff
47+
### Bash utilities
3948

40-
hide_cursor() { printf "\e[?25l"; }
41-
show_cursor() { printf "\e[?25h"; }
49+
```sh
50+
hide_cursor() { printf "\e[?25l"; }
51+
show_cursor() { printf "\e[?25h"; }
52+
```

atom.md

+49-46
Original file line numberDiff line numberDiff line change
@@ -5,49 +5,52 @@ layout: 2017/sheet
55
updated: 2017-09-20
66
---
77

8-
Shortcuts
9-
---------
8+
## Shortcuts
109
{: .-three-column}
1110

1211
### Tree
1312

14-
| Shortcut | Description |
15-
| --- | --- |
16-
| `⌘\` | Toggle tree |
17-
| `⌘⇧\` | Reveal current file |
13+
| Shortcut | Description |
14+
| -------- | ------------------- |
15+
| `⌘\` | Toggle tree |
16+
| `⌘⇧\` | Reveal current file |
1817
{: .-shortcuts}
1918

2019
### Comments
2120

22-
| Shortcut | Description |
23-
| --- | --- |
24-
| `⌘/` | Toggle comments |
21+
| Shortcut | Description |
22+
| -------- | --------------- |
23+
| `⌘/` | Toggle comments |
2524
{: .-shortcuts}
2625

2726
### View
2827

29-
| Shortcut | Description |
30-
| --- | --- |
28+
| Shortcut | Description |
29+
| -------- | ---------------------- |
3130
| `⌘k` `` | Split pane to the left |
32-
| --- | --- |
33-
| `⌘⌥=` | Grow pane |
34-
| `⌘⌥-` | Shrink pane |
35-
| --- | --- |
36-
| `^⇧←` | Move tab to left |
31+
| --- | --- |
32+
| `⌘⌥=` | Grow pane |
33+
| `⌘⌥-` | Shrink pane |
34+
| --- | --- |
35+
| `^⇧←` | Move tab to left |
3736
{: .-shortcuts}
3837

3938
### Bracket matcher
4039

41-
| `^m` | Go to matching bracket |
42-
| `^]` | Remove brackets from selection |
43-
| `^⌘m` | Select inside brackets |
44-
| `⌥⌘.` | Close tag |
40+
| Shortcut | Description |
41+
| -------- | ------------------------------ |
42+
| `^m` | Go to matching bracket |
43+
| `^]` | Remove brackets from selection |
44+
| `^⌘m` | Select inside brackets |
45+
| `⌥⌘.` | Close tag |
4546
{: .-shortcuts}
4647

4748
### Symbols view
4849

49-
| `^⌥↓` | Jump to declaration under cursor |
50-
| `^⇧r` | Show tags |
50+
| Shortcut | Description |
51+
| -------- | -------------------------------- |
52+
| `^⌥↓` | Jump to declaration under cursor |
53+
| `^⇧r` | Show tags |
5154
{: .-shortcuts}
5255

5356
Symbols view enables Ctags support for Atom.
@@ -62,34 +65,34 @@ See: [Symbols view](https://atom.io/packages/symbols-view)
6265

6366
### Editing
6467

65-
| Shortcut | Description
66-
| --- | ---
67-
| `⌘d` | Select word
68-
| `⌘l` | Select line
69-
| --- | ---
70-
| `⌘↓` | Move line down
71-
| `⌘↑` | Move line up
72-
| --- | ---
73-
| `⌘⏎` | New line below
74-
| `⌘⇧⏎` | New line above
75-
| --- | ---
76-
| `⌘⇧k` | Delete line
77-
| `⌘⇧d` | Duplicate line
68+
| Shortcut | Description |
69+
| -------- | -------------- |
70+
| `⌘d` | Select word |
71+
| `⌘l` | Select line |
72+
| --- | --- |
73+
| `⌘↓` | Move line down |
74+
| `⌘↑` | Move line up |
75+
| --- | --- |
76+
| `⌘⏎` | New line below |
77+
| `⌘⇧⏎` | New line above |
78+
| --- | --- |
79+
| `⌘⇧k` | Delete line |
80+
| `⌘⇧d` | Duplicate line |
7881
{: .-shortcuts}
7982

8083
### Project
8184

82-
| Shortcut | Description
83-
| --- | ---
84-
| `⌘⇧p` | Command palette
85-
| `⌘⇧a` | Add project folder
86-
| --- | ---
87-
| `⌘n` | New file
88-
| `⌘⇧n` | New window
89-
| --- | ---
90-
| `⌘f` | Find in file
91-
| `⌘⇧f` | Find in project
92-
| `⌘t` | Search files in project
85+
| Shortcut | Description |
86+
| -------- | ----------------------- |
87+
| `⌘⇧p` | Command palette |
88+
| `⌘⇧a` | Add project folder |
89+
| --- | --- |
90+
| `⌘n` | New file |
91+
| `⌘⇧n` | New window |
92+
| --- | --- |
93+
| `⌘f` | Find in file |
94+
| `⌘⇧f` | Find in project |
95+
| `⌘t` | Search files in project |
9396
{: .-shortcuts}
9497

9598
## Notes

bookshelf-contrib.md

-21
This file was deleted.

cordova.md

+24-15
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,34 @@
11
---
2-
title: Cordova
2+
title: Apache Cordova
3+
layout: 2017/sheet
4+
intro: |
5+
A quick reference to common [Apache Cordova](https://cordova.apache.org/) commands.
36
---
47

5-
cordova plugin ls
6-
cordova plugin search facebook
7-
cordova plugin add com.phonegap.plugins.facebookconnect
8+
### Common commands
89

9-
cordova platform add ios
10-
cordova platform ls
11-
cordova platform update ios
12-
cordova platform check
10+
```
11+
cordova plugin ls
12+
cordova plugin search facebook
13+
cordova plugin add com.phonegap.plugins.facebookconnect
14+
```
1315

14-
### Some plugins
16+
```
17+
cordova platform add ios
18+
cordova platform ls
19+
cordova platform update ios
20+
cordova platform check
21+
```
1522

16-
You'll likely need these:
23+
### Common plugins
1724

18-
* [org.apache.cordova.console](https://github.com/apache/cordova-plugin-console)
19-
* [org.apache.cordova.inappbrowser](https://github.com/apache/cordova-plugin-inappbrowser)
20-
* [org.apache.cordova.statusbar](https://github.com/apache/cordova-plugin-statusbar)
21-
* org.apache.cordova.splashscreen
25+
Some commonly-used plugins:
26+
27+
- [org.apache.cordova.console](https://github.com/apache/cordova-plugin-console)
28+
- [org.apache.cordova.inappbrowser](https://github.com/apache/cordova-plugin-inappbrowser)
29+
- [org.apache.cordova.statusbar](https://github.com/apache/cordova-plugin-statusbar)
30+
- org.apache.cordova.splashscreen
2231

2332
Also:
2433

25-
* com.phonegap.plugins.facebookconnect
34+
- com.phonegap.plugins.facebookconnect

crypto.md

-9
This file was deleted.

freenode.md

+18-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
11
---
22
title: Freenode
3+
layout: 2017/sheet
4+
tags: [WIP]
35
---
46

5-
### irc.freenode.net
7+
### IRC server
68

7-
/msg nickserv identify [nick] <password>
8-
/msg nickserv info <nick>
9+
```
10+
irc.freenode.net
11+
```
12+
13+
### NickServ commands
14+
15+
```
16+
/msg nickserv identify [nick] <password>
17+
/msg nickserv info <nick>
18+
```
919

1020
### Add a nick
1121

12-
/nick newnick
13-
/msg nickserv identify <oldnick> <password>
14-
/msg nickserv group
22+
```
23+
/nick newnick
24+
/msg nickserv identify <oldnick> <password>
25+
/msg nickserv group
26+
```

google-webfonts.md

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,26 @@
11
---
22
title: Google Webfonts
3+
layout: 2017/sheet
4+
intro: |
5+
Short snippets on using [Google Webfonts](https://google.com/fonts) in a web page.
36
---
47

58
### Link tag
69

7-
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
10+
<!-- prettier-ignore -->
11+
```html
12+
<link href="http://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css" />
13+
```
814

915
### CSS import
1016

11-
@import url(http://fonts.googleapis.com/css?family=Open+Sans);
12-
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,400italic|Montserrat:400,700);
17+
<!-- prettier-ignore -->
18+
```css
19+
/* One font */
20+
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700');
21+
22+
/* Combining multiple fonts */
23+
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,400italic|Montserrat:400,700'');
24+
```
25+
26+
Great for using with [Codepen.io](https://codepen.io/) or similar websites!

0 commit comments

Comments
 (0)