Skip to content

Instantly share code, notes, and snippets.

:shipit:
Focusing

Albert Jiménez jsalbert

:shipit:
Focusing
Block or report user

Report or block jsalbert

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View center_crop_image
from PIL import Image
def center_crop(image):
# crop to ratio, center
w, h = image.size
w_center = w/2
h_center = h/2
View create_folder
import os
def mkdir(path):
"""
Args:
path: Path where directory will be created
Returns: Nothing. Creates directory with the path specified
You can’t perform that action at this time.