Skip to content

Instantly share code, notes, and snippets.

View bhosalems's full-sized avatar

Mahesh Bhosale bhosalems

View GitHub Profile
jendelel /
Last active December 9, 2023 16:52
from skimage.draw import polygon
import numpy as np
import plistlib
def load_inbreast_mask(mask_path, imshape=(4084, 3328)):
This function loads a osirix xml region as a binary numpy array for INBREAST
@mask_path : Path to the xml file
amitsaha / ls.rst
Last active December 29, 2023 19:00
How does `ls` work?

How does ls work?

I wanted to be really able to explain to a fair amount of detail how does the program ls actually work right from the moment you type the command name and hit ENTER. What goes on in user space and and in kernel space? This is my attempt and what I have learned so far on Linux (Fedora 19, 3.x kernel).

How does the shell find the location of 'ls' ?