mirror of
https://github.com/cupcakearmy/advent-of-code.git
synced 2025-09-04 06:10:40 +00:00
template
This commit is contained in:
20
_templates/riddle/new/python.ejs.t
Normal file
20
_templates/riddle/new/python.ejs.t
Normal file
@@ -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
|
Reference in New Issue
Block a user