Skip to content

Instantly share code, notes, and snippets.

;;; codeium-overlay --- Extends codeium.el to provide completion suggestions in overlays -*- lexical-binding: t -*-
;;; Commentary:
;; After installing codeium.el, use M-x `codeium-install' to install binaries automatically, and set up your key.
;; Go to https://github.com/Exafunction/codeium.el for more info.
;; Enable the minor mode `codeium-overlay-mode` to get suggestions in real time that you can accept with TAB.
;; Make sure you are loading codeium before codeium-overlay, for example:
;;; openrouter.el --- Use OpenRouter within Emacs -*- lexical-binding: t; -*-
;; This file is not part of GNU Emacs.
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU Affero General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful,
@tjohnman
tjohnman / worldcities.txt
Created December 8, 2022 19:45
A very large list of cities and towns with their latitude and longitude
GOROKA, PAPUA NEW GUINEA:-6.08167:145.392
MADANG, PAPUA NEW GUINEA:-5.20694:145.789
MOUNT HAGEN, PAPUA NEW GUINEA:-5.82611:144.296
NADZAB, PAPUA NEW GUINEA:-6.56972:146.726
PORT MORESBY, PAPUA NEW GUINEA:-9.44333:147.22
WEWAK, PAPUA NEW GUINEA:-3.58361:143.669
NARSSARSSUAQ, GREENLAND:61.1611:-45.4275
NERLERIT INAAT, GREENLAND:70.7394:-22.6458
GODTHAAB, GREENLAND:64.1908:-51.6781
JAKOBSHAVN, GREENLAND:69.2333:-51.0667
@tjohnman
tjohnman / mangazuki-downloader.js
Created July 11, 2020 09:21
Quick and dirty Node script for downloading and packaging CBZ archives from Mangazuki.
const child_process = require('child_process');
const https = require('https');
const fs = require('fs');
function get(url) {
console.log('Get ' + url);
return new Promise((resolve, reject) => {
const req = https.request(url, {
headers: {
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:10.0) Gecko/20100101 Firefox/10.0'