Skip to content

Instantly share code, notes, and snippets.

View jondeaton's full-sized avatar
🌴
Vacation

Jon Deaton jondeaton

🌴
Vacation
View GitHub Profile
@jondeaton
jondeaton / python.py
Last active March 8, 2018 05:37
Literally every python script I write
#!/usr/bin/env python
import os, argparse, logging
def parse_args():
parser = argparse.ArgumentParser(description="Super cool thing", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
io_options_group = parser.add_argument_group("I/O Options")
io_options_group.add_argument('-in', "--input", help="Input directory")
io_options_group.add_argument('-out', "--output", help="Output directory")
@jondeaton
jondeaton / logger.cpp
Created February 16, 2018 20:24
Global logger with boost
#include <logger.hpp>
namespace logger {
boost::log::sources::severity_logger<boost::log::trivial::severity_level> log;
bool verbose = false;
bool debug = false;
void init() {