Skip to content

Instantly share code, notes, and snippets.

View Vizonex's full-sized avatar

Vizonex Vizonex

View GitHub Profile
@Vizonex
Vizonex / EventLoop.py
Created March 14, 2023 04:47
A little Concept I made inspired by Fastapi and discord.py as well as other decorator objects There's other interesting miscellaneous class objects in my code as well that you can take a look at if you want...
# The MIT License (MIT)
#
# Copyright © 2023 Vizonex
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the “Software”), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge,
# publish, distribute, sublicense, and/or sell copies of the Software,
@Vizonex
Vizonex / Readme.md
Last active February 16, 2023 23:39
An llhttp installer script for those working with python and C

This is An Installer Idea I had for those not cabable of using node-js to get or to build llhttp immediately into a small and portable virual enviornment and it is used to Compile the llhttp library for msvc compiler or for the gcc compiler to create a ".lib" & ".dll" file or a single ".a" file if your using the gcc compiler or anything besides windows. This is my alternative for installing such an amazing library and I'll proabably write one for libuv when I've figured out how to correctly install it because digging though and doing that one correctly is a nightmare.

This tool doesn't use the requests library for the sake of portability and arbitrary speed ups.

This will install the precompiled version of llhttp and get rid of other files that aren't needed it will then only grabbing nessesary files to run llhttp in C

@Vizonex
Vizonex / py_enum_to_c_enum.py
Last active February 14, 2023 18:22
A little snippet I made that will convert a python enum class into a C enum , this could be used to help you make Optimized C code.
# The MIT License (MIT)
#
# Copyright © 2023 Vizonex
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the “Software”), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge,
# publish, distribute, sublicense, and/or sell copies of the Software,
# and to permit persons to whom the Software is furnished to do so,
@Vizonex
Vizonex / cloudflare_error_enums.h
Last active August 30, 2023 00:36
Used to Parse and Diagnose Cloudflare Errors coming from either "error code:" or "error:"
/*
The MIT License (MIT)
Copyright © 2023 Vizonex
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the “Software”), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so,