Skip to content

Instantly share code, notes, and snippets.

View jlazovskis's full-sized avatar

Jānis Lazovskis jlazovskis

View GitHub Profile
@jlazovskis
jlazovskis / color_rm_layers.py
Last active December 13, 2020 18:00
Color layers from reMarkable pdfs
# Load packages
import subprocess
from os import listdir
# Tested on output from rm v2.4.1.30
# Input: in_file : pdf file from Remarkable
# out_name : name of pdf file that will be produced
# out_dir : directory in which produced pdf file will be
# color_dict : dictionary of colors to use for layers. Keys are integers starting at 1. Colors are RGB (0-255) lists
# page_start : which page to start at
@jlazovskis
jlazovskis / equal_density_grid_heatmap.py
Created June 9, 2022 20:07
Group data points into similar sized groups and use that as a grid for a heatmap
################################
##
## Code
##
################################
# Load packages
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.patches as patches