Click here.
No root privileges are required to install or use this code.
import numpy as np | |
try: | |
import tensorflow as tf | |
except ImportError: | |
tf = None | |
from time import perf_counter | |
def timeit(func, *args, **kwargs): | |
durations = [] |
git clone https://github.com/isuruf/vecLibFort | |
cd vecLibFort | |
conda create -n numpy pytest hypothesis numpy "libblas=*=*netlib" --yes | |
conda activate numpy | |
clang -O3 -c -o vecLibFort.o vecLibFort.c | |
clang -shared -o libblas.3.dylib vecLibFort.o -Wl,-reexport_library,$(xcrun -show-sdk-path)/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.tbd | |
codesign -s - -f libblas.3.dylib | |
rm $CONDA_PREFIX/lib/libblas.3.dylib | |
rm $CONDA_PREFIX/lib/libcblas.3.dylib |
### Monokai-inspired Bokeh Theme | |
# written July 23, 2017 by Luke Canavan | |
### Here are some Monokai palette colors for Glyph styling | |
# @yellow: "#E6DB74" | |
# @blue: "#66D9EF" | |
# @pink: "#F92672" | |
# @purple: "#AE81FF" | |
# @brown: "#75715E" | |
# @orange: "#FD971F" |
Click here.
No root privileges are required to install or use this code.
""" | |
Functions for converting dates to/from JD and MJD. Assumes dates are historical | |
dates, including the transition from the Julian calendar to the Gregorian | |
calendar in 1582. No support for proleptic Gregorian/Julian calendars. | |
:Author: Matt Davis | |
:Website: http://github.com/jiffyclub | |
""" |