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/python | |
# I run a wiki on Gitit at http://wiki.wcaleb.rice.edu. It's usually | |
# updated by pushing to the wiki's remote git repo from my local machine. | |
# I have a `post-receive` hook in that repo that runs this script, like so: | |
# | |
# unset GIT_DIR | |
# python /path/to/wikitweet.py | |
# | |
# Now, whenever I push to the repo, the script looks to see which files have |
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
" Vim filetype plugin file | |
" Language: Mail | |
" Maintainer: Bram Moolenaar <Bram@vim.org> | |
" Last Change: 2009 Jun 03 | |
" Only do this when not done yet for this buffer | |
if exists("b:did_ftplugin") | |
finish | |
endif | |
let b:did_ftplugin = 1 |
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
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
<!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
<group delimiter=", "> | |
<group delimiter=" "> | |
<group suffix=", "> | |
<text macro="contributors-note"/> | |
</group> | |
<group delimiter=", "> | |
<text macro="title-note"/> | |
</group> | |
<text macro="description-note"/> | |
</group> |
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
from scene import * | |
import random | |
BALL_RADIUS = 20 | |
POINT_RADIUS = 5 | |
GUTTER = 120 | |
PAD_WIDTH = 100 | |
PAD_HEIGHT = 20 | |
HALF_PAD_WIDTH = PAD_WIDTH / 2 | |
HALF_PAD_HEIGHT = PAD_HEIGHT / 2 |
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
{"tweet1": | |
{ | |
"username":"wcaleb", | |
"date_sent":"January 14, 2014", | |
"text":"I heart Cheerios.", | |
"hashtags": [], | |
"coordinates": null, | |
"has_image":false | |
}, | |
"tweet2": |
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
### Sample JSON | |
#### Exhibit A | |
{"search":{ | |
"field": null, | |
"hits": 1901, | |
"sort_order": null, | |
"do_facets": true, | |
"focus_item": null, |