Skip to content

Instantly share code, notes, and snippets.

View abhi8893's full-sized avatar
Forever Learning

Abhishek Bhatia abhi8893

Forever Learning
View GitHub Profile
kuchaale /
Last active April 24, 2019 12:50
Calculates trends across variables
import xarray as xr
import dask.array as da
from dask.delayed import delayed
import numpy as np
from scipy import stats
# regression function defition
def regression(y):
"""apply linear regression function along time axis"""
axis_num = y.get_axis_num('time')
seangeo / Heroku tracking branch.txt
Created May 11, 2011 08:55
Create a local tracking branch of your heroku deployment
Assuming you have remote branch called heroku/master, start by creating a local tracking branch
called heroku.
> git checkout -b heroku -t heroku/master
This will checkout the last revision you deployed to Heroku.
Now tell git to push the heroku branch to heroku/master
> git config remote.heroku.push heroku:master