Skip to content

Instantly share code, notes, and snippets.

@ikarth
ikarth / gist:7994dd7899e4c6ffa74a
Created August 1, 2014 19:28
Callisto Email CSV Redacting and Formatting in Clojure
(ns callisto-tools.core
(:require [clojure.pprint]
[clojure.math.numeric-tower]
[clojure-csv.core])
)
(defn personal-info []
[
["string to delete" "string to replace it with"]
#!/usr/bin/env python
# You may need to set the environment variable to output utf-8.
# On Windows, the command is: set PYTHONIOENCODING=utf-8
# Or, more sensibly, you could rewrite this to write directly
# to a file rather than stdout
import sys
for line in open(sys.argv[1], mode='r', encoding="utf-8"):
if line.strip()=='':
1001.txt:For this Project Gutenberg edition the e-text was rechecked. The editor
10026-8.txt:Note: Project Gutenberg also has an HTML version of this
10026.txt:Note: Project Gutenberg also has an HTML version of this
10028.txt:and the Project Gutenberg Online Distributed Proofreading Team
10074-8.txt:Note: Project Gutenberg also has an HTML version of this
10074.txt:Note: Project Gutenberg also has an HTML version of this
10076-8.txt:Project Gutenberg Distributed Proofreaders
10076.txt:Project Gutenberg Distributed Proofreaders
10079-8.txt:and the Project Gutenberg Online Distributed Proofreading Team
10079.txt:and the Project Gutenberg Online Distributed Proofreading Team

PRIDE & PREJUDICE.

CHAPTER I.

It is a truth universally acknowledged, that a single man in possession of a good fortune, must be in want of a wife.

However little known the feelings or views of such a man may be on his first entering a neighbourhood, this truth is so well fixed in the minds of the surrounding families, that he is considered as the rightful property of some one or other of their daughters.

Mr. Bennet replied that he had not.

@ikarth
ikarth / GutenbergShuffle.markdown
Created November 28, 2013 04:24
Gutenberg Shuffle: A Generated Novel

To Heloise she is always THE woman.

The clearance was effected at last; the Stryver arrears were handsomely fetched up; everything was got rid of until November should come with its fogs atmospheric, and fogs legal, and bring grist to the mill again. Mr. Lorry had not thought of that, and he looked quickly at Carton to see if it were in his mind. JULIE DI except that he gives promise of attaining his father's noble inches, is much like his mother. I remonstrated against the sending of this note, because it was so mixed up that the landlord would never be able to make head or tail of it; but Blucher said he guessed the old man could read the French of it and average the rest. We secured rooms at the hotel, or rather, we had three beds put into one room, so that we might be together, and then we went out to a restaurant, just after lamplighting, and ate a comfortable, satisfactory, lingering dinner. The irruption of the previous evening had spent its force and the floor looked black and cold; but when we ran