Skip to content

Instantly share code, notes, and snippets.

;;; annotate.el --- mark up foreign language buffers according to anki deck
;; Copyright (C) 2009 Ryan Yeske
;; Author: Ryan Yeske <[email protected]>
;; Keywords: languages
;; Version: 2009-03-17 23:04:03
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@rcy
rcy / rcirc-pending.el
Last active February 7, 2023 08:14
allow editing messages after they are submitted in rcirc
;;; rcirc-pending.el --- allow editing messages after they are submitted
;; Author: Ryan Yeske <[email protected]>
;; Keywords: comm
import json
import urllib.request
# Chrome's debugging protocol is accessible on localhost port 9222
url = "http://localhost:9222/json"
try:
with urllib.request.urlopen(url) as response:
tabs = json.loads(response.read().decode())
for tab in tabs: