I hereby claim:
- I am suhailshergill on github.
- I am shergill (https://keybase.io/shergill) on keybase.
- I have a public key whose fingerprint is 623E 49E5 27D5 5D95 AA69 CE52 8956 DBE3 13DA 7380
To claim this, I am signing this object:
| import scala.language.higherKinds | |
| trait Monad[M[_]] { | |
| implicit def `Monad ~> Functor`[M[_]: Monad]: Functor[M] = new Functor[M]{} | |
| } | |
| trait Functor[F[_]] { | |
| } | |
| object Functor { |
I hereby claim:
To claim this, I am signing this object:
| (setq x-select-enable-clipboard t) | |
| ;; [[https://hugoheden.wordpress.com/2009/03/08/copypaste-with-emacs-in-terminal/][source]] | |
| ;; If emacs is run in a terminal, the clipboard- functions have no | |
| ;; effect. Instead, we use of xsel, see | |
| ;; http://www.vergenet.net/~conrad/software/xsel/ -- "a command-line | |
| ;; program for getting and setting the contents of the X selection" | |
| (unless window-system | |
| (when (getenv "DISPLAY") | |
| ;; Callback for when user cuts |
| object Def { | |
| object WithoutEnum { | |
| sealed trait Version { | |
| val version: Version | |
| } | |
| trait Version1 extends Version { | |
| val version = Version1 | |
| } | |
| implicit object Version1 extends Version1 | |
| trait Version2 extends Version { |
| object Foo { | |
| // consider the code in each `Foo.scala` object as if it were defined in a | |
| // separate file | |
| object `Traits.scala` { | |
| object Permissions { | |
| private[Permissions] sealed trait Permitted[C] { self: C => } | |
| private[Permissions] sealed trait Permission { self: Permitted[_] => | |
| protected val Permission: Permission | |
| } |
| (defadvice doc-view-open-text (around | |
| su/advice/doc-view/doc-view-open-text/around/goto-page | |
| last a c pre) | |
| "grab the page when in doc-view mode and ensure that doc-view-open-text | |
| opens the correct page" | |
| (let ((su/dv/page (doc-view-current-page)) | |
| (su/dv/text-buffer-name (concat "Text contents of " (buffer-name)))) | |
| ad-do-it | |
| (with-current-buffer su/dv/text-buffer-name | |
| (re-search-forward "" nil t (1- su/dv/page)) |
| From 7037a45f3504a8d95019bd2b496a919081e85331 Mon Sep 17 00:00:00 2001 | |
| From: Suhail Shergill <[email protected]> | |
| Date: Sat, 23 Mar 2013 19:26:31 -0400 | |
| Subject: [PATCH] bugfix: fix `org-babel-execute-src-block' on remote hosts | |
| * lisp/ob.el (org-babel-temp-file): For remote hosts, modify the prefix | |
| and leave `temporary-file-directory' unchanged. | |
| The reason setting `temporary-file-directory' doesn't work here is | |
| because `make-temp-file' recursively calls itself (indirectly). |
| * filter=gpg diff=gpg | |
| [merge] | |
| renormalize=true |
| (setq org-export-htmlize-output-type 'css) | |
| (setq org-footnote-section nil) | |
| (setq org-footnote-auto-label t) | |
| (setq org-time-stamp-custom-formats | |
| '("<%Y-%m-%d %a>" . "<%Y-%m-%d %a %H:%M %z>")) | |
| (defun su/journal/select-current-entry () | |
| "helper to select current org entry" | |
| (org-back-to-heading) | |
| (set-mark (point)) | |
| (org-end-of-subtree) |