Skip to content

Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am heyhugo on github.
  • I am heyhugo ( on keybase.
  • I have a public key ASABmGVjYDQH23AqvdGPrOaWjxjZxj832sDTWtdB2SX8CAo

To claim this, I am signing this object:

HeyHugo /
Created Nov 16, 2016
Celery extension for flask
import flask
from celery import Celery
class FlaskCelery(Celery):
def __init__(self, *args, **kwargs): = None
super(FlaskCelery, self).__init__(*args, **kwargs)
View G - Test in
import numpy as np
from scipy.stats import chisqprob, chisquare
def gtest(f_obs, f_exp=None, ddof=0):
The G test can test for goodness of fit to a distribution