This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; org-ocr.el --- Recognize the text on images and insert it in place as a quote block in Org-mode -*- lexical-binding: t; -*- | |
;;; This file is NOT part of GNU Emacs | |
;;; License | |
;; | |
;; 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 | |
;; the Free Software Foundation; either version 3, or (at your option) | |
;; any later version. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; ** Hydras | |
;;; *** context launcher for hydras | |
(defun dfeich/context-hydra-launcher () | |
"A launcher for hydras based on the current context." | |
(interactive) | |
(cl-case major-mode | |
('org-mode (let* ((elem (org-element-context)) | |
(etype (car elem)) | |
(type (org-element-property :type elem))) | |
(cl-case etype |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; | |
;; 28.07.2017 | |
;; Charles Wang | |
;; | |
;;;;;;; Tweaks for Org & org-latex ;;;;;; | |
(defvar cw/org-last-fragment nil | |
"Holds the type and position of last valid fragment we were on. Format: (FRAGMENT_TYPE FRAGMENT_POINT_BEGIN)" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#K=pop prevalence | |
#P=proportion of cases in study | |
#hsq=Heritability estimate (on observed scale) | |
#bigT = liability threshold | |
#tau = density of gaussian | |
K=0.0659 | |
P=0.0659 | |
h2=0.0365 | |
zv <- dnorm(qnorm(K)) |