From aa14d544d2d961634c04b1749652b852dbffe2d7 Mon Sep 17 00:00:00 2001 From: Felix Martin Date: Sun, 20 May 2018 15:30:38 -0400 Subject: [PATCH] Added template for future problems. --- ipython/EulerProblem000.ipynb | 43 +++++++++++++++++++++++++++++++++++ ipython/publish.py | 4 +++- 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 ipython/EulerProblem000.ipynb diff --git a/ipython/EulerProblem000.ipynb b/ipython/EulerProblem000.ipynb new file mode 100644 index 0000000..37b541b --- /dev/null +++ b/ipython/EulerProblem000.ipynb @@ -0,0 +1,43 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Problem Name (Euler Problem xxx)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "completion_date": "", + "kernelspec": { + "display_name": "Python 3", + "language": "python3.6", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.6.5" + }, + "tags": [] + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/ipython/publish.py b/ipython/publish.py index 1e9ce7e..af4d9af 100644 --- a/ipython/publish.py +++ b/ipython/publish.py @@ -32,7 +32,9 @@ def file_name_to_solution(name): def get_solution_list(directory="./"): l = [file_name_to_solution(f) for f in os.listdir(directory) - if f.endswith(".ipynb") and f.startswith("EulerProblem")] + if f.endswith(".ipynb") + if f.startswith("EulerProblem") + if not f.endswith("000.ipynb")] l.sort(key=itemgetter(0)) return l