I hereby claim:
- I am mdboom on github.
- I am mdboom (https://keybase.io/mdboom) on keybase.
- I have a public key ASBfS4TOT-Pi1GSH25opWjghd-jdNd0uytAM-yQ0u1Ktego
To claim this, I am signing this object:
| # -*- coding: utf-8 -*- | |
| """ | |
| Having any non-ascii content in this file is enough to get it to fail. | |
| Jsme rytíři, kteří říkají "ni" | |
| """ | |
| tokens = ( | |
| 'NAME','NUMBER', |
| import numpy as np | |
| class Quantity(object): | |
| def __init__(self, value, unit): | |
| self.unit = unit | |
| self.value = value | |
| self.exception = False | |
| def __getitem__(self, key): |
| #include "numpy/arrayobject.h" |
| import cmath | |
| import timeit | |
| def test_a(s, p): | |
| try: | |
| x = s ** p | |
| except ValueError: | |
| # on python2, sqrt(negative number) does not | |
| # automatically lead to a complex number, but this is |
| #!/usr/bin/env python | |
| """ | |
| Run from anywhere in a projects directory tree, this will compile and install | |
| """ | |
| import sys | |
| import os | |
| current_path = '.' |
| from pyasdf import AsdfFile | |
| import numpy as np | |
| import time | |
| for i in (10, 100, 1000, 10000): | |
| arrays = [] | |
| for x in range(i): | |
| arrays.append(np.random.rand(32, 32)) | |
| tree = {'arrays': arrays} |
| import numpy as np | |
| from matplotlib import units | |
| from matplotlib import ticker | |
| from astropy import units as u | |
| def rad_fn(x, pos=None): | |
| n = int((x / np.pi) * 2.0 + 0.25) | |
| if n == 0: | |
| return '0' |
| from matplotlib import pyplot as plt | |
| from matplotlib import rcParams | |
| import numpy as np | |
| rcParams['mathtext.fontset'] = 'cm' | |
| def fnx(): | |
| return np.random.randint(5, 50, 10) | |
| fig = plt.figure(figsize=(6, 1.25)) |
| import matplotlib.pyplot as plt | |
| import pandas as pd | |
| import datashader as ds | |
| import datashader.transfer_functions as tf | |
| from datashader.colors import Hot | |
| time_period = 60 |
I hereby claim:
To claim this, I am signing this object: