mirror of
https://github.com/Fechin/reference.git
synced 2026-11-21 05:24:10 +03:00
Beautify github preview
This commit is contained in:
1 parent
aa646d00ad
commit
4354704e39
8 files changed
+149
-28
No files matched your search
@@ -86,6 +86,8 @@ Min Hour Day Mon Weekday
|
||||
|
||||
### Crontab command
|
||||
|
||||
|
||||
| - | - |
|
||||
|------|-------------------------------------------------------------------------|
|
||||
| `crontab -e` | Edit or create a crontab file if doesn’t already exist. |
|
||||
| `crontab -l` | Display the crontab file. |
|
||||
|
||||
@@ -24,6 +24,7 @@ $ emacs
|
||||
|
||||
------
|
||||
|
||||
| - | - |
|
||||
|-------------|---------------------------------------------|
|
||||
| `C-z` | Suspend Emacs <br>_(or iconify it under X)_ |
|
||||
| `C-x` `C-c` | Exit Emacs permanently |
|
||||
@@ -50,6 +51,8 @@ $ emacs
|
||||
|
||||
|
||||
### Case Change
|
||||
|
||||
| - | - |
|
||||
|-----------|------------------|
|
||||
| `M-u` | Uppercase word |
|
||||
| `M-l` | Lowercase word |
|
||||
@@ -61,6 +64,8 @@ $ emacs
|
||||
|
||||
|
||||
### Files
|
||||
|
||||
| - | - |
|
||||
|-------------|--------------------------------------------------|
|
||||
| `C-x` `C-f` | Read a file into Emacs |
|
||||
| `C-x` `C-s` | Save a file back to disk |
|
||||
@@ -75,6 +80,8 @@ $ emacs
|
||||
|
||||
|
||||
### Error Recovery
|
||||
|
||||
| - | - |
|
||||
|-----------------------|--------------------------------------------|
|
||||
| `C-g` | Abort partially typed or executing command |
|
||||
| `M-x` recover-session | Recover files lost by a system crash |
|
||||
@@ -87,6 +94,8 @@ $ emacs
|
||||
|
||||
|
||||
### Transposing {.row-span-2}
|
||||
|
||||
| - | - |
|
||||
|-----------|----------------------|
|
||||
| `C-t` | Transpose characters |
|
||||
| `M-t` | Transpose words |
|
||||
@@ -95,6 +104,8 @@ $ emacs
|
||||
{.shortcuts}
|
||||
|
||||
#### Scroll
|
||||
|
||||
| - | - |
|
||||
|---------|--------------------------------------------------|
|
||||
| `C-v` | Scroll to next screen |
|
||||
| `M-v` | Scroll to previous screen |
|
||||
@@ -104,6 +115,8 @@ $ emacs
|
||||
{.shortcuts .show-header}
|
||||
|
||||
#### Goto
|
||||
|
||||
| - | - |
|
||||
|---------|----------------------|
|
||||
| `M-g g` | Goto line |
|
||||
| `M-g c` | Goto char |
|
||||
@@ -115,6 +128,8 @@ $ emacs
|
||||
|
||||
|
||||
### Marking
|
||||
|
||||
| - | - |
|
||||
|----------------|-------------------------|
|
||||
| `C-@` \/ `C-SPC`| Uet mark here |
|
||||
| `C-x C-x` | Exchange point and mark |
|
||||
@@ -140,6 +155,8 @@ $ emacs
|
||||
| `M-- C-M-k` | `C-M-k` | Sexp |
|
||||
{.shortcuts .show-header}
|
||||
#### Killing
|
||||
|
||||
| - | - |
|
||||
|------------|--------------------------------------|
|
||||
| `C-W` | Kill region C-w |
|
||||
| `M-w` | Copy region to kill ring |
|
||||
@@ -153,6 +170,8 @@ $ emacs
|
||||
|
||||
|
||||
### Getting Help
|
||||
|
||||
| - | - |
|
||||
|---------|------------------------------------------|
|
||||
| `C-x 1` | Remove help window |
|
||||
| `C-M-v` | Scroll help window |
|
||||
@@ -169,6 +188,7 @@ The help system is simple. Type `C-h` (or `F1`) and follow the directions. If yo
|
||||
|
||||
### Multiple Windows {.col-span-2}
|
||||
When two commands are shown, the second is a similar command for a frame instead of a window.
|
||||
| - | - | - |
|
||||
|-------------|-------------|-------------------------------------|
|
||||
| `C-x 5 1` | `C-x 1` | Delete all other windows |
|
||||
| `C-x 5 2` | `C-x 2` | Split window, above and below |
|
||||
@@ -194,6 +214,8 @@ When two commands are shown, the second is a similar command for a frame instead
|
||||
|
||||
|
||||
### Formatting
|
||||
|
||||
| - | - |
|
||||
|-----------|------------------------------------------|
|
||||
| `TAB` | Indent current line (mode-dependent) |
|
||||
| `C-M-\` | Indent region (mode-dependent) |
|
||||
@@ -216,12 +238,16 @@ When two commands are shown, the second is a similar command for a frame instead
|
||||
|
||||
|
||||
### Info {.row-span-2}
|
||||
|
||||
| - | - |
|
||||
|---------|---------------------------------------------|
|
||||
| `C-h i` | Enter the Info documentation reader |
|
||||
| `C-h S` | Find specified function or variable in Info |
|
||||
{.shortcuts}
|
||||
|
||||
#### Moving within a node
|
||||
|
||||
| - | - |
|
||||
|---------|---------------------------------------------|
|
||||
| `SPC` | Scroll forward |
|
||||
| `DEL` | Scroll reverse |
|
||||
@@ -229,6 +255,8 @@ When two commands are shown, the second is a similar command for a frame instead
|
||||
{.shortcuts}
|
||||
|
||||
#### Moving between nodes
|
||||
|
||||
| - | - |
|
||||
|---------|---------------------------------------------|
|
||||
| `n` | Next node |
|
||||
| `p` | Previous node |
|
||||
@@ -243,6 +271,8 @@ When two commands are shown, the second is a similar command for a frame instead
|
||||
{.shortcuts}
|
||||
|
||||
#### Other
|
||||
|
||||
| - | - |
|
||||
|---------|---------------------------------------------|
|
||||
| `h` | Run Info tutorial |
|
||||
| `i` | Look up a subject in the indices |
|
||||
@@ -255,6 +285,7 @@ When two commands are shown, the second is a similar command for a frame instead
|
||||
|
||||
### Minibuffer
|
||||
The following keys are defined in the minibuffer.
|
||||
| - | - |
|
||||
|-------|-----------------------------------------|
|
||||
| `TAB` | Complete as much as possible |
|
||||
| `SPC` | Complete up to one word |
|
||||
@@ -274,6 +305,8 @@ Type `C-x ESC ESC` to edit and repeat the last command that used the minibuffer.
|
||||
|
||||
|
||||
### Tags
|
||||
|
||||
| - | - |
|
||||
|--------------------------|--------------------------------------------|
|
||||
| `M-.` | Find a tag (a definition) |
|
||||
| `C-u M-.` | Find next occurrence of tag |
|
||||
@@ -286,6 +319,8 @@ Type `C-x ESC ESC` to edit and repeat the last command that used the minibuffer.
|
||||
|
||||
|
||||
### Rectangles
|
||||
|
||||
| - | - |
|
||||
|-----------|-------------------------------------|
|
||||
| `C-x r r` | Copy rectangle to register |
|
||||
| `C-x r k` | Kill rectangle |
|
||||
@@ -298,6 +333,8 @@ Type `C-x ESC ESC` to edit and repeat the last command that used the minibuffer.
|
||||
|
||||
|
||||
### Keyboard Macros
|
||||
|
||||
| - | - |
|
||||
|---------------------------|-------------------------------------|
|
||||
| `C-x (` | Start defining a keyboard macro |
|
||||
| `C-x )` | End keyboard macro definition |
|
||||
@@ -311,6 +348,8 @@ Type `C-x ESC ESC` to edit and repeat the last command that used the minibuffer.
|
||||
|
||||
|
||||
### Buffers
|
||||
|
||||
| - | - |
|
||||
|-----------|-----------------------|
|
||||
| `C-x b` | Select another buffer |
|
||||
| `C-x C-b` | List all buffers |
|
||||
@@ -325,6 +364,8 @@ Search{.cols-3}
|
||||
|
||||
|
||||
### Regex (common) {.row-span-2}
|
||||
|
||||
| - | - |
|
||||
|-------------------|----------------------------------------------|
|
||||
| `. (dot)` | Any single character except a newline |
|
||||
| `*` | Zero or more repeats |
|
||||
@@ -361,6 +402,8 @@ Search{.cols-3}
|
||||
|
||||
|
||||
### Incremental Search
|
||||
|
||||
| - | - |
|
||||
|---------|-----------------------------------|
|
||||
| `C-s` | Search forward |
|
||||
| `C-r` | Search backward |
|
||||
@@ -379,6 +422,8 @@ Use `C-s` or `C-r` again to repeat the search in either direction. If Emacs is s
|
||||
|
||||
|
||||
### Query Replace
|
||||
|
||||
| - | - |
|
||||
|----------------------------|--------------------------------------|
|
||||
| `M-%` | Interactively replace a text string |
|
||||
| `M-x` regexp | Using regular expressions |
|
||||
@@ -398,6 +443,8 @@ Misc {.cols-3}
|
||||
|
||||
|
||||
### Shells
|
||||
|
||||
| - | - |
|
||||
|-------------|----------------------------------------|
|
||||
| `M-!` | Execute a shell command |
|
||||
| `M-&` | Execute a shell command asynchronously |
|
||||
@@ -409,6 +456,8 @@ Misc {.cols-3}
|
||||
|
||||
|
||||
### International Character Sets {.col-span-2}
|
||||
|
||||
| - | - |
|
||||
|----------------------------|------------------------------------|
|
||||
| `C-x RET l` | specify principal language |
|
||||
| `M-x` list-input-methods | show all input methods |
|
||||
@@ -420,6 +469,8 @@ Misc {.cols-3}
|
||||
|
||||
|
||||
### Registers
|
||||
|
||||
| - | - |
|
||||
|-------------|--------------------------------------|
|
||||
| `C-x r s` | Save region in register |
|
||||
| `C-x r i` | Insert register contents into buffer |
|
||||
@@ -431,6 +482,8 @@ Misc {.cols-3}
|
||||
|
||||
|
||||
### Miscellaneous
|
||||
|
||||
| - | - |
|
||||
|------------|-------------------|
|
||||
| `C-u` num | Numeric argument |
|
||||
| `M--` | Negative argument |
|
||||
@@ -440,6 +493,8 @@ Misc {.cols-3}
|
||||
|
||||
|
||||
### Commands Dealing with Emacs Lisp
|
||||
|
||||
| - | - |
|
||||
|--------------------|------------------------------------|
|
||||
| `C-x C-e` | Eval sexp before point |
|
||||
| `C-M-x` | Eval current defun |
|
||||
@@ -452,6 +507,8 @@ Misc {.cols-3}
|
||||
|
||||
|
||||
### Simple Customization
|
||||
|
||||
| - | - |
|
||||
|-----------------|-------------------------------|
|
||||
| `M-x customize` | customize variables and faces |
|
||||
|
||||
@@ -466,6 +523,8 @@ Making global key bindings in Emacs Lisp:
|
||||
|
||||
|
||||
### Abbrevs
|
||||
|
||||
| - | - |
|
||||
|-------------|------------------------------------------|
|
||||
| `C-x a g` | Add global abbrev |
|
||||
| `C-x a l` | Add mode-local abbrev |
|
||||
@@ -479,6 +538,8 @@ Making global key bindings in Emacs Lisp:
|
||||
|
||||
|
||||
### Spelling Check
|
||||
|
||||
| - | - |
|
||||
|---------------------|---------------------------------------|
|
||||
| `M-$` | Check spelling of current word |
|
||||
| `M-x` ispell-region | Check spelling of all words in region |
|
||||
|
||||
@@ -13,6 +13,8 @@ Get Started {.cols-3}
|
||||
----------
|
||||
|
||||
### People
|
||||
|
||||
| - | - |
|
||||
|-----|-----|
|
||||
| :smile: | `:smile:` |
|
||||
| :laughing: | `:laughing:` |
|
||||
@@ -197,6 +199,8 @@ Get Started {.cols-3}
|
||||
|
||||
|
||||
### Symbols
|
||||
|
||||
| - | - |
|
||||
|-----|-----|
|
||||
| :one: | `:one:` |
|
||||
| :two: | `:two:` |
|
||||
@@ -394,6 +398,8 @@ Get Started {.cols-3}
|
||||
|
||||
|
||||
### Objects {.row-span-2}
|
||||
|
||||
| - | - |
|
||||
|-----|-----|
|
||||
| :bamboo: | `:bamboo:` |
|
||||
| :gift_heart: | `:gift_heart:` |
|
||||
@@ -660,6 +666,8 @@ Get Started {.cols-3}
|
||||
|
||||
|
||||
### Places
|
||||
|
||||
| - | - |
|
||||
|-----|-----|
|
||||
| :house: | `:house:` |
|
||||
| :house_with_garden: | `:house_with_garden:` |
|
||||
@@ -774,6 +782,8 @@ Get Started {.cols-3}
|
||||
|
||||
|
||||
### Nature
|
||||
|
||||
| - | - |
|
||||
|-----|-----|
|
||||
| :sunny: | `:sunny:` |
|
||||
| :umbrella: | `:umbrella:` |
|
||||
|
||||
@@ -121,6 +121,8 @@ fmt.Println("1 + 1 =", 1.0 + 1.0)
|
||||
```
|
||||
|
||||
-----
|
||||
|
||||
| - | - |
|
||||
|------|----------------|
|
||||
| `+` | addition |
|
||||
| `-` | subtraction |
|
||||
|
||||
@@ -31,6 +31,8 @@ mysql -h <host> -u <user> -p [db_name]
|
||||
### Commons {.row-span-2}
|
||||
|
||||
#### Database
|
||||
|
||||
| - | - |
|
||||
|------------------------|-------------------------|
|
||||
| `create database` db `;` | Create database |
|
||||
| `show databases;` | List databases |
|
||||
@@ -38,6 +40,8 @@ mysql -h <host> -u <user> -p [db_name]
|
||||
| `drop database` db`;` | Delete db |
|
||||
|
||||
#### Table
|
||||
|
||||
| - | - |
|
||||
|------------------------|-------------------------|
|
||||
| `show tables;` | List tables for current db |
|
||||
| `show fields from` t`;` | List fields for a table |
|
||||
@@ -46,10 +50,14 @@ mysql -h <host> -u <user> -p [db_name]
|
||||
| `truncate table `t`;` | Remove all data in a table |
|
||||
| `drop table `t`;` | Delete table |
|
||||
#### Proccess
|
||||
|
||||
| - | - |
|
||||
|------------------------|-------------------------|
|
||||
| `show processlist;` | List processes |
|
||||
| `kill` pid`;` | kill process |
|
||||
#### Other
|
||||
|
||||
| - | - |
|
||||
|------------------------|-------------------------|
|
||||
| `exit` or `\q` | Exit MySQL session |
|
||||
|
||||
@@ -501,17 +509,23 @@ ON table_name TRIGGER_TYPE
|
||||
EXECUTE stored_procedure;
|
||||
```
|
||||
#### WHEN
|
||||
|
||||
| - | - |
|
||||
|----------|--------------------------------|
|
||||
| `BEFORE` | invoke before the event occurs |
|
||||
| `AFTER` | invoke after the event occurs |
|
||||
|
||||
#### EVENT
|
||||
|
||||
| - | - |
|
||||
|----------|-------------------|
|
||||
| `INSERT` | invoke for INSERT |
|
||||
| `UPDATE` | invoke for UPDATE |
|
||||
| `DELETE` | invoke for DELETE |
|
||||
|
||||
#### TRIGGER_TYPE
|
||||
|
||||
| - | - |
|
||||
|----------------------|---|
|
||||
| `FOR EACH ROW` | |
|
||||
| `FOR EACH STATEMENT` | |
|
||||
@@ -549,6 +563,8 @@ Data Types {.cols-3}
|
||||
|
||||
|
||||
### Strings
|
||||
|
||||
| - | - |
|
||||
|---------------|-------------------------------|
|
||||
| `CHAR` | String (0 - 255) |
|
||||
| `VARCHAR` | String (0 - 255) |
|
||||
@@ -574,6 +590,8 @@ Data Types {.cols-3}
|
||||
|
||||
|
||||
### Numeric
|
||||
|
||||
| - | - |
|
||||
|---------------|---------------------------------------------------------------|
|
||||
| `TINYINT x` | Integer (-128 to 127) |
|
||||
| `SMALLINT x` | Integer (-32768 to 32767) |
|
||||
|
||||
@@ -25,6 +25,8 @@ import numpy as np
|
||||
|
||||
### Importing/exporting
|
||||
|
||||
|
||||
| - | - |
|
||||
|-----|-----|
|
||||
| `np.loadtxt('file.txt')` | From a text file |
|
||||
| `np.genfromtxt('file.csv',delimiter=',')` | From a CSV file |
|
||||
@@ -34,6 +36,8 @@ import numpy as np
|
||||
|
||||
### Creating Arrays {.row-span-2}
|
||||
|
||||
|
||||
| - | - |
|
||||
|-----|-----|
|
||||
| `np.array([1,2,3])` | One dimensional array |
|
||||
| `np.array([(1,2,3),(4,5,6)])` | Two dimensional array |
|
||||
@@ -50,6 +54,8 @@ import numpy as np
|
||||
|
||||
### Inspecting Properties
|
||||
|
||||
|
||||
| - | - |
|
||||
|-----|-----|
|
||||
| `arr.size` | Returns number of elements in arr |
|
||||
| `arr.shape` | Returns dimensions of arr (rows,columns)
|
||||
@@ -61,6 +67,8 @@ import numpy as np
|
||||
|
||||
### Copying/sorting/reshaping
|
||||
|
||||
|
||||
| - | - |
|
||||
|-----|-----|
|
||||
| `np.copy(arr)` | Copies arr to new memory |
|
||||
| `arr.view(dtype)` | Creates view of arr elements with type dtype |
|
||||
@@ -74,6 +82,8 @@ import numpy as np
|
||||
|
||||
### Adding/removing Elements
|
||||
|
||||
|
||||
| - | - |
|
||||
|-----|-----|
|
||||
| `np.append(arr,values)` | Appends values to end of arr |
|
||||
| `np.insert(arr,2,values)` | Inserts values into arr before index 2 |
|
||||
@@ -83,6 +93,8 @@ import numpy as np
|
||||
|
||||
### Combining/splitting
|
||||
|
||||
|
||||
| - | - |
|
||||
|-----|-----|
|
||||
| `np.concatenate((arr1,arr2),axis=0)` | Adds arr2 as rows to the end of arr1 |
|
||||
| `np.concatenate((arr1,arr2),axis=1)` | Adds arr2 as columns to end of arr1 |
|
||||
@@ -92,6 +104,8 @@ import numpy as np
|
||||
|
||||
### Indexing/slicing/subsetting
|
||||
|
||||
|
||||
| - | - |
|
||||
|-----|-----|
|
||||
| `arr[5]` | Returns the element at index 5 |
|
||||
| `arr[2,5]` | Returns the 2D array element on index [2][5]
|
||||
@@ -110,6 +124,8 @@ import numpy as np
|
||||
|
||||
### Vector Math
|
||||
|
||||
|
||||
| - | - |
|
||||
|-----|-----|
|
||||
| `np.add(arr1,arr2)` | Elementwise add arr2 to arr1 |
|
||||
| `np.subtract(arr1,arr2)` | Elementwise subtract arr2 from arr1 |
|
||||
@@ -128,6 +144,8 @@ import numpy as np
|
||||
|
||||
### Scalar Math
|
||||
|
||||
|
||||
| - | - |
|
||||
|-----|-----|
|
||||
| `np.add(arr,1)` | Add 1 to each array element |
|
||||
| `np.subtract(arr,2)` | Subtract 2 from each array element |
|
||||
@@ -138,6 +156,8 @@ import numpy as np
|
||||
|
||||
### Statistics
|
||||
|
||||
|
||||
| - | - |
|
||||
|-----|-----|
|
||||
| `np.mean(arr,axis=0)` | Returns mean along specific axis |
|
||||
| `arr.sum()` | Returns sum of arr |
|
||||
|
||||
+22
-28
@@ -13,6 +13,8 @@ Variants {.cols-3}
|
||||
--------
|
||||
|
||||
### H2 section
|
||||
|
||||
| - | - |
|
||||
|---------------|---------------------------------|
|
||||
| `cols-1` | one column _(default)_ |
|
||||
| `cols-2` | |
|
||||
@@ -27,15 +29,21 @@ See: [H2 section](#h2-section-2)
|
||||
|
||||
### H3 section
|
||||
|
||||
|
||||
| - | - |
|
||||
|-------------------|-------------------------------------|
|
||||
| `primary` | Primary section |
|
||||
| `secondary` | Secondary section |
|
||||
#### Span n columns.
|
||||
|
||||
| - | - |
|
||||
|---------------|-----------------------------------|
|
||||
| `col-span-1` | |
|
||||
| ... | |
|
||||
| `col-span-12` | |
|
||||
#### Span n rows.
|
||||
|
||||
| - | - |
|
||||
|---------------|-----------------------------------|
|
||||
| `row-span-1` | |
|
||||
| ... | |
|
||||
@@ -46,6 +54,8 @@ See: [H3 section](#h3-section-2)
|
||||
|
||||
### Tables
|
||||
|
||||
|
||||
| - | - |
|
||||
|---------------|----------------|
|
||||
| `bold-first` | Bold first column |
|
||||
| `plus-first` | Plus first column |
|
||||
@@ -59,9 +69,13 @@ See: [Tables](#tables-2)
|
||||
|
||||
### Lists {.row-span-2}
|
||||
|
||||
|
||||
| - | - |
|
||||
|---------------|----------------|
|
||||
| `style-none` | No marker is shown |
|
||||
#### Layout
|
||||
|
||||
| - | - |
|
||||
|---------------|----------------|
|
||||
| `cols-1` | one column _(default)_ |
|
||||
| `cols-2` | |
|
||||
@@ -74,6 +88,8 @@ See: [Tables](#tables-2)
|
||||
|
||||
### Code
|
||||
|
||||
|
||||
| - | - |
|
||||
|---------------|----------------|
|
||||
| `wrap` | Enables line-wrapping |
|
||||
|
||||
@@ -81,6 +97,8 @@ See: [Code](#code-2)
|
||||
|
||||
### Paragraphs
|
||||
|
||||
|
||||
| - | - |
|
||||
|---------------|----------------|
|
||||
| `link-arrow` | Pretty links with arrows |
|
||||
|
||||
@@ -91,6 +109,8 @@ See: [Paragraphs](#paragraphs-2)
|
||||
See: [Lists](#lists-2)
|
||||
|
||||
### Global
|
||||
|
||||
| - | - |
|
||||
|---------------|----------------|
|
||||
| `hidden` | Hide an element|
|
||||
|
||||
@@ -242,6 +262,8 @@ A basic table with heading level 4.
|
||||
|
||||
### Shortcuts
|
||||
|
||||
|
||||
| - | - |
|
||||
|------|-------|
|
||||
| `V` | Vector |
|
||||
| `P` | Pencil |
|
||||
@@ -298,34 +320,6 @@ QuickRef uses markdown-it-multimd-table to render the table, See:[markdown-it-
|
||||
|
||||
|
||||
|
||||
### Headerless
|
||||
|
||||
|---|---|---|---|---|---|---|---|
|
||||
| ♜ | | ♝ | ♛ | ♚ | ♝ | ♞ | ♜ |
|
||||
| | ♟ | ♟ | ♟ | | ♟ | ♟ | ♟ |
|
||||
| ♟ | | ♞ | | | | | |
|
||||
| | ♗ | | | ♟ | | | |
|
||||
| | | | | ♙ | | | |
|
||||
| | | | | | ♘ | | |
|
||||
| ♙ | ♙ | ♙ | ♙ | | ♙ | ♙ | ♙ |
|
||||
| ♖ | ♘ | ♗ | ♕ | ♔ | | | ♖ |
|
||||
|
||||
#### Source Code
|
||||
|
||||
```
|
||||
|---|---|---|---|---|---|---|---|
|
||||
| ♜ | | ♝ | ♛ | ♚ | ♝ | ♞ | ♜ |
|
||||
| | ♟ | ♟ | ♟ | | ♟ | ♟ | ♟ |
|
||||
| ♟ | | ♞ | | | | | |
|
||||
| | ♗ | | | ♟ | | | |
|
||||
| | | | | ♙ | | | |
|
||||
| | | | | | ♘ | | |
|
||||
| ♙ | ♙ | ♙ | ♙ | | ♙ | ♙ | ♙ |
|
||||
| ♖ | ♘ | ♗ | ♕ | ♔ | | | ♖ |
|
||||
```
|
||||
See:[markdown-it-multimd-table](https://www.npmjs.com/package/markdown-it-multimd-table#headerless-optional)
|
||||
|
||||
|
||||
|
||||
Lists {.cols-3}
|
||||
--------
|
||||
|
||||
@@ -195,6 +195,8 @@ Escape these special characters with `\`
|
||||
|
||||
### Assertions
|
||||
|
||||
|
||||
| - | - |
|
||||
|------------|--------------------------------------|
|
||||
|`(?(1)yes|no)` | Conditional statement|
|
||||
|`(?(R)yes|no)` | Conditional statement|
|
||||
@@ -206,6 +208,8 @@ Escape these special characters with `\`
|
||||
|
||||
|
||||
### Lookarounds
|
||||
|
||||
| - | - |
|
||||
|------------|--------------------------------------|
|
||||
|`(?=...)` | Positive Lookahead|
|
||||
|`(?!...)` | Negative Lookahead|
|
||||
@@ -234,6 +238,8 @@ Lookaround lets you match a group before (lookbehind) or after (lookahead) your
|
||||
|
||||
|
||||
### Recurse
|
||||
|
||||
| - | - |
|
||||
|------------|--------------------------------------|
|
||||
|`(?R)` | Recurse entire pattern|
|
||||
|`(?1)` | Recurse first subpattern|
|
||||
@@ -271,6 +277,8 @@ Lookaround lets you match a group before (lookbehind) or after (lookahead) your
|
||||
|
||||
|
||||
### Control verb
|
||||
|
||||
| - | - |
|
||||
|------------|--------------------------------------|
|
||||
|`(*ACCEPT)` | Control verb|
|
||||
|`(*FAIL)` | Control verb|
|
||||
@@ -384,6 +392,8 @@ False
|
||||
|
||||
### Flags
|
||||
|
||||
|
||||
| - | - | - |
|
||||
|--------|-----------------|-------------------------------------------|
|
||||
| `re.I` | `re.IGNORECASE` | Ignore case |
|
||||
| `re.M` | `re.MULTILINE` | Multiline |
|
||||
@@ -510,6 +520,8 @@ Regex in PHP {.cols-3}
|
||||
|
||||
### Functions {.col-span-2}
|
||||
|
||||
|
||||
| - | - |
|
||||
|---------------------------|------------------------------------------------------------------|
|
||||
| `preg_match()` | performs a regex match |
|
||||
| `preg_match_all()` | perform a global regular expression match |
|
||||
@@ -613,6 +625,8 @@ System.out.println(s3); // Outputs: false
|
||||
|
||||
### Pattern Fields
|
||||
|
||||
|
||||
| - | - |
|
||||
|----------------------|-----------------------------------------------|
|
||||
| `CANON_EQ` | Canonical equivalence |
|
||||
| `CASE_INSENSITIVE` | Case-insensitive matching |
|
||||
|
||||
Reference in new issue
Block a user