Skip to content

Instantly share code, notes, and snippets.

View robdennis's full-sized avatar

Rob Dennis robdennis

  • Reston, VA, USA
View GitHub Profile

Colons can be used to align columns.

Kjatar Eli Jake Geoffrey Spencer Dusk Rick Rob
Goblin Bombardment Sudden Demise Monastery Mentor Toxic Deluge Blasphemous Act Rhys the Redeemed Savage Twister Pernicious Deed
Voice of Resurgence Fire Covenant Secure The Wastes Mulldrifter Radiant Flames Galepowder Mage Disdainful Stroke Meren of Clan Nel Toth
Firespout Olivia Voldaren Zulaport Cutthroat Dragonlord Silumgar Reveillark Sanctifier of Souls Vinelasher Kudzu Havengul Lich
Siege-Gang Commander Boltwing Marauder Zealous Persecution Detention Sphere Lingering Souls Centaur Healer Bloodbraid Elf Blood Artist
Alesha, Who Smiles at Death Grenzo, Dungeon Warden Curse of Predation Baleful Strix Pia and Kiran Nala
@robdennis
robdennis / config_fest.py
Created January 14, 2015 15:27
example of config object validation
from configobj import ConfigObj, flatten_errors
from validate import Validator
DEFAULTS = {"CATEGORIES": ['bas', 'bap']}
allowed_category_options = "option({0})".format(
', '.join([repr(cat) for cat in DEFAULTS['CATEGORIES']])
)
CONFIGSPEC = '''\
logfile = string
[foo]
@robdennis
robdennis / gist:e9eee9abcab0b7d136b4
Last active August 29, 2015 14:04
black in mtgo cube
Going off this [list](http://archive.wizards.com/magic/magazine/Article.aspx?x=mtg/daily/other/05202014/cube#cardlist) and assuming:
- we're talking evolution, not cube-wide revamp
- "not suck" really means "desirable in draft" (and not merely in the "I'm the only black drafter at the table" sense)
- "desirable in draft" as both a support and primary color
Some very quick background on how I see MTGO cube's philosophy:
- some low percentage archetypes that reward multiple drafts with the same list (namely storm)
- introduction to some of the history of Magic for newer players
- show "here's what we're doing nowadays" for returning players
# coding=utf-8
import xlrd
def get_header_row(sheet):
return sheet.row_values(sheet._first_full_rowx)
def yield_dict_for_sheet(sheet):
gravecrawler
savannah lions
ramosian sergeant
tragic slip
demonic tutor
phrexian rager
go for the throat
bitterblossom
mortar pod