An implementation of multimap with per-item expiration backed up by Redis

An implementation of multimap with per-item expiration backed up by Redis. Description This lib is based on: https://quickleft.com/blog/how-to-create-and-expire-list-items-in-redis/ without the need for an extra job to delete old items. Values are internally stored on Redis using Sorted Sets : key1: { (score1, value1), (score2, value2), … } key2: { (score3, value3), (score4, value4), … } … Where the score is the timestamp when the value was added. We use the timestamp to filter expired values and when an insertion happens, […]

Read more

Voice Based Personal Assistant using natural language processing

We have built a Voice based Personal Assistant for people to access files hands free in their device using natural language processing. The features of the assistant are that it can open folders on the voice commands of the user, open files in that folder and also find words in that file and create new file containing pages that had the word user was looking for in the file.We have made this project on python using NLP and libraries like […]

Read more

Predict the latency time of the deep learning models

Step 1. Genernate random parameters and Run them sequentially : $ python3 collect_data.py -gp -ep -pp -pl pooling -num 10 -shuffle -d 1080ti Step 2. Data Timeline parser : $ python3 preprocess_data.py -pt -pl pooling -d 1080ti Step 3. Combine all raw data : $ python3 preprocess_data.py -c -pl pooling -d 1080ti Step 4. Split raw data to train and test data as performance prediction inputs $ python3 preprocess_data.py -sp -pl pooling -d 1080ti Step 5. Train Model :

Read more

Generate an ASCII Art from keyword put in the cli

ascii-art-generator-cli Generate an ASCII Art from keyword put in the cli Install git clone https://github.com/Nathanlauga/ascii-art-generator-cli cd ascii-art-generator-cli pip install -r requirements.txt pip install . Usage ascii-generator –help Usage: ascii-generator [OPTIONS] KEYWORD Shows differents ASCII Art given a keyword You can change the number of columns and the scale. There are 2 gray scale available 10 and 70 (default is 70) Options: -c, –cols INTEGER Number of columns for ASCII Art. -s, –scale FLOAT Height scale for ASCII Art. -m, –more-levels […]

Read more

Extentions to Pycharm code formatting tools

Extentions to Pycharm code formatting tools.Currently supported are flake8 and black on a selected code block. Usage Flake8 [PEP8] validation on selected code block Black formatting on selected code block Installation Install the repo (preferably in conda env or virtualenv): pip install git+https://github.com/haim0n/pycharm_ext_tools.git Add new external tool per utility (e.g. flake8) as follows: File -> Settings -> Tools -> External Tools -> ‘+’ (Add) For conda environment named dev fill in the params:

Read more

A package that allows you to create a key-value vault for storing variables in a global context

How to install? What is this? This is a package that allows you to create a key-value vault for storing variables in a global context. It allows you to set up a keyring with pre-defined constants which act as keys for the vault. These constants are then what is stored inside the vault. A key is just a string, but the value that the key is mapped to can be assigned to any type of object in Python. If the […]

Read more

Gradually automate your procedures, one step at a time

Gradually automate your procedures, one step at a time Inspired by https://blog.danslimmon.com/2019/07/15/ Features Main Features Converts a markdown file into interactive steps Saves results into another markdown file On 100% automated, saves results into a script file instead Ancillary features Sublists are marked like 1.1.3 (first step, first substep, third sub-substep) Go back one step Keywords All keywords are case insensitive. Starting keywords Start steps with these words to use them. Using these words also makes it clearer what you […]

Read more
1 370 371 372 373 374 928