Skip to content

Instantly share code, notes, and snippets.

View lydiolectal's full-sized avatar

Lydia Ding lydiolectal

View GitHub Profile
@lydiolectal
lydiolectal / generate_md
Created April 10, 2018 00:22
Generates jekyll markdown for you based on post title and system time.
#!/usr/bin/env python3
# To run:
# 1. After downloading, cd to the directory and'chmod -x generate_md.' This tells the shell to make generate_md
# into an executable.
# 2. 'echo My Awesome Post | ./generate_md' will generate a new markdown file with the post name "My Awesome Post"
# and name it "yyyy-mm-dd-my-awesome-post.markdown".
import glob, sys, re
from time import gmtime, strftime