#+LaTeX_HEADER: \usepackage{parskip} \usepackage{nopageno} \usepackage{tabularx}
#+LaTeX_HEADER: \usepackage[margin=1.5cm,portrait,letterpaper]{geometry} \newenvironment{identity} {\endgroup\ignorespaces} {\begingroup\def\@currenvir{identity}\ignorespacesafterend}
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
#!/usr/bin/env python | |
# A simple script to suck up HTML, convert any images to inline Base64 | |
# encoded format and write out the converted file. | |
# | |
# Usage: python standalone_html.py <input_file.html> <output_file.html> | |
# | |
# TODO: Consider MHTML format: https://en.wikipedia.org/wiki/MHTML | |
import os | |
from bs4 import BeautifulSoup |
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
;; variant of dtk-bible--insert-using-diatheke which returns parsed diatheke output | |
(defun dtk-bible--parse-diatheke (book chapter-verse &optional module diatheke-output-format) | |
"Insert content specified by BOOK and CHAPTER-VERSE into the current buffer. CHAPTER-VERSE is a string of the form CC:VV (chapter number and verse number separated by the colon character). | |
Optional argument MODULE specifies the module to use." | |
(unless diatheke-output-format | |
(setq diatheke-output-format :plain)) | |
(let ((module (or module dtk-module))) | |
(with-temp-buffer | |
(dtk-diatheke (list book chapter-verse) module t diatheke-output-format nil) | |
(cond ((dtk-check-for-text-obesity) |
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
(defvar dat-diary-idle-timer | |
;; day of week | |
(let ((dat-ran-diary-on-day -1) | |
(idle-sec 600)) | |
(run-with-idle-timer | |
idle-sec | |
t | |
#'(lambda () | |
;; check if we've run diary yet today | |
(let ((day-number (calendar-day-of-week (calendar-current-date))))) |
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
/* | |
the main page | |
*/ | |
ytd-browse.style-scope {display: none;} | |
ytd-browse.ytd-page-manager {display: none;} | |
/* | |
single video page | |
*/ |
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
/* car and driver; road and track */ | |
img.i-amphtml-replaced-content { | |
display:none | |
} | |
div.gpt-adslot { | |
display:none | |
} | |
div.content-ads { |
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
(defun dat-url-of-dired-file () | |
"Add to the kill ring the URL for tthe file named at the current Dired point." | |
(interactive) | |
(let ((tem (dired-get-filename t t))) | |
(if tem | |
; (message "file: %s" | |
(kill-new | |
(concatenate 'string "file://" | |
(expand-file-name tem))) | |
(error "No file on this line")))) |
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
ASCII(7) Linux Programmer's Manual ASCII(7) | |
NAME | |
ascii - ASCII character set encoded in octal, decimal, | |
and hexadecimal | |
DESCRIPTION | |
ASCII is the American Standard Code for Information In‐ | |
terchange. It is a 7-bit code. Many 8-bit codes (e.g., | |
ISO 8859-1) contain ASCII as their lower half. The in‐ |
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
;; https://gist.github.com/thomp/ff0fb98d4239af4e3f26a7b0cc64f4b6 | |
(require 'transient) | |
;; simple transient | |
(transient-define-prefix tsc-hello () | |
"Prefix that is minimal and uses an anonymous command suffix." | |
;; Binding suffixes with the ("key" "description" suffix-or-command) form within a group is extremely common. | |
[("s" "call suffix" | |
(lambda () | |
(interactive) |
OlderNewer