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 socket | |
import urllib.parse | |
ADAPTER_TYPE = { | |
"2": "DX2", | |
"3": "DX3", | |
"4": "DX4", | |
} | |
DEVICE_TYPE = { | |
"NA": "Unknown", |
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 ipaddress | |
import os | |
import socket | |
import subprocess | |
def parse_ip_port(c): | |
ip_h, port_h = c.split(":") | |
return str(ipaddress.IPv4Address(socket.htonl(int(ip_h, 16)))), int(port_h, 16) |
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
# Compile: nim c --mm:arc --threads:on --threadanalysis:off threadbugs.nim | |
import threadpool | |
type | |
DataItem = object | |
value: int | |
ContainerItem = object | |
data: ref DataItem |
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 dynlib | |
type | |
PixelRgba = object | |
r, g, b, a: uint8 | |
Image = ref object of RootObj | |
width: int | |
height: int |
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 random | |
type | |
TileType = enum | |
wall, path | |
Direction = enum | |
north, east, south, west | |
Playfield = object |
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 sqlite3 | |
import datetime | |
import json | |
import csv | |
import sys | |
INDEX_PATH = "gogdb_index.sqlite3" | |
START_DATE = "2021-01-12" | |
conn = sqlite3.connect(INDEX_PATH) |
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
# Compile: gcc aoc_day1.s -nostdlib -fPIC -o aoc_day1 | |
.intel_syntax noprefix | |
.data | |
.section .rodata | |
filename: | |
.string "input_1.txt" | |
errormsg_open: | |
.string "Failed to open file\n" | |
.set errormsg_open_len, . - errormsg_open - 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
Pernauer Chemiewerke products and their detergemtinfo.at number. | |
http://www.detergentinfo.at/PR<num>.php | |
51 Clever Glasreiniger 1000ml | |
102 Clever Weichspüler Wildrose 1,5l | |
103 Clever Weichspüler Wasserlilie 1,5l | |
125 Clever Allzweckreiniger 1000ml | |
164 bi good Allzweckreiniger 1000ml | |
165 bi good Badreiniger 500mL | |
166 bi good Glasreiniger 500mL |
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 re | |
import string | |
import os | |
LOGFILE_NAME = os.path.expanduser( | |
"~/.steam/steam/steamapps/common/Team Fortress 2/tf/console.log") | |
# TF2 launch options: -rpt | |
f = open(LOGFILE_NAME) |
NewerOlder