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
import csv | |
import string | |
import sys | |
import re | |
RE_DATE = re.compile("([a-zA-Z]+) (\d+)$") | |
RE_INTERN = re.compile("(.+) \((.+)\)") | |
def parse_intern(line): | |
name, data = RE_INTERN.match(line).group(1,2) |
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
# Based on the example properties given at http://logging.apache.org/log4j/1.2/manual.html | |
# Set root logger level to DEBUG and its only appender to A1. | |
log4j.rootLogger=DEBUG,A1,file | |
# A1 is set to be a ConsoleAppender. | |
log4j.appender.A1=org.apache.log4j.ConsoleAppender | |
log4j.appender.file=org.apache.log4j.FileAppender | |
# A1 uses PatternLayout. | |
log4j.appender.A1.layout=org.apache.log4j.PatternLayout |
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
function! Viadict(word, thesaurus) | |
if !exists('g:viadict_window') | |
let g:viadict_window = bufnr('viadict_window', 1) | |
endif | |
if bufnr('%') != g:viadict_window | |
execute "below sb " . g:viadict_window | |
endif |
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
(require 'package) | |
(add-to-list 'package-archives | |
'("marmalade" . | |
"http://marmalade-repo.org/packages/")) | |
(package-initialize) | |
(defvar my-packages '(clojure-mode | |
clojure-test-mode | |
paredit)) |
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
function postMessageAndHashbang(obj) { | |
var msg = ""; | |
if(typeof obj === "object" && obj.smsupsell.postmessagevalue != null) { | |
msg = obj.smsupsell.postmessagevalue; | |
} else { | |
msg = obj; | |
}; | |
parent.postMessage(JSON.stringify({smsupsell: {postmessagevalue: msg}}), "*"); | |
history.pushState({}, "", "#!"+msg); | |
window.location = window.location; //Don't ask… |
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
#+BEGIN_SRC emacs-lisp :results output silent :exports none | |
(setq | |
org-latex-minted-options '(("breaklines" "true")) | |
org-latex-listings 'minted | |
org-latex-packages-alist '(("" "minted" "parskip" "hypersetup")) | |
org-latex-to-pdf-process | |
'("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f" | |
"pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f" | |
"pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f") | |
org-latex-pdf-process org-latex-to-pdf-process) |
OlderNewer