A quick and dirty script to check out each commit of a writing project and find the word count of each Markdown file at that point in time. You might want to use this on a clone of your writing repository. NO WARRANTY EXPRESS OR IMPLIED.
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
command! -nargs=0 PDF call PDF() | |
function! PDF() | |
:silent exec "!open ".expand("%:p").".pdf" | |
endfunction |
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
{ | |
"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, |
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/bash | |
# A shell script to convince me not to check my e-mail. | |
# Lincoln Mullen | http://lincolnmullen.com | lincoln@lincolnmullen.com | |
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;; | |
esac |
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/bash | |
source /Users/lmullen/.bash_profile | |
EPOCH=$(date +"%s") | |
DATE=$(date) | |
WCCH1=$(wc -w /Users/lmullen/acad/dissertation/ch1.dissertation.Mullen.md | sed 's/\/Users\/lmullen\/acad\/dissertation\/ch1.dissertation.Mullen.md//' | sed 's/ //g') | |
WCCH2=$(wc -w /Users/lmullen/acad/dissertation/ch2.dissertation.Mullen.md | sed 's/\/Users\/lmullen\/acad\/dissertation\/ch2.dissertation.Mullen.md//' | sed 's/ //g') | |
WCCH3=$(wc -w /Users/lmullen/acad/dissertation/ch3.dissertation.Mullen.md | sed 's/\/Users\/lmullen\/acad\/dissertation\/ch3.dissertation.Mullen.md//' | sed 's/ //g') | |
WCCH4=$(wc -w /Users/lmullen/acad/dissertation/ch4.dissertation.Mullen.md | sed 's/\/Users\/lmullen\/acad\/dissertation\/ch4.dissertation.Mullen.md//' | sed 's/ //g') | |
WCCH5=$(wc -w /Users/lmullen/acad/dissertation/ch5.dissertation.Mullen.md | sed 's/\/Users\/lmullen\/acad\/dissertation\/ch5.dissertation.Mullen.md//' | sed 's/ //g') |
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
# 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 : |
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
/* | |
* 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: https://gist.github.com/1046538 | |
* | |
*/ |
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
<?php | |
include_once(ABSPATH . WPINC . '/rss.php'); | |
$rss = fetch_rss('http://search.twitter.com/search.atom?q=thatcamp'); | |
$maxitems = 3; | |
$items = array_slice($rss->items, 0, $maxitems); | |
?> | |
<ul id="twitter"> | |
<?php if (empty($items)) echo '<li>No items</li>'; | |
else | |
foreach ( $items as $item ) : ?> |
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
install.packages("genderdata", repos = "http://packages.ropensci.org", type = "source") |
A first lesson in R for The Digital Past.