This file contains hidden or 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
diff --git a/r2/r2/templates/base.xml b/r2/r2/templates/base.xml | |
index 8422b2d..11766a4 100644 | |
--- a/r2/r2/templates/base.xml | |
+++ b/r2/r2/templates/base.xml | |
@@ -25,11 +25,13 @@ | |
%> | |
<?xml version="1.0" encoding="UTF-8"?> | |
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" | |
- xmlns:media="http://search.yahoo.com/mrss"> | |
+ xmlns:media="http://search.yahoo.com/mrss" |
This file contains hidden or 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
diff --git a/twittering-mode.el b/twittering-mode.el | |
index 3a34794..143599c 100644 | |
--- a/twittering-mode.el | |
+++ b/twittering-mode.el | |
@@ -428,6 +428,7 @@ StatusNet Service.") | |
(mentions . "statuses/mentions") | |
(public . "statuses/public_timeline") | |
(replies . "statuses/replies") | |
+ (favorites . "favorites") | |
(retweeted_by_me . "statuses/retweeted_by_me") |
This file contains hidden or 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 | |
"""Get title/author for ISBNs in a Google Docs spreadsheet.""" | |
from getpass import getpass | |
import os | |
import os.path | |
import sys | |
from gdata.spreadsheet import service, SpreadsheetsList | |
from gdata.books import service as bservice |
This file contains hidden or 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 | |
"""Store messages in a Maildir into a couchdb database.""" | |
import couchdb | |
from mailbox import Maildir | |
from optparse import OptionParser | |
import os | |
from pprint import pprint | |
import sys | |
from uuid import uuid4 |
This file contains hidden or 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
def utf8decode(thing): | |
"""Try to convert from ASCII to UTF-8.""" | |
try: | |
return thing.decode('utf-8') | |
except UnicodeDecodeError, _exc: | |
# many badly created messages will be like this | |
try: | |
return thing.decode('iso-8859-15') | |
except UnicodeDecodeError, exc: |
This file contains hidden or 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
;; example function to call | |
(defun underline-char (char-point) | |
(add-text-properties char-point (1+ char-point) | |
'(face underline))) | |
(defun do-high-ascii (fn) | |
(interactive "aFunction: ") | |
(save-excursion | |
(goto-char (point-min)) | |
(while (< (point) (point-max)) |
This file contains hidden or 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 | |
"""Store messages in a Maildir into a couchdb database.""" | |
import couchdb | |
from email.header import decode_header | |
from email.utils import parseaddr, getaddresses | |
import logging | |
from mailbox import Maildir | |
from optparse import OptionParser | |
import os |
This file contains hidden or 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
CFLAGS= -I. | |
PROG= inform6 | |
SRCS= arrays.c asm.c bpatch.c chars.c directs.c errors.c expressc.c expressp.c \ | |
files.c inform.c lexer.c linker.c memory.c objects.c states.c symbols.c \ | |
syntax.c tables.c text.c veneer.c verbs.c | |
OBJS= ${SRCS:.c=.o} | |
all: $(PROG) | |
clean: |