Skip to content

Instantly share code, notes, and snippets.

@ctb
ctb / Snakefile
Last active February 1, 2020 17:26
Testing out some snakemake namespace stuff.
global_var = 'a global variable'
rule all:
input:
"1-foo-hello.txt",
"2-bar-hello.txt",
"3-fiz-hello.txt",
"4-bif-hello.txt"
#
@flyte
flyte / repocheck.py
Created April 17, 2014 19:51
Check all git repositories in a directory to see if they're clean or dirty.. Tested on: GitPython==0.1.7 argparse==1.2.1 prettytable==0.7.2
import argparse
import os
import git
from prettytable import PrettyTable
if __name__ == "__main__":
p = argparse.ArgumentParser()
p.add_argument("base_dir")
args = p.parse_args()