Skip to content

Instantly share code, notes, and snippets.

(defun vulpea-project-p ()
"Return non-nil if current buffer has any todo entry.
TODO entries marked as done are ignored, meaning the this
function returns nil if current buffer contains only completed
tasks."
(seq-find ; (3)
(lambda (type)
(eq type 'todo))
(org-element-map ; (2)
@James-Hudson3010
James-Hudson3010 / docker-compose.yml
Last active August 1, 2020 05:27
Working to get Neo4J, Docker, and neosemantics working together
version: '3'
services:
neo4j:
image: neo4j:3.5
container_name: neo4j
ports:
- 7474:7474
- 7687:7687
environment:
@duhaime
duhaime / get_latin_library.py
Last active March 15, 2019 17:13
Get Latin Library Texts
from glob2 import glob
from bs4 import BeautifulSoup
from os.path import basename
import codecs, os
target = 'www.thelatinlibrary.com'
os.system('wget -r -l 4 {0}'.format(target))
os.system('cd {0} && mkdir plaintext && find . -name "*.html" -size -3k -delete'.format(target))
for i in glob('*.html') + glob('*/**.html') + glob('*.shtml') + glob('**/*.shtml'):
\documentclass[a4paper,12pt]{article}
\usepackage{fullpage}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\usepackage{xspace}
% PDF stuff
\ifx\pdfoutput\undefined
\else
\pdfpagewidth=210mm