Skip to content

Instantly share code, notes, and snippets.


Theresa O'Connor hober

Block or report user

Report or block hober

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
hober / audiopub-atom-strawman.atom
Created Apr 3, 2019
Strawman example of representing an audiobook's manifest in Atom (RFC 4287)
View audiopub-atom-strawman.atom
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="" xml:lang="en">
<title>Flatland: A Romance of Many Dimensions</title>
<author><name>Edwin Abbott Abbott</name></author>
<contributor><name>Ruth Golding</name></contributor>
<rights type="xhtml">
<div xmlns="">

Keybase proof

I hereby claim:

  • I am hober on github.
  • I am hober ( on keybase.
  • I have a public key ASCuGnAcK5ZPWiDBw7efUYm5HD_tSWesqgh5C3VQ9l28LAo

To claim this, I am signing this object:

View Fix GMane's Archived-At header
(defun tess-mangle-gmane-archival-gnus-data (link)
"Mangle the `gnus-data' property value LINK.
Specifically, change the archival URL from (Gmane's
blog-like interface) to (Gmane's newslike interface)."
(let ((original-date (get-text-property 5 'original-date link))
(face (get-text-property 5 'face link)))
(propertize (replace-regexp-in-string ""
(substring-no-properties link))
'face face 'original-date original-date)))

Hi. I would like to sell someone my Wii. Here's what I have:


  • Nintendo Wii (original, GameCube-compatible one) & associated cords including a VGA adapter
  • Wii Remote x2
  • Wii Remote charging stand & battery packs
  • Wii Nunchuk
  • Wii Classic Controller x2
  • Wii Classic Controller for PC USB adapter
  • Wii Balance Board
View demo-without-angular.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>Radar 22169467</title>
function log(text) {
var logEl = document.getElementById("log");
logEl.innerHTML = logEl.innerHTML + text + "<br>";
hober / gist:3969117
Created Oct 28, 2012
Emacs function to fix fantasai's right hand being off-by-one when scribing.
View gist:3969117
(defun right-hand-querty-correct (b e)
"Fix fantasai's right hand being off by one."
(interactive "r")
(let ((right-hand-keys "
(goto-char b)
(while (not (= (point) e))
hober / spec-toggle.js
Created Mar 27, 2012
Bookmarklet for toggling between sections of the WHATWG and W3C versions of the HTML5 spec
View spec-toggle.js
// javascript:(function()%7b%20%20%20%20%20var%20prefix%3b%20%20%20%20%20var%20hash%20%3d%20window.location.hash%3b%20%20%20%20%20var%20specpart%20%3d%20window.location.pathname.split(%22%2f%22)%3b%20%20%20%20%20specpart%20%3d%20specpart%5bspecpart.length-1%5d%3b%20%20%20%20%20if%20(
var prefix;
var hash = window.location.hash;
var specpart = window.location.pathname.split("/");
specpart = specpart[specpart.length-1];
if (window.location.hostname=="") {
prefix = "";
} else {
View mtucker-mark-comment.el
(defun mtucker-mark-comment (&optional pos)
(interactive "d")
(let ((initial pos)
(syntax (syntax-ppss pos)))
(if (nth 4 syntax)
(push-mark (nth 8 syntax) nil t)
(while (nth 4 syntax)
(setq syntax (syntax-ppss (point)))))
View fun with Aria's HTML parser and jsdom
Given this source document:
<!DOCTYPE html>
<title>Edward O’Connor</title>
<link rel=openid.server href=>
<link rel=openid.delegate href=>
<h1>Edward O’Connor</h1>
<p>Hi, I’m Ted.
The code generates (a longer version of) this document:
View node-discount garbage
With a markdown document like so:
# hello, world
Repeated calls to markdown.parse produce different kinds of garbage at the end:
node> markdown.parse(fs.readFileSync('', 'utf8'));
'<h1>hello, world</h1>^?>\n '
node> markdown.parse(fs.readFileSync('', 'utf8'));
You can’t perform that action at this time.