Skip to content

Instantly share code, notes, and snippets.

View donaldpminer's full-sized avatar

Donald Miner donaldpminer

  • Space Cow Media
  • Maryland, USA
View GitHub Profile
@donaldpminer
donaldpminer / gist:9937762
Created April 2, 2014 16:35
Getting Accumulo set up in <5 minutes with HDP 2.1 VM
yum install accumulo
/usr/lib/accumulo/bin/boostrap_config.sh
accumulo init
/usr/lib/accumulo/bin/start-all.sh
accumulo shell -u root
class _SlowList(list):
# this really needs to be replaced by something... not... slow.
def append(self, item):
# appends, then sorts the list
list.append(self, item)
list.sort(self)
def extend(self, items):
list.extend(self, items)
@donaldpminer
donaldpminer / tracedepbuild
Created May 9, 2014 20:09
These are the deprecation warnings to show where cloudtrace would have to be replaced with htrace.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Apache Accumulo
[INFO] Trace
[INFO] Fate
[INFO] Start
[INFO] Core
[INFO] Simple Examples
EDHREC FAQ
http://www.reddit.com/user/edhrec
*** How do I summon it?
Currently the only format I support is tappedout.net. Submit to
/r/edh and put a tappedout link to your deck either in the link
portion or in the text portion. The format looks like:
http://tappedout.net/mtg-decks/mydeckname/
@donaldpminer
donaldpminer / gist:0f500e9ab31a2db2cd5b
Created May 19, 2015 05:22
Top Commanders 5/19/2015 from EDHREC.com
oloro, ageless ascetic 312
karador, ghost chieftain 282
animar, soul of elements 259
kaalia of the vast 255
ghave, guru of spores 255
riku of two reflections 252
prossh, skyraider of kher 244
derevi, empyrial tactician 235
the mimeoplasm 235
nekusar, the mindrazer 234
# This demonstration of the Structured to Hierarchical pattern merges
# two csv files using a concatenation of the first and last name
# as the foreign key into a list of json documents.
# $ cat data/structured*csv
# shook,adam,88
# miner,don,34
# oreilly,tim,99
# shook,adam,54
@donaldpminer
donaldpminer / gist:f9d80921984c67dbaae9
Last active August 29, 2015 14:27
EDHREC Current Issues and To Do List
These are the list of known issues for edhrec.com
Recommendations are recommending cards that are within color identity but shouldn't be in the deck-- like fetchlands of colors that souldn't be there.
This fix is moderate in complexity and is of high priority.
Deckstats being able to pull recommendationsf or their web interface is no longer working.
I need to recreate the endpoint that was serving up the recommendations to them.
This fix is moderate in complexity and is of high priority.
Generate Deck feature doesn't take into account the newness of cards like other portions of EDHREC.
SUNFORGER TARGETS
{u'averagenumtargets': 9,
u'mediannumtargets': 9,
u'targets': [{u'card': u'boros charm',
u'count': 542,
u'decks': 744,
u'percent': 72},
{u'card': u'swords to plowshares',
u'count': 541,
@donaldpminer
donaldpminer / gist:b5c607eabd49ee9a0189
Last active October 15, 2015 21:24
Average lands by commander (October 15th, 2015)
COMMANDER NAME | average lands | total deck count
sasaya, orochi ascendant 50 16
marrow-gnawer 49 79 [ bad data because of relentless rats ]
borborygmos enraged 49 67
azusa, lost but seeking 43 108
ob nixilis, the fallen 42 20
child of alara 41 230
shirei, shizo's caretaker 41 86 [ bad data because of shadowborn apostles ]
maralen of the mornsong 41 32