Skip to content

Instantly share code, notes, and snippets.

(defun hnreader--print-frontpage-item (thing subtext)
"Print THING dom and SUBTEXT dom."
(let* ((url (format "https://news.ycombinator.com/item?id=%s" (dom-attr thing 'id)))
(a-node (dom-child-by-tag (dom-by-class thing "^titleline$") 'a))
(title-link (dom-attr a-node 'href)))
(insert (format "\n* %s %s (%s) [%s]\n"
;; rank
(dom-text (dom-by-class thing "^rank$"))
;; title
(dom-text a-node)
@gabrielhidasy
gabrielhidasy / PKGBUILD
Created October 30, 2020 00:49
PKGBUILD to build i3-autodisplay
# Maintainer: Gabriel Hidasy Rezende <gabrielhidasy@gmail.com>
pkgname=i3-autodisplay-git
_pkgname=i3-autodisplay
pkgver=v0.4_1_gad192b4
pkgrel=1
pkgdesc='Automatically manages monitors and workspaces in i3'
arch=('i686' 'x86_64')
url="https://github.com/lpicanco/$_pkgname"
license=('GPL3')
makedepends=('git' 'go')