Skip to content

Instantly share code, notes, and snippets.

View gaute's full-sized avatar

Gaute Hvoslef Kvalnes gaute

View GitHub Profile
@gaute
gaute / convert-ms-date.el
Last active August 29, 2015 14:15
Convert Microsoft (Excel) timestamp to ISO
(defun microsoft-date-to-iso (microsoft-date)
(format-time-string "%Y-%m-%d %H:%M:%S%z" (days-to-time (- (string-to-number microsoft-date) 25569))))
@gaute
gaute / githubprint.user.js
Created November 22, 2011 08:04 — forked from gaute/githubprint.user.js
Printable GitHub
// ==UserScript==
// @name Printable GitHub
// @version 1.1
// @namespace https://github.com/gaute
// @include https://github.com/*/issues/*
// @include https://github.com/*/pull/*
// @include https://github.com/*/wiki/*
// @include https://github.com/*/commit/*
// ==/UserScript==
@gaute
gaute / githubprint.user.js
Created November 11, 2011 10:45
Printable GitHub issues
// ==UserScript==
// @name Printable GitHub issues
// @namespace https://github.com/gaute
// @include https://github.com/*/issues/*
// ==/UserScript==
if (typeof($) === "undefined") {
$ = unsafeWindow.$;
}
@gaute
gaute / rmapstogpx.py
Created June 25, 2010 10:02
Extracts tracklogs from the RMaps database and converts them to GPX files.
# rmapstogpx.py
#
# Extracts tracklogs from the RMaps database (/rmaps/data/geodata.db)
# and converts them to GPX files.
#
# Workaround for http://code.google.com/p/robertprojects/issues/detail?id=88
#
# Usage: python rmapstogpx.py geodata.db
;;; PO-mode
(setq po-msgfmt-program "/sw/bin/msgfmt"
po-translator "Gaute Hvoslef Kvalnes <gaute@verdsveven.com>"
po-language-team "Norwegian Nynorsk <i18n-nn@lister.ping.uio.no>"
po-auto-select-mode 'by-order
po-lookup-replace "/nn/"
po-lookup-replace-with "/nb/"
po-always-setup-lookup-frame nil
po-lookup-frame-font "-apple-bitstream vera sans-medium-r-normal--0-0-0-0-m-0-iso10646-1")