From bd20c4ee7d7affd97c0c21f383053b59c9d52641 Mon Sep 17 00:00:00 2001 From: JonETMeans Date: Sun, 2 Jun 2013 21:34:32 -0700 Subject: [PATCH 1/5] Random number generator --- src/random-number.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/random-number.py diff --git a/src/random-number.py b/src/random-number.py new file mode 100644 index 0000000..8e14524 --- /dev/null +++ b/src/random-number.py @@ -0,0 +1,7 @@ +import argparse + +print 4 + +parser = argparse.ArgumentParser(description='Number chosen by fair dice roll. ' + 'Guaranteed to be random.') +parser.parse_args() From 14f60cd292bd5853f259ba3ebaf599657ffe68a6 Mon Sep 17 00:00:00 2001 From: JonETMeans Date: Sun, 2 Jun 2013 21:39:27 -0700 Subject: [PATCH 2/5] Attribution --- src/random-number.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/random-number.py b/src/random-number.py index 8e14524..c77ea38 100644 --- a/src/random-number.py +++ b/src/random-number.py @@ -1,3 +1,10 @@ +#!/usr/bin/env python2 + +# Copyright 2013 Jonathan E. T. Means +# Licensed under the Red Spider Project License. +# See the License.txt that shipped with your copy of this software for details. + + import argparse print 4 From 926ac7f98de6d452686b5667b88feaa37a1a3e57 Mon Sep 17 00:00:00 2001 From: JonETMeans Date: Tue, 4 Jun 2013 06:10:16 -0700 Subject: [PATCH 3/5] update setup --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index a99952f..683632c 100755 --- a/setup.py +++ b/setup.py @@ -29,8 +29,8 @@ inc_dir = 'include' cfg_dir = 'config' -executable_scripts = 'json-parse.py xkcd-fetch.py xkcd-search.py level_up.py'.split() -python_modules = 'src/xkcd-fetch.py src/level_up.py'.split() +executable_scripts = 'json-parse.py xkcd-fetch.py xkcd-search.py level_up.py random-number.py'.split() +python_modules = 'src/xkcd-fetch.py src/level_up.py src/random-number.py'.split() def main ( ): print(welcome_msg) From 7cf0f5ce7abba764fe102ce7a67c616a0d28ecfc Mon Sep 17 00:00:00 2001 From: JonETMeans Date: Tue, 4 Jun 2013 06:14:29 -0700 Subject: [PATCH 4/5] update README --- Readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Readme.md b/Readme.md index 7f181fe..111a409 100644 --- a/Readme.md +++ b/Readme.md @@ -40,6 +40,8 @@ When you run `rsshell` the following commands are available to you. - `level_up`: An RPG-style lines-of-code counter which pops up a "level up" message when you pass a milestone in a programming language. Run with `-h` for help. +- 'random-number': Generated a random number by simulating a fair dice roll. + Run with '-h' for help. The following commands are expected to be added soon. From b48dbd952f23d503933e124ba13aba570d4ae024 Mon Sep 17 00:00:00 2001 From: JonETMeans Date: Sun, 23 Jun 2013 16:36:34 -0700 Subject: [PATCH 5/5] In progress subcommand for making a new branch. Currently too inelegant for practical use. --- subcommands/git-creto | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 subcommands/git-creto diff --git a/subcommands/git-creto b/subcommands/git-creto new file mode 100644 index 0000000..7b392a3 --- /dev/null +++ b/subcommands/git-creto @@ -0,0 +1,3 @@ +git checkout master +git pull upstream master +git checkout -b new_branch