Skip to content

Instantly share code, notes, and snippets.

View sethwoodworth's full-sized avatar

Seth Woodworth sethwoodworth

View GitHub Profile
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
<os:ShortName>Github</os:ShortName>
<os:Description>Search the Github site for Repositories, Users, Source Code and Projects</os:Description>
<os:InputEncoding>UTF-8</os:InputEncoding>
<os:Image width="16" height="16">data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAD///8A////AMDAwD5ycnKNZGRkm5aWlmf4+PgG////AP///wD///8A////AP///wD///8A////AP///wD///8A////AL6+vj8oKCjXAAAA/QAAAP0EBAT6hoaGeP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wAsLCzTAgIC/aKiolzCwsI8Pj4+wQAAAP3a2tok////AP///wD///8A////AP///wD///8A////AP///wD///8APDw8wgQEBPq2trZI0tLSK0hISLYAAAD9zs7OMP///wD///8A////AP///wD///8A////AP///wD///8A////ANra2iQ6OjrFAAAA/QAAAP0MDAzzeHh4h/r6+gOysrJMqqqqVPr6+gP///8Avr6+P4qKinS0tLRK////AP///wD///8ASkpKtQgICPeqqqpU6OjoFf///wD8/PwB
@sethwoodworth
sethwoodworth / mymoop
Created January 27, 2011 07:35
mymoop
import urllib2
SENDER = '[email protected]'
RECEVIERS = ['[email protected]']
def send_message(message)
try:
smtpObj = smtplib.SMTP('localhost')
smtpObj.sendmail(SENDER, RECEVIERS, message)
print "Successfully sent email"
--------- ------------- -------
|.......| |.......|...| |.....|*
--------- ----.......-------...........| |--...-S-
|.......| |..........................-S- --.......|
|......------- |--...........<............|* |.......--
|..--........-----..........................|. |.-..----
--..--.-----........|[email protected]| |-..--
--..--.*| -----------..................---.----------..--
|...--.| |.*S...S..............---................--
@sethwoodworth
sethwoodworth / schema.js.html
Created March 18, 2012 17:53
schema to html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>~/code/KNotes/schema.js.html</title>
<meta name="Generator" content="Vim/7.3">
<meta name="plugin-version" content="vim7.3_v6">
<meta name="syntax" content="javascript">
<meta name="settings" content="use_css,number_lines">
<style type="text/css">
./manage.py migrate notes
Running migrations for notes:
- Migrating forwards to 0006_auto__add_field_userprofile_hash.
> notes:0004_auto__add_field_userprofile_hash
FATAL ERROR - The following SQL query failed: ALTER TABLE "notes_userprofile" ADD COLUMN "hash" varchar(255) NOT NULL;
The error was: column "hash" contains null values
! Error found during real run of migration! Aborting.
! Since you have a database that does not support running
@sethwoodworth
sethwoodworth / stacktrace
Created October 5, 2012 03:58
gitenberg error
folder path: /media/gitenberg/2/3/4/1/23411
/media/gitenberg/2/3/4/1/23411/Smaïn; and Safti's Summer Day 1905.json
/media/gitenberg/2/3/4/1/23411
<git.Repo "/media/gitenberg/2/3/4/1/23411/.git">
['23411-8.txt', '23411-h/23411-h.htm', '23411.txt', 'CONTRIBUTING.md', 'LICENSE', 'README.rst', '"Sma\
\303\\257n; and Safti\'s Summer Day 1905.json"', 'metadata.json']
23411-8.txt
23411-h/23411-h.htm
23411.txt
CONTRIBUTING.md
@sethwoodworth
sethwoodworth / gist:4081245
Created November 15, 2012 21:03
haystack error
www.finalsclub.org:/var/www/beta [master*] $ ./manage.py update_index
Indexing 12 schools.
ERROR:pysolr:[Reason: None]
<html><head><meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type" /><title>Error 400 ERROR: [doc=notes.school.1] unknown field 'name'</title></head><body><h2>HTTP ERROR 400</h2><p>Problem accessing /solr/update/. Reason:<pre> ERROR: [doc=notes.school.1] unknown field 'name'</pre></p><hr /><i><small>Powered by Jetty://</small></i>
class Ebook():
def set_author(self, element):
self.author = element.text
def set_pubdate(self, element):
self.pubdate = element.text
lookup_table = {
'pg:author ...': self.set_author,
'pg:pubdate ...': self.set_pub_date

### How would your project help to further humanities research?

(e.g. it will make more content and data openly available for researchers to use, it will produce novel insights into humanities data through visualisations...) *

GITenberg will improve the quality of Public Domain transcriptions of books by treating books like open source code. The GITenberg project has compiled an archive of 40,000 public domain ebooks, and by applying open source software tools and techniques to these texts,

{
"name": "Accounting and Management",
"children": [
{"name": "Professor X", "size": 1},
{"name": "Professor X", "size": 1},
{"name": "Professor X", "size": 1},
{"name": "Professor X", "size": 1},
{"name": "Professor X", "size": 1},
{"name": "Professor X", "size": 1},
{"name": "Professor X", "size": 1},