Skip to content

Instantly share code, notes, and snippets.

View ipruning's full-sized avatar
👨‍💻
Coding

ipruning ipruning

👨‍💻
Coding
  • Edinburgh, UK ⇌ Shanghai, China
  • X @ipruning
View GitHub Profile
@ipruning
ipruning / surfingkeys.js
Last active November 28, 2023 03:52
surfingkeys.js
settings.scrollStepSize = 200;
// set theme
settings.theme = `
.sk_theme {
font-family: MonoLisa Nerd Font;
font-size: 14pt;
background: #24272e;
color: #abb2bf;
def ipv4_to_uint32(ip_address: str) -> int:
"""Convert an IPv4 address string to a 32-bit unsigned integer.
This function parses an IPv4 address string and converts it to its
equivalent 32-bit unsigned integer representation.
Args:
ip_address (str): A string representing an IPv4 address in dotted-decimal notation.
Raises: