A Python library to build a styleguide from a CSS manifest file

A Python library to build a styleguide from a CSS manifest file. It is way of building a styleguide without to write declarations inside CSS comments in your stylesheets. You build a manifest in a dedicated CSS file and it will be parsed and serialized so you can use it in your code or templates to build a styleguide. Why a dedicated CSS file for a manifest ? Because it can be automatically writed from your Sass sources. Obviously it […]

Read more

Line profile analysis output analyser in python

This repository is related to the analysis of crystals containing dislocations by X-ray diffraction. It is part of a project conducted during a research internship at the laboratory of material and structural sciences of the École Nationale Supérieure des Mines de Saint-Étienne. Three python packages have been developed to conduct line profile analyses based on simulation results: lpa.input (line profile analysis input generator) lpa.xrd (line profile analysis x-ray diffraction simulation program) lpa.output (line profile analysis output analyzer) The package lpa.output […]

Read more

Python bindings for Raspberry Pi HX711 C++ Library

Python bindings for Raspberry Pi HX711 C++ Library Sample Output The .gif above illustrates the output of a simple Python script on a Raspberry Pi Zero W where the HX711 chip was operating at 80Hz. In this example, each time the .weight function is called the median of three samples was used to calculate the weight in grams. Examples SimpleHX711 Example from HX711 import * # create a SimpleHX711 object using GPIO pin 2 as the data pin, # GPIO […]

Read more

Open recent VS Code folders and files using Ulauncher

💻Open recent VS Code folders and files using Ulauncher. Quickly open recently-opened VS Code project directories and files. Install Requirements Ulauncher 5 Python >= 3 fuzzywuzzy module. Install this using pip: pip install fuzzywuzzy Steps Ulauncher > Preferences > Extensions > Add extension Paste the following URL: https://github.com/plibither8/ulauncher-vscode-recent This extension should now be set up and work. Usage Default keyword to trigger this extension is code. This can be changed in the preferences. License MIT GitHub https://github.com/plibither8/ulauncher-vscode-recent    

Read more

A python bot created for the Pycord community

Robocord is a bot created for the community of the Pycord Server. Just a bot created for Pycord Server. You can start pull requests, I will check it and if its good I will add it to the bot.👍 I recommend you do not try to install the whole code and copy it, since certain things here and there are not really defined, for example, token. Some variables are stored in env files, so you might get a lot of […]

Read more

A Python script to disable LK verification in Amazon Preloader images and boot/recovery image verification in Amazon LK images

Simple Python(3) script to disable LK verification in Amazon Preloader images and boot/recovery image verification in Amazon LK (“Little Kernel”) images. Requirements Python 3 (with json5 – pip3 install -r requirement.txt). Preloader &/or LK from an amazon device. Notice Use this tool at your own risk. I am not responsible for bricked devices. Please BACKUP your PL/LK before using this tool. Please do not redistribute images that have been modified with this tool as after all, all images are property […]

Read more

IG Trading Algos and Scripts in Python

IG Trading Algos and Scripts in Python This project is a collection of my work over 2 years building IG Trading Algorithms + Scripts, and Donations would be much appreciated. The Data Folder holds instrument data, raw and cleaned: .csv files are intended to be used for pandas dataframes The algorithms follow a mvc format each controller calls a algorithm to run (some have been commented out) Create a file holding your API keys and state its path in predefined_functions […]

Read more

Pass arguments by reference in Python

Pass arguments by reference—in Python! byrefis a decorator that allows Python functions to declare reference parameters, with similar semantics to C++’s T& or C#’s ref T. Any modifications made within the function to these parameters will be picked up by the caller. Usage from byref import byref @byref(“x”) def add(x, y, /): x += y a = 60 add(a, 40) print(f”{a}!”) # this prints 100! Motivation I thought it would be funny.

Read more

A PyTorch-based toolkit for Math Word Problem (MWP) solving

Doc|Model|Dataset|Paper MWPToolkit is a PyTorch-based toolkit for Math Word Problem (MWP) solving. It is a comprehensive framework for research purpose that integrates popular MWP benchmark datasets and typical deep learning-based MWP algorithms. Our framework has the following architecture. You could utilize our toolkit to evaluate the build-in datasets, apply it to process your raw data copies or develop your own models. Figure: The Overall Framework of MWP Toolkit News Characteristics Unification and Modularization. We decouple solvers    

Read more

XKNX – An Asynchronous KNX Library Written in Python

Documentation See documentation at: https://xknx.io/ Help We need your help for testing and improving XKNX. For questions, feature requests, bug reports either join the XKNX chat on Discord or write an email. Development You will need at least Python 3.8 in order to use XKNX. Setting up your local environment: Install requirements: pip install -r requirements/testing.txt Install pre-commit hook: pre-commit install Home-Assistant Plugin XKNX contains a plugin for the Home Assistant automation platform Example “””Example for switching a light on […]

Read more
1 34 35 36 37 38 48