-
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.
- Loading branch information
1 parent
22d4910
commit d23e638
Showing
38 changed files
with
243 additions
and
13 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -12,3 +12,4 @@ Product | |
basic | ||
logic | ||
loops | ||
math |
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,9 +1,57 @@ | ||
# math | ||
|
||
## ![a](./img/math/ling.jpg) | ||
- **effect:** | ||
- **effect:** Usually a digital block for assignment, the parameter can be negative or decimals. | ||
*** | ||
|
||
## ![a](./img/math/lingxling.jpg) | ||
- **effect:** | ||
- **effect:** Hexadecimal | ||
*** | ||
|
||
## ![a](./img/math/map.jpg) | ||
- **effect:** The two sets of data are mapped in equal proportions, which are commonly used to control analog value modules. | ||
*** | ||
|
||
## ![a](./img/math/yijiayi.jpg) | ||
- **effect:** Generally used for assignment after calculation | ||
*** | ||
|
||
## ![a](./img/math/square.jpg) | ||
- **effect:** Perform selected operations on parameters | ||
*** | ||
|
||
## ![a](./img/math/sin.jpg) | ||
- **effect:** Graph formula related operations | ||
*** | ||
|
||
## ![a](./img/math/pai.jpg) | ||
- **effect:** Needless to say | ||
*** | ||
|
||
## ![a](./img/math/event.jpg) | ||
- **effect:** Determine the type of the parameter and return a Boolean value | ||
*** | ||
|
||
## ![a](./img/math/round.jpg) | ||
- **effect:** Perform operations such as rounding parameters | ||
*** | ||
|
||
## ![a](./img/math/sum.jpg) | ||
- **effect:** Get the relevant attributes of the list | ||
*** | ||
|
||
## ![a](./img/math/remainder.jpg) | ||
- **effect:** Take the remainder | ||
*** | ||
|
||
## ![a](./img/math/constrain.jpg) | ||
- **effect:** Limit the range of numbers. If it is less than the range, it is assigned to parameter 2, and if it is greater than the range, it is assigned to parameter 3. | ||
*** | ||
|
||
## ![a](./img/math/random.jpg) | ||
- **effect:** Get a random integer in the specified interval | ||
*** | ||
|
||
## ![a](./img/math/randomfraction.jpg) | ||
- **effect:** Get random scores | ||
*** |
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 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 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 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 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
Large diffs are not rendered by default.
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 |
---|---|---|
|
@@ -12,3 +12,4 @@ Product | |
basic | ||
logic | ||
loops | ||
math |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,9 +1,57 @@ | ||
# math | ||
|
||
## ![a](./img/math/ling.jpg) | ||
- **effect:** | ||
- **effect:** Usually a digital block for assignment, the parameter can be negative or decimals. | ||
*** | ||
|
||
## ![a](./img/math/lingxling.jpg) | ||
- **effect:** | ||
- **effect:** Hexadecimal | ||
*** | ||
|
||
## ![a](./img/math/map.jpg) | ||
- **effect:** The two sets of data are mapped in equal proportions, which are commonly used to control analog value modules. | ||
*** | ||
|
||
## ![a](./img/math/yijiayi.jpg) | ||
- **effect:** Generally used for assignment after calculation | ||
*** | ||
|
||
## ![a](./img/math/square.jpg) | ||
- **effect:** Perform selected operations on parameters | ||
*** | ||
|
||
## ![a](./img/math/sin.jpg) | ||
- **effect:** Graph formula related operations | ||
*** | ||
|
||
## ![a](./img/math/pai.jpg) | ||
- **effect:** Needless to say | ||
*** | ||
|
||
## ![a](./img/math/event.jpg) | ||
- **effect:** Determine the type of the parameter and return a Boolean value | ||
*** | ||
|
||
## ![a](./img/math/round.jpg) | ||
- **effect:** Perform operations such as rounding parameters | ||
*** | ||
|
||
## ![a](./img/math/sum.jpg) | ||
- **effect:** Get the relevant attributes of the list | ||
*** | ||
|
||
## ![a](./img/math/remainder.jpg) | ||
- **effect:** Take the remainder | ||
*** | ||
|
||
## ![a](./img/math/constrain.jpg) | ||
- **effect:** Limit the range of numbers. If it is less than the range, it is assigned to parameter 2, and if it is greater than the range, it is assigned to parameter 3. | ||
*** | ||
|
||
## ![a](./img/math/random.jpg) | ||
- **effect:** Get a random integer in the specified interval | ||
*** | ||
|
||
## ![a](./img/math/randomfraction.jpg) | ||
- **effect:** Get random scores | ||
*** |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
-- function_test2.lua 脚本文件 | ||
function testFun(tab,fun) | ||
for k ,v in pairs(tab) do | ||
print(fun(k,v)); | ||
end | ||
end | ||
|
||
|
||
tab={key1="val1",key2="val2"}; | ||
testFun(tab, | ||
function(key,val)--匿名函数 | ||
return key.."="..val; | ||
end | ||
); |