Note
Highlights information that users should take into account, even when skimming.
Tip
Optional information to help a user be more successful.
Important
Crucial information necessary for users to succeed.
[!WARNING]
import std.sys; | |
struct StringTableEntry { | |
u32 length; | |
char *offset[this.length] : u32; | |
str string = this.offset [[export]]; | |
}; | |
struct MOHeader { | |
char magic[4]; |
Note
Highlights information that users should take into account, even when skimming.
Tip
Optional information to help a user be more successful.
Important
Crucial information necessary for users to succeed.
[!WARNING]
version: "3" | |
services: | |
db: | |
image: mysql:latest | |
environment: | |
MYSQL_DATABASE: 'fastapi-admin' | |
MYSQL_ROOT_PASSWORD: '123456' | |
ports: | |
- '3306:3306' | |
volumes: |
from pathlib import Path | |
# WARNING: Renaming is an irreversible operation, so it is better to use an absolute path | |
for path in sorted(Path('~/some_directory').rglob('*'), key=lambda p: len(p.parts), reverse=True): | |
# Rename and print new name | |
print(path.rename(path.with_name(path.name.lower()))) |
"""Specify parent of a tkinter widget | |
with a context manager""" | |
import tkinter as tk | |
from contextlib import contextmanager | |
@contextmanager | |
def set_parent(new_parent): | |
old_root = tk._default_root | |
tk._default_root = new_parent |
format binary as 'exe' | |
IMAGE_DOS_SIGNATURE equ 5A4Dh | |
IMAGE_NT_SIGNATURE equ 00004550h | |
PROCESSOR_AMD_X8664 equ 8664h | |
IMAGE_SCN_CNT_CODE equ 00000020h | |
IMAGE_SCN_MEM_READ equ 40000000h | |
IMAGE_SCN_MEM_WRITE equ 80000000h | |
IMAGE_SCN_CNT_INITIALIZED_DATA equ 00000040h | |
IMAGE_SUBSYSTEM_WINDOWS_GUI equ 2 | |
IMAGE_NT_OPTIONAL_HDR64_MAGIC equ 20Bh |