This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Post-build update a revealJS deck | |
- adds a base target, jQuery, and a main.js include script block | |
technique from: | |
http://stackoverflow.com/questions/39086/search-and-replace-a-line-in-a-file-in-python | |
""" | |
import fileinput | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# build and open a revealjs deck via pandoc | |
# pandoc: convert markdown deck to revealjs deck | |
# requires a subfolder named "reveal.js" | |
pandoc -t revealjs -s deck.md -o deck.html | |
# optional post-build step, update the deck | |
# python update-deck.py | |
# open in default web browser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# build-web.sh | |
# prep the output directories | |
mkdir ./_web/illustrations/ | |
mkdir ./_web/audio/ | |
# copy assets to the web structure | |
rsync --verbose --update --recursive --progress --times ./illustrations/ ./_web/illustrations/ | |
rsync --verbose --update --recursive --progress --times ./audio/ ./_web/audio/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# build-epub.sh (in epub) | |
# prep the output directories | |
mkdir ./_epub/illustrations/ | |
mkdir ./_epub/audio/ | |
# copy assets to the epub structure | |
rsync --verbose --update --recursive --progress --times ./illustrations/ ./_epub/illustrations/ | |
rsync --verbose --update --recursive --progress --times ./audio/ ./_epub/audio/ | |
cp "epub.css" "./_epub/epub.css" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# looks for lines of text in .md files in the current directory containing the text "ACHIEVEMENT:" | |
# > then writes the output/results to a separate file | |
grep -h -w -i "ACHIEVEMENT:" ./*.md > ./achievements/achievements.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
opml2markdown.py -- A command line tool to transform OPML files into markdown. | |
Written by Rob Stenzinger | |
License: MIT | |
http://opensource.org/licenses/MIT | |
Usage: | |
python opml2markdown.py PATH-TO-OMPL-FILE OPTIONAL-HEIRARCHY-MAPPED-MARKDOWN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script type="text/javascript" src="http://documentcloud.github.com/underscore/underscore-min.js"></script> | |
<script> | |
/* | |
Script to transform my blog's ATOM feed to Wordpress Export format to assist in moving to new CMS. |
NewerOlder