Skip to content

Instantly share code, notes, and snippets.

View Rachel030219's full-sized avatar
😶‍🌫️

Rachel Tang Rachel030219

😶‍🌫️
  • A planet in the solar system
View GitHub Profile
@Anthony-Hoo
Anthony-Hoo / picture_to_cie_diagram.py
Created December 19, 2023 06:51
Converts image input to CIE xy chromaticity coordinates with original pixel colour
from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
import time
from colour.plotting import *
def plot_xy_coordinates_with_color(xy_and_rgb_np, output_png_path):
start_time = time.time()
xy = xy_and_rgb_np[:, :2]
@feklee
feklee / README.md
Last active February 12, 2024 20:50
GnuPG on Termux for accessing USB smart card reader

Prerequisites

  • smart card reader supported by GnuPG

    I use [0.332][4], a mod of the [SCM332 V2][1] which is comparatively light and small. Previously, I was simply using the SCM332 V2 directly with an OTG adapter.

  • root access from Termux