Skip to content

Instantly share code, notes, and snippets.

@YenForYang
YenForYang / CapsLockCtrlEscape.ahk
Last active October 30, 2016 23:19 — forked from randy909/CapsLockCtrlEscape.ahk
AutoHotkey script to map Caps Lock to Escape when it's pressed on its own, and Ctrl when used in combination with another key, à la Steve Losh. Adapted from the one that does something similar with the Ctrl Key on the Vim Tips Wiki (http://vim.wikia.com/wiki/Map_caps_lock_to_escape_in_Windows?oldid=32281).
g_LastCtrlKeyDownTime := 0
g_AbortSendEsc := false
g_ControlRepeatDetected := false
*CapsLock::
if (g_ControlRepeatDetected)
{
return
}
@YenForYang
YenForYang / GistMaker
Last active March 5, 2017 07:29
Update-AUPackages Report #powershell #chocolatey
We couldn’t find that file to show.
@YenForYang
YenForYang / .curlrc
Last active October 2, 2024 03:17
curlrc
### OPTIONS
# Options start with one or two dashes. Many of the options require an additional value next to them.
#
# The short "single-dash" form of the options, -d for example, may be used with or without a space between it and its value, although a space is a recommended separator. The long "double-dash" form, -d, --data for example, requires a space between it and its value.
#
# Short version options that don't need any additional values can be used immediately next to each other, like for example you can specify all the options -O, -L and -v at once as -OLv.
#
# In general, all boolean options are enabled with --option and yet again disabled with --no-option. That is, you use the exact same option name but prefix it with "no-". However, in this list we mostly only list and show the --option version of them. (This concept with --no options was added in 7.19.0. Previously most options were toggled on/off on repeated use of the same command line option.)
#
@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.
@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 / 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 / .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

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: