Skip to content

Instantly share code, notes, and snippets.

Lewis Franklin brolewis

Block or report user

Report or block brolewis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View foo.diff
diff --git a/sphinx_gherkindoc/writer.py b/sphinx_gherkindoc/writer.py
index 2944fee..3c5cc03 100644
--- a/sphinx_gherkindoc/writer.py
+++ b/sphinx_gherkindoc/writer.py
@@ -216,6 +216,8 @@ def feature_to_rst(
for row in table.rows:
row = f"{QUOTE}, {QUOTE}".join(map(rst_escape, row))
output_file.add_output(f"{QUOTE}{row}{QUOTE}", indent_by=indent_by)
+ if inline:
+ output_file.blank_line()
@brolewis
brolewis / schedulers.py
Last active Jan 3, 2019
A distributed job scheduler for Celery using ZooKeeper (via kazoo) to manage the locking.
View schedulers.py
'''Zookeeper-based Scheduler'''
## Standard Library
import cPickle # Store dictionary in ZooKeeper
import datetime # Time delta
import socket # Hostname
## Third Party
import celery # Current app
import celery.beat # Scheduler
import celery.utils.log # Get logger
import kazoo.client # ZooKeeper Client Library
You can’t perform that action at this time.