Skip to content

Commit

Permalink
Formatting: update formatting of 20+ files (rstacruz#1490)
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz authored Jul 3, 2020
1 parent 87ed01b commit 9699673
Show file tree
Hide file tree
Showing 25 changed files with 478 additions and 304 deletions.
63 changes: 37 additions & 26 deletions ansi.md
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"; }
```
95 changes: 49 additions & 46 deletions atom.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,49 +5,52 @@ layout: 2017/sheet
updated: 2017-09-20
---

Shortcuts
---------
## Shortcuts
{: .-three-column}

### Tree

| Shortcut | Description |
| --- | --- |
| `⌘\` | Toggle tree |
| `⌘⇧\` | Reveal current file |
| Shortcut | Description |
| -------- | ------------------- |
| `⌘\` | Toggle tree |
| `⌘⇧\` | Reveal current file |
{: .-shortcuts}

### Comments

| Shortcut | Description |
| --- | --- |
| `⌘/` | Toggle comments |
| Shortcut | Description |
| -------- | --------------- |
| `⌘/` | Toggle comments |
{: .-shortcuts}

### View

| Shortcut | Description |
| --- | --- |
| Shortcut | Description |
| -------- | ---------------------- |
| `⌘k` `` | Split pane to the left |
| --- | --- |
| `⌘⌥=` | Grow pane |
| `⌘⌥-` | Shrink pane |
| --- | --- |
| `^⇧←` | Move tab to left |
| --- | --- |
| `⌘⌥=` | Grow pane |
| `⌘⌥-` | Shrink pane |
| --- | --- |
| `^⇧←` | Move tab to left |
{: .-shortcuts}

### Bracket matcher

| `^m` | Go to matching bracket |
| `^]` | Remove brackets from selection |
| `^⌘m` | Select inside brackets |
| `⌥⌘.` | Close tag |
| Shortcut | Description |
| -------- | ------------------------------ |
| `^m` | Go to matching bracket |
| `^]` | Remove brackets from selection |
| `^⌘m` | Select inside brackets |
| `⌥⌘.` | Close tag |
{: .-shortcuts}

### Symbols view

| `^⌥↓` | Jump to declaration under cursor |
| `^⇧r` | Show tags |
| Shortcut | Description |
| -------- | -------------------------------- |
| `^⌥↓` | Jump to declaration under cursor |
| `^⇧r` | Show tags |
{: .-shortcuts}

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

### Editing

| Shortcut | Description
| --- | ---
| `⌘d` | Select word
| `⌘l` | Select line
| --- | ---
| `⌘↓` | Move line down
| `⌘↑` | Move line up
| --- | ---
| `⌘⏎` | New line below
| `⌘⇧⏎` | New line above
| --- | ---
| `⌘⇧k` | Delete line
| `⌘⇧d` | Duplicate line
| Shortcut | Description |
| -------- | -------------- |
| `⌘d` | Select word |
| `⌘l` | Select line |
| --- | --- |
| `⌘↓` | Move line down |
| `⌘↑` | Move line up |
| --- | --- |
| `⌘⏎` | New line below |
| `⌘⇧⏎` | New line above |
| --- | --- |
| `⌘⇧k` | Delete line |
| `⌘⇧d` | Duplicate line |
{: .-shortcuts}

### Project

| Shortcut | Description
| --- | ---
| `⌘⇧p` | Command palette
| `⌘⇧a` | Add project folder
| --- | ---
| `⌘n` | New file
| `⌘⇧n` | New window
| --- | ---
| `⌘f` | Find in file
| `⌘⇧f` | Find in project
| `⌘t` | Search files in project
| Shortcut | Description |
| -------- | ----------------------- |
| `⌘⇧p` | Command palette |
| `⌘⇧a` | Add project folder |
| --- | --- |
| `⌘n` | New file |
| `⌘⇧n` | New window |
| --- | --- |
| `⌘f` | Find in file |
| `⌘⇧f` | Find in project |
| `⌘t` | Search files in project |
{: .-shortcuts}

## Notes
Expand Down
21 changes: 0 additions & 21 deletions bookshelf-contrib.md

This file was deleted.

39 changes: 24 additions & 15 deletions cordova.md
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
9 changes: 0 additions & 9 deletions crypto.md

This file was deleted.

24 changes: 18 additions & 6 deletions freenode.md
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
```
20 changes: 17 additions & 3 deletions google-webfonts.md
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!
Loading

0 comments on commit 9699673

Please sign in to comment.