This file contains 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
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. |
This file contains 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
;; 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" |
This file contains 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
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 : |
This file contains 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
#pragma once | |
#include <stack> | |
#include <vector> | |
#include <stack> | |
#include <utility> | |
#include <functional> | |
#include <tuple> | |
#include <imgui.h> |
This file contains 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
# 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 |
This file contains 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
include(CompileShader) | |
find_program(DXC_EXE NAMES dxc REQUIRED) | |
if (NOT DXC_EXE) | |
message(FATAL "The dxc executable is not available. You must install it") | |
endif() | |
################################################################################ | |
macro(compile_hlsl_parse_options) |
This file contains 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
#version 460 | |
#extension GL_GOOGLE_include_directive : require | |
// ------------------------------------------------------------------------ | |
// INPUTS ----------------------------------------------------------------- | |
// ------------------------------------------------------------------------ | |
layout(location = 0) in vec3 VS_IN_Position; |
This file contains 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
struct VSBasicIn | |
{ | |
[[vk::location(0)]] float4 Pos : POSITION; | |
[[vk::location(1)]] float3 Norm : NORMAL; | |
[[vk::location(2)]] float2 Tex : TEXCOORD0; | |
}; | |
struct VSBasicIn1 | |
{ | |
[[vk::location(3)]] float4 tangent : TANGENT; |
This file contains 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
// ==UserScript== | |
// @namespace https://xeechou.net/gmscripts | |
// @name Blocking youtube play list | |
// @version 1 | |
// @grant GM_addStyle | |
// @include https://www.youtube.com/* | |
// ==/UserScript== | |
function GM_addStyle(css) { |
This file contains 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
\newcommand*{\img-inline}[1]{% | |
\raisebox{-.1\baselineskip}{% | |
\includegraphics[ | |
height=0.8\baselineskip, | |
width=0.8\baselineskip, | |
keepaspectratio, | |
]{#1}% | |
}% | |
} |
OlderNewer