Skip to content

Instantly share code, notes, and snippets.

View xeechou's full-sized avatar
🏠
Working from home

Xichen Zhou xeechou

🏠
Working from home
View GitHub Profile
template<typename T>
constexpr bool isprimeloop(T p, T d)
{
return (d == p) ? true :
(p % d == 0) ? false : isprimeloop(p, d+1);
}
template<typename T>
constexpr bool isprime(T p)
{
return (p <= 2) ? true :
@xeechou
xeechou / load-dir.el
Created March 24, 2016 03:30
simple load-dir in elisp
;; 2016-3-23, the simple but good enough load-dir function.
;; I won't run into the argument error anymore
(provide 'load-dir)
(defun load-dir (dir)
"load-lisp files from a directory"
Binxing Fang, http://en.wikipedia.org/wiki/Fang_Binxing
方滨兴,中国工程院院士,北京邮电大学教授,中国科学院计算技术研究所网 络方向首席科学家。
Gang Xiong, http://rd.springer.com/search?facet-author=%22Gang+Xiong%22
熊刚, 高级工程师, 研究方向为信息安全。E-mail: xionggang@ict.ac.cn。
Weili Han, http://crypto.fudan.edu.cn/people/weili/
韩伟力, http://homepage.fudan.edu.cn/wlhan/en
This is just my personal gist clip.