Skip to content
View bgeron's full-sized avatar
Block or Report

Block or report bgeron

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned

  1. diff-pdf-visually diff-pdf-visually Public

    Quickly check whether there is a visible difference between two PDFs.

    Python 55 8

  2. Converts an image to a scatter plot. Converts an image to a scatter plot.
    1
    # CC-BY 2.0 by bgeron
    2
    from PIL import Image; import matplotlib.pyplot as plt, pandas as pd
    3
    a = Image.open("source.png")
    4
    b = Image.blend(a, Image.new(a.mode, a.size, "white"), .92).convert(mode="1")
    5
    df = pd.DataFrame(((x,-y) for x in range(b.width) for y in range(b.height) if not b.getpixel((x,y))), columns=("x","y"))
  3. rusty-plasma/smallbigint rusty-plasma/smallbigint Public

    Big integer types that have a small on-stack representation for small values. Uses num-bigint internally.

    Rust 7

  4. character-snippets character-snippets Public

    Convert a TOML file in a certain format to a Visual Studio Code snippets file. Contains many useful snippets by default: https://gist.github.com/bgeron/1c0e1422890b2bbd899738b1c22ce3cc

    Rust 1