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
| #!/bin/bash | |
| # Generate SSL certificates if they don't exist | |
| if [ ! -f key.pem ] || [ ! -f cert.pem ]; then | |
| openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes -subj "/CN=localhost" >/dev/null 2>&1 | |
| fi | |
| # Start HTTPS server | |
| http-server -S -C cert.pem -K key.pem -p 8080 |
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 expand(node) { | |
| // Modify styles to ensure the content is fully visible | |
| node.style.overflow = "visible"; // Remove any clipping | |
| node.style.maxHeight = "none"; // Remove height constraints | |
| node.style.height = "auto"; // Let it expand fully | |
| node.style.maxWidth = "none"; // Remove width constraints | |
| node.style.width = "auto"; // Adjust the width | |
| // Optional: If the node has child elements with hidden content | |
| node.querySelectorAll("*").forEach((child) => { |
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
| flutter::PluginRegistrarWindows* registrar = | |
| flutter::PluginRegistrarManager::GetInstance() | |
| ->GetRegistrar<flutter::PluginRegistrarWindows>(plugin_registrar_ref); | |
| auto native_window = registrar->GetView()->GetNativeWindow(); |
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
| # don't put duplicate lines or lines starting with space in the history. | |
| # See bash(1) for more options | |
| HISTCONTROL=ignoreboth | |
| # append to the history file, don't overwrite it | |
| shopt -s histappend | |
| # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) | |
| HISTSIZE=10000000 | |
| HISTFILESIZE=20000000 |
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
| diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp | |
| index 9979a26cf115..1b0fd9414088 100644 | |
| --- a/llvm/tools/llvm-objdump/llvm-objdump.cpp | |
| +++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp | |
| @@ -1754,7 +1754,7 @@ static void disassembleObject(const Target *TheTarget, ObjectFile &Obj, | |
| // denoted as a word/short etc. | |
| if (!MappingSymbols.empty()) { | |
| char Kind = getMappingSymbolKind(MappingSymbols, Index); | |
| - DumpARMELFData = Kind == 'd'; | |
| + DumpARMELFData = !DisassembleAll && Kind == 'd'; |
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
| #include <time.h> | |
| #include <ctime> | |
| #include <iostream> | |
| #include <vector> | |
| #ifdef _WIN32 | |
| #include <Windows.h> | |
| #endif | |
| class HighResolutionTimer { |
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
| #!python3 | |
| import pefile | |
| SYMBOLS_SERVER = 'https://msdl.microsoft.com/download/symbols' | |
| def main(): | |
| pe = pefile.PE('C:/Windows/System32/kernel32.dll', fast_load=True) | |
| pe.parse_data_directories() | |
| for directory in pe.DIRECTORY_ENTRY_DEBUG: |
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 extract(n, m) { | |
| let results = []; | |
| n = BigInt(n); | |
| m = BigInt(m) | |
| function factorial(n) { | |
| let result = 1n; | |
| for (let i = 2n; i <= n; ++i) | |
| result *= i; | |
| return result; |
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
| #include <stdio.h> | |
| #include <stdint.h> | |
| #include <stdlib.h> | |
| int main(int argc, char** argv) { | |
| unsigned long long n = strtoull(argv[1], NULL, 0); | |
| while (n != 0) { | |
| int where = __builtin_ctzll(n); | |
| printf("%d bit set.\n", where); | |
| n &= ~(1ULL << where); |
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
| #include <errno.h> | |
| #include <fcntl.h> | |
| #include <linux/fcntl.h> | |
| #include <linux/ioctl.h> | |
| #include <linux/types.h> | |
| #include <linux/unistd.h> | |
| #include <stdio.h> | |
| #include <sys/ioctl.h> | |
| #include <sys/mman.h> | |
| #include <sys/stat.h> |
NewerOlder