This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# setup text | |
font = cv2.FONT_HERSHEY_SIMPLEX | |
text = "Female" | |
# get boundary of this text | |
textsize = cv2.getTextSize(text, font, 1, 2)[0] | |
# get coords based on boundary | |
textX = int(boundingboxcenter[0] - (textsize[0] / 2)) | |
textY = int(boundingboxcenter[1] + (textsize[1] / 2)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Remove output from existing Jupyter Notebooks. | |
Modified from remove_output by Minrk, damianavila, gabraganca. | |
References: | |
[0]: https://github.com/jupyter/nbformat | |
[1]: http://nbformat.readthedocs.org/en/latest/index.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
#-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password | |
REPO_URL=`git remote -v | grep -m1 '^origin' | sed -Ene's#.*(https://[^[:space:]]*).*#\1#p'` | |
if [ -z "$REPO_URL" ]; then | |
echo "-- ERROR: Could not identify Repo url." | |
echo " It is possible this repo is already using SSH instead of HTTPS." | |
exit | |
fi |