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 log_ui_tree(component, depth) | |
| depth = depth or 0 | |
| local indent = string.rep("\t", depth) | |
| -- Log component name with indentation | |
| consul.log:_write_to_file(indent .. tostring(component:Id())) | |
| -- Get child count | |
| local count = component:ChildCount() |
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
| -- local t2 = debug.getregistry()[2] | |
| -- consul.log:info(consul.pretty(debug.getfenv(t2))) | |
| { | |
| ["BOOL_Stop_All_Attacking_Closest"] = false, | |
| ["Battle_Manager_Battle_Results"] = "function: 569B8978", | |
| ["CONST_WATCH_INTERVAL"] = 2000, | |
| ["Esc_Key_Pressed"] = "function: 569B88D0", | |
| ["PATROL_MANAGER_COULDNT_FIND_TARGET"] = 12, | |
| ["PATROL_MANAGER_DEFAULT_GUARD_RADIUS"] = 0, | |
| ["PATROL_MANAGER_DEFAULT_INTERCEPT_TIME"] = 10000, |
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 START ### | |
| void UndefinedFunction_1000a950(void) | |
| { |
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/sh | |
| xrandr --output VGA-2 --mode 1024x768 --pos 0x0; | |
| xterm & | |
| tint2 & | |
| exec openbox-session |
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
| import seaborn as sns | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| import argparse | |
| import os | |
| def parse_marlin_output(text_output): | |
| """ | |
| Parses Marlin's G29 T output robustly. | |
| It identifies only the actual data rows and ignores headers or other text. |
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
| -- clear the console output for a nice view | |
| consul.console.clear() | |
| -- shortcut for writing into consul console | |
| function wr(x) | |
| consul.console.write(x) | |
| end | |
| wr("how many alliances in battle?") | |
| wr(bm:alliances():count()) |
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
| -- Clear the console output for a clean view | |
| consul.console.clear() | |
| -- Shortcut function to write messages into the Consul console | |
| function wr(x) | |
| consul.console.write(x) | |
| end | |
| -- Get the first army from the first alliance | |
| local army1 = bm:alliances():item(1):armies():item(1) |
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 <ESP8266WiFi.h> | |
| #include <Wire.h> | |
| #include <INA226_WE.h> // Upewnij się, że ta biblioteka jest zainstalowana | |
| // --- Konfiguracja Sieci i Serwera --- | |
| const char *ssid = "ESP_POMIAROWY"; | |
| WiFiServer server(80); | |
| // --- Konfiguracja INA226 --- | |
| #define I2C_ADDRESS 0x40 |
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
| llmx() { | |
| # If no query was provided, show usage and exit. | |
| if [ -z "$*" ]; then | |
| echo "Usage: llmx <your query for a command>" | |
| return 1 | |
| fi | |
| # --- HISTORY MANAGEMENT --- | |
| # 1. Manually add the command YOU just typed to the history. | |
| # We use $FUNCNAME instead of $0 for reliability. This is the fix. |
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
| import sys | |
| def fill_memory_with_strings(): | |
| """ | |
| Fills approximately 2GB of memory with unique strings. | |
| """ | |
| target_bytes = 2 * 1024 * 1024 * 1024 # 2 GB | |
| strings = [] | |
| total_size = 0 | |
| counter = 0 |