Skip to content

Instantly share code, notes, and snippets.

View randomwangran's full-sized avatar

randomwangran

View GitHub Profile
Time scale_up_version_one
36.114 0.00017038
36.119 0.00019285
36.168 0.00017332
36.654 -7.38E-05
41.519 0.00027534
41.524 0.00028726
41.53 0.00028998
41.535 0.00029421
41.541 0.0002916
Conference info, how to watch/participate: https://emacsconf.org/2020/
Guidelines for conduct: https://emacsconf.org/conduct/
Except where otherwise noted, the material on the EmacsConf pad are dual-licensed under the terms of the Creative Commons Attribution-ShareAlike 4.0 International Public License; and the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) an later version.
Copies of these two licenses are included in the EmacsConf wiki repository, in the COPYING.GPL and COPYING.CC-BY-SA files (https://emacsconf.org/COPYING/).
By contributing to this pad, you agree to make your contributions available under the above licenses. You are also promising that you are the author of your changes, or that you copied them from a work in the public domain or a work released under a free license that is compatible with the above two licenses. DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION.
This pad is here to be curated by everybody
(defun center-window (window) ""
(let* ((current-extension (file-name-extension (or (buffer-file-name) "foo.unknown")))
(filename (buffer-file-name (current-buffer)))
(max-text-width 80)
(margin (max 0 (/ (- (window-width window) max-text-width) 2))))
(if (and (not (string-match-p (expand-file-name org-roam-directory) (format "%s" filename)))
(not (string= current-extension "org")))
;; Do nothing if this isn't an .md or .txt file.
()
(set-window-margins window margin margin))))

Hi, I am Ran. I am currently contributing my effort to the scientific community with a focus on aeodynamics using computers.

Apart of that, I have wide intestests in science and many other things. This account on GitHub is inspired by "Working with the garage door up". It's a journal of my explorations.

https://emacs-china.org/t/05-org-as/12092/32
(setq org-agenda-format-date 'yuchen/org-agenda-format-date-aligned)
(defun yuchen/org-agenda-format-date-aligned (date)
"Format a DATE string for display in the daily/weekly agenda, or timeline.
This function makes sure that dates are aligned for easy reading."
(require 'cal-iso)
(let* ((dayname (aref cal-china-x-days
0
Feynman 先生曾对这样的观点发表过他的见解
假如 A B 两种不同的理论能解释同一种物理现象,但是数学表达却不一样.从科学的的角度,是无法判定 A B 究竟谁对谁错.
```
A B E (something else)

0.4280484051538046

有两个 interactive 函数,欲呼叫 alice 之后呼叫 blob.
0. 能不能这样呼叫?
1. 怎么呼叫?
```Lisp
(defun alice (arg)
(message "a"))
(defun blob (&optional creepy_arg)