Skip to content

Instantly share code, notes, and snippets.

@amitp
amitp / my-diary.el
Created December 1, 2019 18:19
My org-mode journal
;;; my-diary.el ---
;;; Commentary:
;; My daily diary, inspired by org-journal, but customized for my needs.
;; Timestamps rounded to the nearest 5 minutes.
;;
;; My keybindings: H-j to open the diary file (global binding), then
;; H-j to add an entry (local binding). C-c C-b, C-c C-f to move days
;; (like org-journal). H-i to search previous headings for completion,
@amitp
amitp / gist:15edb4638bc43bac4ca2
Last active August 29, 2015 14:10
emacs git-gutter showing linum instead of symbols
(defun git-gutter:view-set-overlays (diffinfos)
(save-excursion
(goto-char (point-min))
(cl-loop with curline = 1
for info in diffinfos
for start-line = (plist-get info :start-line)
for end-line = (plist-get info :end-line)
for type = (plist-get info :type)
do
(progn
<!DOCTYPE html>
<meta charset="utf-8">
<style>
input { display: block; }
.remainder { position: absolute; left: 175px; height: 7em; width: 1px; background: hsl(220, 50%, 50%); }
</style>
<body>
<p>
@amitp
amitp / index.html
Created July 30, 2014 15:05
Drag and drop line endpoints example for nodweber
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Besier Curve</title>
<style>
circle {
cursor: pointer;
}
@amitp
amitp / keybase.md
Created May 24, 2014 03:21
Keybase.io proof

Keybase proof

I hereby claim:

  • I am amitp on github.
  • I am amitp (https://keybase.io/amitp) on keybase.
  • I have a public key whose fingerprint is 2E2C 5821 F14C 760F 1D46 FFC0 9028 B473 A17D FB46

To claim this, I am signing this object: