Skip to content

Instantly share code, notes, and snippets.

View adammichaelwood's full-sized avatar
🦄
Flying with unicorns.

Adam Michael Wood adammichaelwood

🦄
Flying with unicorns.
View GitHub Profile
import sys
import re
from bs4 import BeautifulSoup
import urllib.request
home_link = "whoishostingthis"
file_name = sys.argv[1]
f = open(file_name)
#! /bin/sh
month=$(date +"%b")
mo=$( tr '[A-Z]' '[a-z]' <<< $month)
yr=$(date +"%y")
mdfile="$1.md"
hfile="../html/$1-adamwood-$mo-$yr.html"
pandoc -f markdown -S -o $hfile $mdfile
@adammichaelwood
adammichaelwood / rend.sh
Last active August 29, 2015 14:25
Renders markdown files to usable HTML, changes the file name, and moves them to the proper output directory
#! /bin/sh
myname=adamwood
#change that to your name
month=$(date +"%b")
mo=$( tr '[A-Z]' '[a-z]' <<< $month)
yr=$(date +"%y")
mdfile="$1.md"
hfile="../html/$1-$myname-$mo-$yr.html"
@adammichaelwood
adammichaelwood / mdlinker.sh
Last active August 29, 2015 14:25
Turns empty markdown links into links with URLs.
#! /usr/local/bin/bash
## You may have to change that line to specify the path to the bash interpreter you want to use.
## BTW, this script requires bash v4.0 or better, as it uses Associative Array
## Someone set us up the bomb.
declare -A lnks
## links go here
## WIHT writers should use these, and add more
Standing up, worried,
he thought it would be today.
Tomorrow. Perhaps.
A tiny repo
Full-fledged forkability
Gist is git haiku