Skip to content

Instantly share code, notes, and snippets.

View n00mkrad's full-sized avatar

nmkd n00mkrad

View GitHub Profile
@n00mkrad
n00mkrad / win32codes_keyed_dict.json
Created February 13, 2025 10:30
Win32 Error Codes as JSON dictionary (return codes = key, name and description = value) to easily load into any application (e.g. as a Dictionary<int,string[]> in C#). [Feb 2025]
{
"0": [
"ERROR_SUCCESS",
"The operation completed successfully."
],
"1": [
"ERROR_INVALID_FUNCTION",
"Incorrect function."
],
"2": [
@n00mkrad
n00mkrad / win32codes_keyed.json
Created February 13, 2025 10:24
Win32 Error Codes as JSON dictionary (return codes are the keys) to easily load into any application. [Feb 2025]
{
"0": {
"Name": "ERROR_SUCCESS",
"Description": "The operation completed successfully."
},
"1": {
"Name": "ERROR_INVALID_FUNCTION",
"Description": "Incorrect function."
},
"2": {
@n00mkrad
n00mkrad / win32codes.json
Created February 13, 2025 10:24
Win32 Error Codes as JSON to easily load into any application. [Feb 2025]
[
{
"Code": "0",
"Name": "ERROR_SUCCESS",
"Description": "The operation completed successfully."
},
{
"Code": "1",
"Name": "ERROR_INVALID_FUNCTION",
"Description": "Incorrect function."
@n00mkrad
n00mkrad / merge_models.py
Created September 30, 2022 10:13
Merge SD Models
import os
import argparse
import torch
from tqdm import tqdm
parser = argparse.ArgumentParser()
parser.add_argument(
"-1",
"--first",