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
| <?php | |
| namespace App\Http\Controllers; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Pagination\Paginator; | |
| use Illuminate\Support\Collection; | |
| use Illuminate\Pagination\LengthAwarePaginator; | |
| use Illuminate\Support\Str; | |
| use Illuminate\Support\Facades\Validator; |
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
| function generateGuid() { | |
| return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, c => { | |
| const r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8); | |
| return v.toString(16); | |
| }); | |
| } | |
| function generateCode(length) { | |
| let code = ""; | |
| for (let index = 0; index < length; index++) { |
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
| private static string ColumnIndexToColumnLetter(int columnIndex) | |
| { | |
| var index = columnIndex; | |
| var columnLetter = string.Empty; | |
| var mod = 0; | |
| while (index > 0) { | |
| mod = (index - 1) % 26; | |
| columnLetter = (char)(65 + mod) + columnLetter; | |
| index = (index - mod) / 26; |
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
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters] | |
| "TcpTimedWaitDelay"=dword:0000001e | |
| "MaxUserPort"=dword:0000fffe | |
| "TcpNumConnections"=dword:00fffffe | |
| "TcpMaxDataRetransmissions"=dword:00000005 |
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
| class DragArea extends HookWidget { | |
| final Widget child; | |
| const DragArea({super.key, required this.child}); | |
| @override | |
| Widget build(BuildContext context) { | |
| final position = useState(Offset(100, 100)); | |
| return Stack( |