Skip to content

Instantly share code, notes, and snippets.

View singh1114's full-sized avatar

Ranvir Singh singh1114

View GitHub Profile
@singh1114
singh1114 / post.html
Last active October 30, 2019 18:15
Basic jekyll post.html file.
---
layout: default
---
<article class="post">
<h1>{{ page.title }}</h1>
<div class="date">
Written on {{ page.date | date: "%B %e, %Y" }}
</div>
@jayvdb
jayvdb / missing-license-task.md
Last active December 29, 2021 19:53
Missing license GitHub task

Add a missing license to a repository

Three steps:

  1. Find a repository without a LICENSE or LICENSE.md file.
  2. Determine the most appropriate license for the repository.
  3. Create a pull request adding a LICENSE or LICENSE.md file.

import sys
from PIL import Image
from PIL.ExifTags import TAGS, GPSTAGS
def get_exif_data(image):
"""Returns a dictionary from the exif data of an PIL Image item. Also converts the GPS Tags"""
exif_data = {}
info = image._getexif()
if info: