Skip to content

Instantly share code, notes, and snippets.

@YenForYang
YenForYang / README.rst
Last active June 23, 2021 02:42
Fixable Clang-Tidy Checks

abseil-duration-addition

Check for cases where addition should be performed in the absl::Time domain. When adding two values, and one is known to be an absl::Time, we can infer that the other should be interpreted as an absl::Duration of a similar scale, and make that inference explicit.

@YenForYang
YenForYang / ClangTidyChecks.rst
Created June 23, 2021 02:13
Clang-tidy Checks Docs

abseil-duration-addition

Check for cases where addition should be performed in the absl::Time domain. When adding two values, and one is known to be an absl::Time, we can infer that the other should be interpreted as an absl::Duration of a similar scale, and make that inference explicit.

@YenForYang
YenForYang / rar.txt
Last active June 23, 2021 02:08
RAR console version User's Manual
User's Manual
~~~~~~~~~~~~~
RAR 6.02 console version
~~~~~~~~~~~~~~~~~~~~~~~~
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Welcome to the RAR Archiver!
-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Introduction

C++14

Overview

Many of these descriptions and examples come from various resources (see Acknowledgements section), summarized in my own words.

C++14 includes the following new language features:

@YenForYang
YenForYang / .editorconfig
Created January 26, 2019 18:51
EditorConfig
root=true
[*]
indent_style=tab
indent_size=tab
tab_width=2
#end_of_line=lf
charset=utf-8
trim_trailing_whitespace=true
#insert_final_newline=true
@YenForYang
YenForYang / rclone-beta.json
Last active January 30, 2019 16:58
Scoop rclone beta app
{
"version": "1.45-133-g291f2709",
"bin": [
[
"rclone.exe",
"rclone-beta"
]
],
"architecture": {
"64bit": {
@YenForYang
YenForYang / cpp-intel.c
Created December 26, 2018 00:24
icc wrapper (`icc -E`)
#include<unistd.h>
extern char **environ;
int main(int argc, char **argv) {
char *args[argc+2];
args[0] = "icc";
args[1] = "-E";
args[argc+1] = 0;
if (argc > 1) {
for (int a = argc-2; a >= 0; --a) {
args[a+2] = argv[a+1];
@YenForYang
YenForYang / .gitconfig
Last active November 15, 2020 23:50
gitconfig
[README]
# html=
# A html file (HTML fragment) which is included on the gitweb project
# "summary" page inside `<div>` block element. You can use it for longer
# description of a project, to provide links (for example to project's
# homepage), etc. This is recognized only if XSS prevention is off
# (`$prevent_xss` is false, see linkgit:gitweb.conf[5]); a way to include
# a README safely when XSS prevention is on may be worked out in the
# future.