mirror of
https://github.com/Fechin/reference.git
synced 2026-11-21 05:24:10 +03:00
Fix the anchor link not found
This commit is contained in:
1 parent
1de91c7390
commit
0bc94c9253
10 files changed
+45
-45
No files matched your search
@@ -80,7 +80,7 @@ Multi-line comments use `:'` to open and `'` to close
|
||||
| `$-` | Current options |
|
||||
| `$_` | Last argument of the previous command |
|
||||
|
||||
See: [Special parameters](http://wiki.bash-hackers.org/syntax/shellvars#special_parameters_and_shell_variables).
|
||||
See: [Special parameters](http://wiki.bash-hackers.org/syntax/shellvars#special_parameters_and_shell_variables)
|
||||
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ get_name() {
|
||||
echo "You are $(get_name)"
|
||||
```
|
||||
|
||||
See: [Functions](#functions-2)
|
||||
See: [Functions](#bash-functions)
|
||||
|
||||
### Conditionals {#conditionals-example}
|
||||
|
||||
@@ -106,7 +106,7 @@ elif [[ -n "$string" ]]; then
|
||||
fi
|
||||
```
|
||||
|
||||
See: [Conditionals](#conditionals-2)
|
||||
See: [Conditionals](#bash-conditionals)
|
||||
|
||||
### Brace expansion
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@ if (a == 10) {
|
||||
// do something
|
||||
}
|
||||
```
|
||||
See: [Conditionals](#conditionals)
|
||||
See: [Conditionals](#c-conditionals)
|
||||
|
||||
|
||||
|
||||
@@ -126,7 +126,7 @@ for (int i = 0; i < 10; i++) {
|
||||
std::cout << i << "\n";
|
||||
}
|
||||
```
|
||||
See: [Loops](#loops-2)
|
||||
See: [Loops](#c-loops)
|
||||
|
||||
|
||||
### Functions
|
||||
@@ -143,7 +143,7 @@ void hello() { // Defining
|
||||
std::cout << "Hello QuickRef!\n";
|
||||
}
|
||||
```
|
||||
See: [Functions](#functions-2)
|
||||
See: [Functions](#c-functions)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ div.hero { }
|
||||
div > p { }
|
||||
```
|
||||
|
||||
See: [Selectors](#selectors)
|
||||
See: [Selectors](#css-selectors)
|
||||
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ color: rgb(34, 12, 64, 0.6);
|
||||
color: hsla(30 100% 50% / 0.6);
|
||||
```
|
||||
|
||||
See: [Colors](#colors)
|
||||
See: [Colors](#css-colors)
|
||||
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ background-image: url("nyan-cat.gif");
|
||||
background-image: url("../image.png");
|
||||
```
|
||||
|
||||
See: [Backgrounds](#backgrounds)
|
||||
See: [Backgrounds](#css-backgrounds)
|
||||
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ See: [Backgrounds](#backgrounds)
|
||||
font-family: "Courier New";
|
||||
}
|
||||
```
|
||||
See: [Fonts](#fonts)
|
||||
See: [Fonts](#css-fonts)
|
||||
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@ animation: 300ms linear 0s infinite;
|
||||
animation: bounce 300ms linear infinite;
|
||||
|
||||
```
|
||||
See: [Animation](#animation-2)
|
||||
See: [Animation](#css-animation)
|
||||
|
||||
|
||||
### Comment
|
||||
@@ -165,7 +165,7 @@ div {
|
||||
}
|
||||
```
|
||||
|
||||
See: [Flexbox](#flexbox) | [Flex Tricks](#flexbox-tricks)
|
||||
See: [Flexbox](#css-flexbox) | [Flex Tricks](#css-flexbox-tricks)
|
||||
|
||||
|
||||
|
||||
@@ -185,7 +185,7 @@ See: [Flexbox](#flexbox) | [Flex Tricks](#flexbox-tricks)
|
||||
}
|
||||
```
|
||||
|
||||
See: [Grid Layout](#grid-layout-2)
|
||||
See: [Grid Layout](#css-grid-layout)
|
||||
|
||||
|
||||
|
||||
@@ -203,7 +203,7 @@ element {
|
||||
}
|
||||
```
|
||||
|
||||
See: [Dynamic content](#dynamic-content)
|
||||
See: [Dynamic content](#css-dynamic-content)
|
||||
|
||||
|
||||
CSS Selectors {.cols-3}
|
||||
@@ -493,7 +493,7 @@ CSS Backgrounds {.cols-3}
|
||||
|---------------|---------------|
|
||||
| `background:` | _(Shorthand)_ |
|
||||
|
||||
| `background-color:` | See: [Colors](#colors) |
|
||||
| `background-color:` | See: [Colors](#css-colors) |
|
||||
| `background-image:` | url(...) |
|
||||
| `background-position:` | left/center/right<br/>top/center/bottom |
|
||||
| `background-size:` | cover X Y |
|
||||
@@ -1078,7 +1078,7 @@ html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
```
|
||||
[Click me](#getting-started), the page will scroll smoothly to Getting started
|
||||
[Click me](#css-getting-started), the page will scroll smoothly to Getting started
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ b, c := 1, 2 // int
|
||||
d := true // bool
|
||||
```
|
||||
|
||||
See: [Basic types](#basic-types)
|
||||
See: [Basic types](#golang-basic-types)
|
||||
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ func say(message string) {
|
||||
fmt.Println("You said: ", message)
|
||||
}
|
||||
```
|
||||
See: [Functions](#functions-2)
|
||||
See: [Functions](#golang-functions)
|
||||
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ if true {
|
||||
fmt.Println("Yes!")
|
||||
}
|
||||
```
|
||||
See: [Flow control](#flow-control)
|
||||
See: [Flow control](#golang-flow-control)
|
||||
|
||||
|
||||
|
||||
@@ -134,7 +134,7 @@ x++
|
||||
fmt.Println("x + 4 =", x + 4)
|
||||
fmt.Println("x * 4 =", x * 4)
|
||||
```
|
||||
See: [More Operators](#operators-and-punctuation)
|
||||
See: [More Operators](#golang-operators-and-punctuation)
|
||||
|
||||
|
||||
|
||||
@@ -154,7 +154,7 @@ fmt.Println(true || true) // true
|
||||
fmt.Println(true || false) // true
|
||||
fmt.Println(!true) // false
|
||||
```
|
||||
See: [More Operators](#operators-and-punctuation)
|
||||
See: [More Operators](#golang-operators-and-punctuation)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ String last = "Doe";
|
||||
String name = first + " " + last;
|
||||
System.out.println(name);
|
||||
```
|
||||
See: [Strings](#strings-2)
|
||||
See: [Strings](#java-strings)
|
||||
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ for (char c: word.toCharArray()) {
|
||||
}
|
||||
// Outputs: Q-u-i-c-k-R-e-f-
|
||||
```
|
||||
See: [Loops](#loops-2)
|
||||
See: [Loops](#java-loops)
|
||||
|
||||
|
||||
### Arrays
|
||||
@@ -96,7 +96,7 @@ String[] letters = {"A", "B", "C"};
|
||||
int[] mylist = {100, 200};
|
||||
boolean[] answers = {true, false};
|
||||
```
|
||||
See: [Arrays](#arrays-2)
|
||||
See: [Arrays](#java-arrays)
|
||||
|
||||
|
||||
### Swap
|
||||
@@ -139,7 +139,7 @@ if (j == 10) {
|
||||
System.out.println("I also don't");
|
||||
}
|
||||
```
|
||||
See: [Conditionals](#conditionals-2)
|
||||
See: [Conditionals](#java-conditionals)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ unset($float); // Delete variable
|
||||
$str1 = "How are you?";
|
||||
$str2 = 'Fine, thanks';
|
||||
```
|
||||
See: [Types](#types)
|
||||
See: [Types](#php-types)
|
||||
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ $hello = "Hello, ";
|
||||
$hello .= "World!";
|
||||
echo $hello; # => Hello, World!
|
||||
```
|
||||
See: [Strings](#strings-2)
|
||||
See: [Strings](#php-strings)
|
||||
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ unset($num[2]); // Delete variable
|
||||
print_r($num); # => 1 3 7 9 11
|
||||
echo count($num); # => 5
|
||||
```
|
||||
See: [Arrays](#arrays-2)
|
||||
See: [Arrays](#php-arrays)
|
||||
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ $y = 2;
|
||||
$sum = $x + $y;
|
||||
echo $sum; # => 3
|
||||
```
|
||||
See: [Operators](#operators-2)
|
||||
See: [Operators](#php-operators)
|
||||
|
||||
|
||||
### Include {.row-span-3}
|
||||
@@ -131,7 +131,7 @@ function add($num1, $num2 = 1) {
|
||||
echo add(10); # => 11
|
||||
echo add(10, 5); # => 15
|
||||
```
|
||||
See: [Functions](#functions-3)
|
||||
See: [Functions](#php-functions)
|
||||
|
||||
|
||||
|
||||
@@ -171,7 +171,7 @@ class Student {
|
||||
}
|
||||
$alex = new Student("Alex");
|
||||
```
|
||||
See: [Classes](#classes-2)
|
||||
See: [Classes](#php-classes)
|
||||
|
||||
|
||||
|
||||
@@ -214,13 +214,13 @@ See also: [Integers](https://www.php.net/manual/en/language.types.integer.php)
|
||||
```php
|
||||
echo 'this is a simple string';
|
||||
```
|
||||
See: [Strings](#strings-3)
|
||||
See: [Strings](#php-strings)
|
||||
|
||||
### Arrays
|
||||
```php
|
||||
$arr = array("hello", "world", "!");
|
||||
```
|
||||
See: [Arrays](#arrays-3)
|
||||
See: [Arrays](#php-arrays)
|
||||
|
||||
|
||||
### Float (Double)
|
||||
@@ -695,7 +695,7 @@ foreach ($a as $k) {
|
||||
echo $k;
|
||||
}
|
||||
```
|
||||
See: [Array iteration](#value-iteration)
|
||||
See: [Array iteration](#php-value-iteration)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@ message += "Part 2."
|
||||
>>> f'{num} + 10 = {num + 10}'
|
||||
'10 + 10 = 20'
|
||||
```
|
||||
See: [Python F-Strings](#python-f-strings-since-python-3-6)
|
||||
See: [Python F-Strings](#python-f-strings-since-python)
|
||||
|
||||
|
||||
|
||||
@@ -179,7 +179,7 @@ multi_string = """Multiline Strings
|
||||
Lorem ipsum dolor sit amet,
|
||||
consectetur adipiscing elit """
|
||||
```
|
||||
See: [Strings](#strings-2)
|
||||
See: [Strings](#python-strings)
|
||||
|
||||
|
||||
|
||||
@@ -213,7 +213,7 @@ list2 = [True, False, False]
|
||||
list3 = [1, 5, 7, 9, 3]
|
||||
list4 = list((1, 5, 7, 9, 3))
|
||||
```
|
||||
See: [Lists](#lists-3)
|
||||
See: [Lists](#python-lists)
|
||||
|
||||
|
||||
### Tuple
|
||||
|
||||
@@ -50,11 +50,11 @@ redis> GET mykey
|
||||
|
||||
|
||||
### Basic Data types
|
||||
- [Strings](#string-command)
|
||||
- [Lists](#list-command)
|
||||
- [Hashes](#hash-command)
|
||||
- [Sets](#set-command)
|
||||
- [Sorted Sets](#sorted-set-command)
|
||||
- [Strings](#redis-string-command)
|
||||
- [Lists](#redis-list-command)
|
||||
- [Hashes](#redis-hash-command)
|
||||
- [Sets](#redis-set-command)
|
||||
- [Sorted Sets](#redis-sorted-set-command)
|
||||
|
||||
Redis supports 5 basic data types
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ h1 {
|
||||
@include heading-font;
|
||||
}
|
||||
```
|
||||
See: [Mixins](#mixins-2)
|
||||
See: [Mixins](#sass-mixins)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ str1 = "I'm a string."
|
||||
str2 = "You can \"quote\" me."
|
||||
str3 = "Name\tJos\u00E9\nLoc\tSF."
|
||||
```
|
||||
See: [Strings](#strings)
|
||||
See: [Strings](#toml-strings)
|
||||
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ See: [Strings](#strings)
|
||||
name = "Tom Preston-Werner"
|
||||
dob = 1979-05-27T07:32:00-08:00
|
||||
```
|
||||
See: [Tables](#tables)
|
||||
See: [Tables](#toml-tables)
|
||||
|
||||
|
||||
### Array
|
||||
|
||||
Reference in new issue
Block a user