A python based NFT generator which programatically generates unique images using weighted layer files

nft-generator-py is a python based NFT generator which programatically generates unique images using weighted layer files. The program is simple to use, and new layers can be added by adding a new layer object and adding names, weights, and image files to the object. You can View The Demo here. How it works A call to generate_unique_images(amount, config) is made, which is the meat of the application where all the processing happens. The config object is read and for each […]

Read more

Secret Service Email Encryption/Steganography

SecretService Decoy Encrypted Emailer For use with gmail currently. Will add other mailers later. This system uses ECC/ECIES (Elliptic Curve Cryptography) to exchange keys with a user and enables them to send secret messages back and forth. When we say secret, it means there is a decoy message that sits in your normal gmail inbox, while the real message is accessible by the app and will decrypt your messages. How to operate: Step 1: pip3 install -r requirements (recommended to […]

Read more

Takes real time stream from Enphase Envoy and publishes to mqtt broker

A Python script that takes a real time stream from Enphase Envoy and publishes to a mqtt broker. This can then be used within Home Assistant or for other applications. The data updates at least once per second with negligible load on the Envoy. Requirements An Enphase Envoy. Note – Tested with Envoy-S-Metered-EU A system running python3 with the paho.mqtt python library The normal way to install paho.mqtt is pip install paho-mqtt If that doesn’t work, try git clone https://github.com/eclipse/paho.mqtt.python […]

Read more

Leetcode Practice for python

Description This is my LeetCode Practice. Visit LeetCode Website for detailed question description.The code in this repository has already been ALL ACCEPTED by LeetCode. Environment Python >= 3.6 gcc >= 6.3.0 g++ >= 6.3.0 Getting Started git clone https://github.com/LeoTheBestCoder/LeetCode.git Python file python3 example.py C filegcc example.c./a.out (for Linux user).a.exe (for Windows user) cpp fileg++ example.cpp./a.out (for Linux user).a.exe (for Windows user) Feedback and Bug Report If you find any bugs in my code or you have any suggestions, please feel […]

Read more

A full-reference quality metric designed to analyze how good image and video restoration methods

ERQA – a full-reference quality metric designed to analyze how good image and video restoration methods (SR, deblurring, denoising, etc) are restoring real details. It is part of MSU Video Super Resolution Benchmark project. Quick start Run pip install erqa and run it from command line or directly from Python code. Command line python -m erqa /path/to/target.png /path/to/gt.png Python code    

Read more

Enables increment operators in Python with a bytecode hack

Enable ++x and –x expressions in Python What’s this? By default, Python supports neither pre-increments (like ++x) nor post-increments (like x++). However, the first ones are syntactically correct since Python parses them as two subsequent +x operations, where + is the unary plus operator (same with –x and the unary minus). They both have no effect, since in practice -(-x) == +(+x) == x. This module turns the ++x-like expressions into x += 1 at the bytecode level. Increments and […]

Read more

Data from popular CS:GO website hltv.org

🎮 Data from popular CS:GO website hltv.org Install Usage The public methods can be reached using HLTVClient from hltv_data import HLTVClient hltv_client = HLTVClient() Current ranking hltv_client.get_ranking() Response: [ {“position”: 1, “name”: “Natus Vincere”, “points”: 1000}, {“position”: 2, “name”: “Gambit”,

Read more

Demonstration that AWS IAM policy evaluation docs are incorrect

The flowchart from the AWS IAM policy evaluation documentation page, as of 2021-09-12, and dating back to at least 2018-12-27, is the following: The flowchart indicates that an Allow in a resource policy causes a final decision of Allow, before permissions boundaries have a chance to cause an implicit Deny. This would mean a resource policy could unilaterally grant access to a principal, circumventing its permissions boundary. However, this is only partially correct. Resource policies cannot unilaterally grant access to […]

Read more

Middleware that Prints the number of DB queries to the runserver console

Inspired by this post by David Szotten, this project gives you a middleware that prints DB query counts in Django’s runserver console output. Installation pip install django-querycount Just add querycount.middleware.QueryCountMiddleware to your MIDDLEWARE. Notice that django-querycount is hard coded to work only in DEBUG mode set to true Settings There are two possible settings for this app: The first defines threshold values used to color output, while the second allows you customize requests that will be ignored by the middleware. […]

Read more
1 19 20 21 22 23 48