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 |
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
# Tools to analytically manipulate ellipses and some astronomical profiles. | |
# | |
# Written by Joshua E. Meyers (2014-2015). | |
import numpy as np | |
from scipy.optimize import newton | |
from scipy.special import gammainc, gamma | |
import math | |
from functools import reduce |
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
""" | |
# app.py -- Example bottle.py app showing how to embed AJAX Bokeh plots that update automatically. | |
""" | |
from bottle import * | |
from bokeh.plotting import figure | |
from bokeh.embed import components | |
from bokeh.resources import CDN | |
from bokeh.models.sources import AjaxDataSource |