Skip to content

Instantly share code, notes, and snippets.

View robstenzinger's full-sized avatar

Rob Stenzinger robstenzinger

View GitHub Profile
@robstenzinger
robstenzinger / build-deck.sh
Created April 1, 2014 02:20
build and open a revealjs deck via pandoc
# 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
"""
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
@robstenzinger
robstenzinger / deck-footer-title-menu.js
Created April 1, 2014 02:31
modifies a revealJS presentation, adds a deck title and menu of links in the lower left of the view port
@robstenzinger
robstenzinger / gist:365bb4600c812f370238
Created November 20, 2014 07:20
polytechnicast.py Gets an MP3 file ready to post for the Polytechnicast using eyeD3 to set all the MP3 metadata plus artwork.
"""
polytechnicast.py
Gets an MP3 file ready to post for the Polytechnicast using eyeD3 to set all the MP3 metadata plus artwork.
Accepts a file path as a parameter,
assumes that the show notes and podcast MP3 file are named the same,
except for their given file extension,
and are in the same file directory.
@robstenzinger
robstenzinger / artsoundoff-tweets.json
Created December 6, 2014 01:56
ArtSoundoff 2014 Tweet Stream in JSON format (from the artsoundoff.com creative challenge - post a microjournal podcast for every day in the month of November 2014)
[
{
"header": "Rob Stenzinger ‏@RobStenzinger Oct 30",
"body": "In the latest Extra Lean, @jerzy and I announce a 30 day creative challenge called #ArtSoundoff: http://www.patreon.com/creation?hid=1138804&rf=59709&ty=2 …",
"interactions": "0 replies 3 retweets 0 favorites"
},
{
"header": "Rob Stenzinger ‏@RobStenzinger Oct 31",
"body": "Art Soundoff makes a creative challenge out of posting a month of art audio journals: http://artsoundoff.com  #artsoundoff",
"interactions": "0 replies 2 retweets 0 favorites"
@robstenzinger
robstenzinger / artsoundoff-raw-text-tweets.txt
Created December 6, 2014 03:08
Art Soundoff 2014 - archive of tweets as raw text
Rob Stenzinger ‏@RobStenzinger Oct 30 In the latest Extra Lean, @jerzy and I announce a 30 day creative challenge called #ArtSoundoff: http://www.patreon.com/creation?hid=1138804&rf=59709&ty=2 … 0 replies 3 retweets 0 favorites
Rob Stenzinger ‏@RobStenzinger Oct 31 Art Soundoff makes a creative challenge out of posting a month of art audio journals: http://artsoundoff.com  #artsoundoff 0 replies 2 retweets 0 favorites
Rob Stenzinger ‏@RobStenzinger Oct 31 Polytechnicast - Art Soundoff http://www.patreon.com/creation?hid=1142442&rf=59709&ty=2 … #artsoundoff 0 replies 0 retweets 0 favorites
Jerzy Drozd ‏@Jerzy Nov 1 Thunder Punch Daily is back, and will update daily through the month of November: http://www.patreon.com/creation?hid=1165523&u=59709 … #artsoundoff 0 replies 6 retweets 3 favorites
Owen Jollands ‏@ComicColorist Nov 1 My 1st ever podcast for the #ArtSoundoff challenge started by @jerzy & @robstenzinger -The beginning https://audioboom.com/boos/2613659-art-soundoff-1-the-beginning?utm_campai
@robstenzinger
robstenzinger / twine-simple-interactive-story-example
Created January 30, 2015 03:38
An experiment with the Twine interactive fiction creation environment/engine
:: Start
You enter the room. It looks familiar - yet you need a moment to remember what it's for.
[[ForFun]] or is it [[ForWork]]?
:: ForFun
Fun fun fun!
Or is it really [[ForWork]]?
@robstenzinger
robstenzinger / atom-xml-to-wordpress-export.html
Created February 24, 2012 05:02
Script to transform my blog's ATOM feed to Wordpress Export format to assist in moving to new CMS.
<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.
@robstenzinger
robstenzinger / opml2markdown.py
Created August 2, 2013 23:59
A utility that helps me with taking an OPML file, often a first draft of most any document or blog post I write, then transform it into Markdown.
"""
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
@robstenzinger
robstenzinger / build-epub.sh
Created January 4, 2014 21:14
An ebook epub build script using mostly Pandoc. I use this one to build "Game Construction Kit: Underwater Tomato Ninja".
# 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"