root = true
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
This file contains hidden or 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
| const delay = (ms: number): Promise<void> => | |
| new Promise(r => setTimeout(r, ms)); | |
| const genRandomSleepInterval = (min: number, max: number): number => | |
| Math.floor(Math.random() * max) + min; | |
| export async function* parallelize<T = unknown>({ | |
| funcs, | |
| concurrency = Infinity, | |
| sleepInterval = 0 |
This file contains hidden or 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
| ... | |
| using Windows.ApplicationModel.Core; | |
| using Windows.UI; | |
| using Windows.UI.ViewManagement; | |
| private void ExtendAcrylicIntoTitleBar() | |
| { | |
| CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = true; | |
| var titleBar = ApplicationView.GetForCurrentView().TitleBar; | |
| titleBar.ButtonBackgroundColor = Colors.Transparent; |
This file contains hidden or 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
| $bot_mex["reply_markup"] = json_encode( | |
| [ | |
| "keyboard" => [ | |
| [ | |
| ["text" => "0"], | |
| ["text" => "1"], | |
| ["text" => "2"], | |
| ["text" => "3"], | |
| ["text" => "4"], | |
| ], |