Skip to content

Instantly share code, notes, and snippets.

View mattcmaddox's full-sized avatar

Matt Maddox mattcmaddox

View GitHub Profile
from sys import argv
from os.path import exists
script, from_file, to_file = argv
action = open(from_file)
churl@beebook:~/Python/Raj$ git log -p
commit ce78eef81783f638cbe57df9c55b9a43ff5a8cab
Author: Churl Bee <i8deadbabies@gmail.com>
Date: Thu May 24 14:21:42 2012 -0400
uploaded first raj.py
diff --git a/README b/README
new file mode 100644
index 0000000..ce694b7
#! /usr/bin/python
import random
import argparse
from random import randint
def build_parser():
parser = argparse.ArgumentParser(description='Command Line Implementation of Minesweeper', add_help=True)
parser.add_argument('-r', '--rows', type=int, default=8, help='Number of Rows')
parser.add_argument('-c', '--columns', type=int, default=9, help='Number of Columns')