Skip to content

Instantly share code, notes, and snippets.

View blbradley's full-sized avatar

Brandon Bradley blbradley

  • Nashville, TN
View GitHub Profile
@blbradley
blbradley / 01-vb_suite.log
Created February 17, 2015 16:38
vbench results for pandas #9504
Invoked with :
--ncalls: 5
--repeats: 5
-------------------------------------------------------------------------------
Test name | head[ms] | base[ms] | ratio |
-------------------------------------------------------------------------------
period_setitem | 8.4562 | 9.3834 | 0.9012 |
@blbradley
blbradley / pandas_test_fast
Created February 19, 2015 16:49
./test_fast results for using NotImplemented in Period.__richcmp__ - pandas #9504
======================================================================
FAIL: test_greaterEqual_Raises_Value (pandas.tseries.tests.test_period.TestComparisons)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/brandon/src/coins/pandas/pandas/tseries/tests/test_period.py", line 2825, in test_greaterEqual_Raises_Value
print(self.january1 >= 1)
File "/home/brandon/src/coins/pandas/pandas/util/testing.py", line 1644, in __exit__
raise AssertionError("{0} not raised.".format(name))
AssertionError: TypeError not raised.
-------------------- >> begin captured stdout << ---------------------
@blbradley
blbradley / parameterize.py
Created January 5, 2016 04:05
Date parameterization - Python vs Bash
from datetime import date, datetime
from dateutil.relativedelta import relativedelta
from six import print_
exchanges = {
'bitfinex': 'btcusd',
'bitstamp': 'btcusd',
'okcoin': 'btccny',
}
@blbradley
blbradley / primes.py
Last active February 2, 2017 17:40
ardnew wants to see my primes solution and help
from math import floor, ceil, sqrt
p = int(input().strip())
for a0 in range(p):
n = int(input().strip())
if n == 1:
print('Not prime')
continue
@blbradley
blbradley / docker-compose.yml
Last active March 2, 2017 16:54
docker-compose file for kafka-cryptocoin
version: '3'
services:
zookeeper:
image: "confluentinc/cp-zookeeper:3.0.1"
ports:
- '2181'
environment:
ZOOKEEPER_CLIENT_PORT: 2181
broker: