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
@xeechou
xeechou / PKGBUILD
Last active February 28, 2022 15:24
PKGBUILD file for directx-shader-compiler
# Maintainer: Robert Manner <the_manni at users.sf.net>
pkgname=directx-shader-compiler
_pkgname=DirectXShaderCompiler
pkgdesc="A compiler for HLSL to DXIL (DirectX Intermediate Language)."
pkgver=1.6.2106
pkgrel=1
arch=('x86_64')
url="https://github.com/microsoft/${_pkgname}"
license=('BSD') # NCSA
@xeechou
xeechou / treevec_imgui.hpp
Last active November 25, 2021 02:49
Dynamic TreeNodes using ImGUI
#pragma once
#include <stack>
#include <vector>
#include <stack>
#include <utility>
#include <functional>
#include <tuple>
#include <imgui.h>
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: [email protected]
Weili Han, http://crypto.fudan.edu.cn/people/weili/
韩伟力, http://homepage.fudan.edu.cn/wlhan/en
This is just my personal gist clip.