Skip to content

Instantly share code, notes, and snippets.

Lincoln Mullen lmullen

Block or report user

Report or block lmullen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
lmullen / thatcamp-twitter-stream.php
Created Nov 18, 2010
Code for a WordPress widget that will display the latest on THATCamp from Twitter
View thatcamp-twitter-stream.php
include_once(ABSPATH . WPINC . '/rss.php');
$rss = fetch_rss('');
$maxitems = 3;
$items = array_slice($rss->items, 0, $maxitems);
<ul id="twitter">
<?php if (empty($items)) echo '<li>No items</li>';
foreach ( $items as $item ) : ?>
View footnotify.css
* Customize Footnotify on your site by adding custom css.
* This file is NOT loaded by the script and must be
* implemented on the site in order to apply.
* More info:
lmullen / brownson-orestes.yml
Created May 2, 2012
Modeling historical events in YAML and Ruby
View brownson-orestes.yml
# A model of a convert's life
name-last : Brownson
name-first : Orestes Augustus
born : 1803-09-16
died : 1876-04-17
birth-religion : Congregationalism
conversions :
lmullen /
Created Aug 17, 2012
Dissertation word count scripts
source /Users/lmullen/.bash_profile
EPOCH=$(date +"%s")
WCCH1=$(wc -w /Users/lmullen/acad/dissertation/ | sed 's/\/Users\/lmullen\/acad\/dissertation\/' | sed 's/ //g')
WCCH2=$(wc -w /Users/lmullen/acad/dissertation/ | sed 's/\/Users\/lmullen\/acad\/dissertation\/' | sed 's/ //g')
WCCH3=$(wc -w /Users/lmullen/acad/dissertation/ | sed 's/\/Users\/lmullen\/acad\/dissertation\/' | sed 's/ //g')
WCCH4=$(wc -w /Users/lmullen/acad/dissertation/ | sed 's/\/Users\/lmullen\/acad\/dissertation\/' | sed 's/ //g')
WCCH5=$(wc -w /Users/lmullen/acad/dissertation/ | sed 's/\/Users\/lmullen\/acad\/dissertation\/' | sed 's/ //g')
lmullen /
Created Sep 15, 2012
A shell script to delay checking e-mail (or really, any action)
# A shell script to convince me not to check my e-mail.
# Lincoln Mullen | |
read -p "Do you really need to check your e-mail (y/n)? " yn
case $yn in
y|Y ) echo "You'll have to wait. CTRL+C to get back to work."; sleep 180; mutt;;
n|N ) exit;;
lmullen / gist:3767386
Created Sep 22, 2012
Make all markdown files in directory into PDFs
View gist:3767386
# Produce PDFs from all Markdown files in a directory
# Lincoln Mullen | |
# List files to be made by finding all *.md files and appending .pdf
PDFS := $(patsubst,,$(wildcard *.md))
# The all rule makes all the PDF files listed
all : $(PDFS)
# This generic rule accepts PDF targets with corresponding Markdown
lmullen / BibTeX-lam.js
Created Nov 3, 2012
customized BibTeX exporter for Zotero
View BibTeX-lam.js
"translatorID": "9cb70025-a888-4a29-a210-93ec52da40d4",
"translatorType": 3,
"label": "BibTeX",
"creator": "Simon Kornblith and Richard Karnesky",
"target": "bib",
"minVersion": "2.1.9",
"maxVersion": null,
"priority": 200,
"inRepository": true,
lmullen / .slate
Created Feb 8, 2013
My configuration file for the Slate window manager
View .slate
# -------------------------------------------------------------------
# See
config defaultToCurrentScreen true
config secondsBeforeRepeat 0.4
config secondsBetweenRepeat 0.1
config keyboardLayout "qwerty"
config nudgePercentOf screenSize
config resizePercentOf screenSize
lmullen / 10print.rb
Last active Dec 15, 2015
10print in Ruby, just because.
View 10print.rb
#!/usr/bin/env ruby
print (9585+rand(0..1)).chr(Encoding::UTF_8) while true
lmullen / Rakefile
Last active Dec 15, 2015
A Rakefile to install my Omeka development server
View Rakefile
desc "There is no default task"
task :default do
puts "There is no default task. Try one of these:"
sh "rake --tasks"
desc "Setup Omeka"
task :setup_omeka => [:omeka_download, "omeka-dev", :omeka_copy_files, :omeka_install_official_plugins, :omeka_link_dev_theme, :omeka_link_dev_plugins] do
puts "Omeka is setup."
You can’t perform that action at this time.