Skip to content

Instantly share code, notes, and snippets.

@ShannonScott
ShannonScott / Nature.ipynb
Last active July 25, 2019 17:50 — forked from hackjutsu/Nature.ipynb
[Jupyter Notebook Demo 2] This is a #demo for Lepton's support of Jupyter Notebook viewer. #tags: astronomy, jupyter, python, science, forked
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ShannonScott
ShannonScott / plotting-with-Matplotlib.ipynb
Last active July 25, 2019 16:45 — forked from hackjutsu/plotting-with-Matplotlib.ipynb
[Jupyter Notebook Demo 4] This is a #demo for Lepton's support of Jupyter Notebook viewer. #forked #jupyter #python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ShannonScott
ShannonScott / draw_text_with_background_opencv.py
Last active July 25, 2019 16:36 — forked from aplz/draw_text_with_background_opencv.py
[OpenCV: draw text with background] #opencv #forked
import cv2 # opencv
import numpy as np
font_scale = 1.5
font = cv2.FONT_HERSHEY_PLAIN
# set the rectangle background to white
rectangle_bgr = (255, 255, 255)
# make a black image
img = np.zeros((500, 500))
@ShannonScott
ShannonScott / get_gists.py
Last active July 25, 2019 22:22 — forked from leoloobeek/get_gists.py
[Download Gists] Download all gists for a specific user. #gist #github #forked
# first: mkdir user && cd user && cp /path/to/get_gists.py .
# python3 get_gists.py user
import requests
import sys
from subprocess import call
user = sys.argv[1]
r = requests.get('https://api.github.com/users/{0}/gists'.format(user))