A Home Assistant custom component to pull daily CPAP data from ResMed’s myAir service using an undocumented API

This component will set up the following platforms. Platform Description sensor Show info from the myAir API. Installation Using the tool of choice open the directory (folder) for your HA configuration (where you find configuration.yaml). If you do not have a custom_components directory (folder) there, you need to create it. In the custom_components directory (folder) create a new folder called resmed_myair. Download all the files from the custom_components/resmed_myair/ directory (folder) in this repository. Place the    

Read more

Creates a magic square by randomly generating a list until the list happens to be a magic square

Creates a magic square by randomly generating a list until the list happens to be a magic square. Done as simply as possible… Why? I wanted to remake a homework assignment I did two years ago, in one line of code How long did this take you? About an hour [but making this file is only adding to the amount of time wasted] Does this even work? How does it work? I’m glad you asked. To be honest, I’m not […]

Read more

A tool to convert colorful pictures to GB Studio-compatible colorized backgrounds

A tool to convert colorful pictures to GB Studio-compatible colorized backgrounds. Made by NalaFala/Yousurname/Y0UR-U5ERNAME. Requirements Python (install from https://www.python.org/downloads/) Pillow (install using the instructions here) Run the program using the command py img2gbc.py. The program will ask for the file location of the image. It will resize the image to 160×144 and output a colorized image (note that the colors in this image are not 15-bit) and an uncolorized image (to use in GB Studio). It will also output palette […]

Read more

Instagram-follower-bot – An Instagram follower bot written in Python

An Instagram follower bot written in Python. The bot follows the follower of which account you want. e.g. (You want to follow @username’s followers) and you can take follow back from his followers. Hereby, you will earn more followers. Download the Python 3 installer package from the official website and install it, if not installed previously. Run the following in the terminal to install the modules to run your program without excussions. Also to use this bot, you should download […]

Read more

Fake news detector filters – Smart filter project allow to classify the quality of information and web pages

fake-news-detector-1.0 Lists, lists and more lists… Spam filter list, quality keyword list, stoplist list, top-domains urls list, news agencies websites list, university websites list, business websites lists and government organizations lists. This gives us an initial score for the authority presenting the information. If we can verify the source we are on the right track for building a fake news detector. SPAM FILTER The spam filter also gives us clues on the quality of the source. TESTING, TESTING and TESTING […]

Read more

Simple Python script that dumps a Wikidot wiki forum into JSON structures

Script is partially based on 2stacks by bluesoul: https://github.com/scuttle/2stacks To dump a Wiki’s forum, edit config.py and put the required Wiki name (default — scp-wiki, which is the SCP EN community). If your forum is too large, you may edit threads parameter in config.py, however make sure you don’t overload Wikidot with requests — no one knows what that may result in. Then make sure you have the following Python packages: beautifulsoup4 Run python . to start dumping. Note: incremental […]

Read more
1 47 48 49