From 48c5ad04ff802fbfcd14627c4335184e6e17295b Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Wed, 1 Dec 2021 14:46:12 +0100 Subject: [PATCH] template --- _templates/riddle/new/python.ejs.t | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 _templates/riddle/new/python.ejs.t diff --git a/_templates/riddle/new/python.ejs.t b/_templates/riddle/new/python.ejs.t new file mode 100644 index 0000000..b00d85f --- /dev/null +++ b/_templates/riddle/new/python.ejs.t @@ -0,0 +1,20 @@ +--- +to: <%= year %>/<%= day %>/python/main.py +--- +#!/usr/bin/env python + +from os.path import join, dirname + +# Day 01 + +# Common + + +def read_input(filename): + data = join(dirname(__file__), '..', filename) + with open(data) as f: + return f.read() + +# 1 + +# 2