A script to generate a profile picture and a banner that show the same image on Discord

A script to generate a profile picture and a banner that show the same image on Discord. Installation / Update With pip (recommended) pip install –upgrade git+https://github.com/victorbnl/discord-pfp-banner-generator.git And make sure your python scripts directory[1] is in your path (pip should warn you if it’s not anyway). Without pip Clone this repo, install the dependencies with pip install -r requirements.txt, and run the following commands in the repo directory, replacing the command discord_pfp_banner_generator of the usage section by python3 discord_pfp_banner_generator. Usage […]

Read more

Home Assistant integration for MyEnergi devices

myenergi custom component for Home Assistant This is a very early release, will add more documentations soon! This component will set up the following platforms. HACS Installation Add this repository to “Custom repositories” Add and search for myenergi in HACS Install Manual 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) […]

Read more

A way to work on Pythonocc with a node editor, Ryven in that case

Pythonocc nodes for Ryven Here a way to work on Pythonocc with a node editor, Ryven in that case. To get it functional you will have to execute Ryven in an environment where pythonocc is installed. Install Ryven: https://github.com/leon-thomm/Ryven Install Pythonocc : https://github.com/tpaviot/pythonocc-core You just have to import the Nodes.py file in Ryven, then all nodes are available under the right-click of the mouse. Here a small example of a definition : https://www.youtube.com/watch?v=lUNYstrfvmg You can load this project saved in […]

Read more

CAPRI: Context-Aware Interpretable Point-of-Interest Recommendation Framework

This repository contains a framework for Recommender Systems (RecSys), allowing users to choose a dataset on a model based on their demand. CAPRI Overview ☑️ Prerequisites You will need below libraries to be installed before running the application: Python >= 3.4 NumPy >= 1.19 SciPy >= 1.6 PyInquirer >= 1.0.3 For a simple solution, you can simply run the below command in the root directory: pip install -r prerequisites.txt 🚀 Launch the Application Start the project by running the main.py […]

Read more

PyPika-ORM – ORM for PyPika SQL Query Builder

The package gives you ORM for PyPika with asycio support for a range of databases (SQLite, PostgreSQL, MySQL). Warning The project is in early pre-alpha state and not ready for production Requirements Installation pypyka-orm should be installed using pip: $ pip install pypika-orm You can install the required database drivers with: $ pip install pypika-orm[sqlite] $ pip install pypika-orm[postgresql] $ pip install pypika-orm[mysql] Usage from pypika_orm import Model, fields class Role(Model): id = fields.Auto() name = fields.Varchar(max_length=100, default=’user’) class User(Model): […]

Read more

Frustratingly Simple Pretraining Alternatives to Masked Language Modeling

This is the official implementation for “Frustratingly Simple Pretraining Alternatives to Masked Language Modeling” (EMNLP 2021). Requirements torch transformers datasets scikit-learn tensorflow spacy How to pre-train 1. Clone this repository git clone https://github.com/gucci-j/light-transformer-emnlp2021.git 2. Install required packages cd ./light-transformer-emnlp2021 pip install -r requirements.txt requirements.txt is located just under light-transformer-emnlp2021. We also need spaCy’s en_core_web_sm for preprocessing. If you have not installed this model, please run python -m spacy download en_core_web_sm. 3. Preprocess datasets cd ./src/utils python preprocess_roberta.py –path=/path/to/save/data/ You need […]

Read more
1 515 516 517 518 519 973