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
#!/bin/sh | |
TODAY=$(date +%m) | |
FILE=~/.duesoon | |
# This may be more complex than need be, but it permits months with or without leading zeroes | |
let THISMO=$TODAY-0 | |
if [ $THISMO = 12 ]; then | |
let NEXTMO=01 | |
else |
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
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# pandoc-webpage.py | |
# Requires: pyandoc http://pypi.python.org/pypi/pyandoc/ | |
# (Change path to pandoc binary in core.py before installing package) | |
# TODO: Preserve span formatting from original webpage | |
import urllib2 | |
import pandoc | |
from bs4 import BeautifulSoup |
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> | |
<title>Mode for Caleb: The lives of Douglass: Part II</title> | |
<style type="text/css"> | |
body{margin:0px;padding:0px;background:#fff;color:#000000;font:1.5em "Trebuchet MS",Verdana,Arial,Sans-Serif;font-size:13px;} | |
a{text-decoration:none; color:#C4372D;} | |
a:hover{border-bottom:solid 1px;} | |
#logo{padding:0px;margin:0px;} | |
div#mainClm{float:right;width:60%;padding:30px 7% 10px 3%;border-left:dotted 1px #000;border-right:dotted 1px #000;text-align:left;border-bottom:dotted 1px #000;} | |
div#sideBar{width:200px;margin:20px;padding-top:20px;padding-left:5px;padding-right:5px;text-align:left;} |
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
The lives of Douglass: Part II | |
------------------------------ | |
Originally posted on Tuesday, December 21, 2004 | |
As I explained in [Part | |
I](http://modeforcaleb.blogspot.com/2004/12/lives-of-douglass-part-i.html), | |
Frederick Douglass's | |
[*Narrative*](http://sunsite.berkeley.edu/Literature/Douglass/Autobiography/) | |
marked the highpoint of his collaboration with the radical abolitionists |
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
The first twenty minutes | |
------------------------ | |
Originally posted on Tuesday, August 30, 2005 | |
Yesterday was the first day of class for the Introduction to U. S. | |
History that I am teaching this fall. (Here's the | |
[syllabus](https://jshare.johnshopkins.edu/wmcdani2/public_html/syllabus205.pdf) | |
I'm using; suggestions for future iterations are welcome!) |
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
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# blookup.py | |
# by Caleb McDaniel <http://wcm1.web.rice.edu> | |
# Uses ottobib.com and isbndb.com to turn an author-title search string | |
# into a formatted bibliographic citation. | |
# Example: | |
# blookup.py "blight race and reunion" |
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
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
## docvert.py | |
## by W. Caleb McDaniel | |
## http://wcm1.web.rice.edu | |
## This is a wrapper script for sending documents to Docverter | |
## for conversion from markdown to PDF. It offers a python | |
## alternative to using cURL. For more information, see: |
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
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
## iMDtoPDF.py | |
## by W. Caleb McDaniel | |
## http://wcm1.web.rice.edu | |
## This is a wrapper script for sending documents to Docverter | |
## for conversion from markdown to PDF using Pandoc. Typically | |
## Docverter calls are made with cURL; this script uses httplib. |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<title>RuntimeError at /convert</title> | |
<script type="text/javascript"> | |
//<!-- | |
function toggle(id) { | |
var pre = document.getElementById("pre-" + id); |
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
# Clear console | |
import console | |
console.clear() | |
print "Tap a photo to fetch a new one!" | |
print "Finding cute grandkid photos ..." | |
from scene import * | |
import urllib2 | |
import random |
OlderNewer