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
#ifndef TAA_SIMPLE_HLSL | |
#define TAA_SIMPLE_HLSL | |
// https://github.com/Unity-Technologies/FPSSample/blob/master/Packages/com.unity.postprocessing/PostProcessing/Shaders/Builtins/TemporalAntialiasing.shader | |
// https://github.com/Unity-Technologies/PostProcessing/blob/v2/PostProcessing/Shaders/Builtins/TemporalAntialiasing.shader | |
#include "UnityCG.cginc" | |
Texture2D _MainTex; | |
// Vector4(1 / width, 1 / height, width, height) | |
float4 _MainTex_TexelSize; |
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
/** | |
* Licensed to the Apache Software Foundation (ASF) under one | |
* or more contributor license agreements. See the NOTICE file | |
* distributed with this work for additional information | |
* regarding copyright ownership. The ASF licenses this file | |
* to you under the Apache License, Version 2.0 (the | |
* "License"); you may not use this file except in compliance | |
* with the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
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
std::string utf16_to_utf8(std::u16string const &s) { | |
std::wstring_convert< | |
std::codecvt_utf8_utf16<char16_t, 0x10ffff, | |
std::codecvt_mode::little_endian>, | |
char16_t> | |
cnv; | |
std::string utf8 = cnv.to_bytes(s); | |
if (cnv.converted() < s.size()) | |
throw std::runtime_error("incomplete conversion"); | |
return utf8; |
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
import win32com.client as win32 | |
from win32com.client import constants | |
from pathlib import Path | |
excel = win32.gencache.EnsureDispatch('Excel.Application') # office | |
# excel = win32.gencache.EnsureDispatch('ket.Application') # wps | |
excel.Visible = False | |
input_path = Path("input.csv").absolute() | |
output_path = Path(".").absolute() | |
csv = excel.Workbooks.Open(str(input_path)) |
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": 3, | |
"configurePresets": [ | |
{ | |
"name": "base", | |
"description": "For more information: http://aka.ms/cmakepresetsvs", | |
"hidden": true, | |
"generator": "Ninja", | |
"binaryDir": "${sourceDir}/build/${presetName}", | |
"installDir": "${sourceDir}/install/${presetName}", |
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
function Invoke-Environment { | |
# from https://github.com/majkinetor/posh/blob/master/MM_Admin/Invoke-Environment.ps1 | |
param | |
( | |
# Any cmd shell command, normally a configuration batch file. | |
[Parameter(Mandatory=$true)] | |
[string] $Command | |
) | |
$Command = "`"" + $Command + "`"" |
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
C++ 4 hrs 1 min ███████████▏░░░░░░░░░ 53.4% | |
Python 1 hr 1 min ██▊░░░░░░░░░░░░░░░░░░ 13.6% | |
Markdown 50 mins ██▎░░░░░░░░░░░░░░░░░░ 11.2% | |
C 44 mins ██░░░░░░░░░░░░░░░░░░░ 9.8% | |
Objecti... 15 mins ▋░░░░░░░░░░░░░░░░░░░░ 3.4% |
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
#!/usr/bin/env python | |
#encoding: utf-8 | |
import subprocess | |
import sys | |
keyboard_id = subprocess.check_output("xinput list | grep 'AT Translated Set' | cut -f2 | cut -d'=' -f2",shell=True).decode('utf-8').strip('\n') | |
master_keyboard_id = subprocess.check_output("xinput list | grep 'master keyboard' | cut -f2 | cut -d'=' -f2",shell=True).decode('utf-8').strip('\n') | |
if len(sys.argv) > 1: | |
if(sys.argv[1] == 'detach'): |
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
function LookupDate(input) | |
local fmt | |
if input == '' then | |
fmt = "%Y年%m月%d日" | |
elseif input == 't' then | |
fmt = "%Y-%m-%d %H:%M:%S" | |
elseif input == 'd' then | |
fmt = "%Y-%m-%d" | |
end |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDn/c1VdIrM6Uz11c1Bi1HPJyonhLbDCFaJWb7sf9O2Th7GkymumE+lwaX8rKd5W28m5JSpO9JIKePMXgrvnWU4PnFrBWIp9rwhOZXLi76MvdRVGioys3BI6klZiBqZXiBkkoa3kvuU9ESfftKnJYYt5LMaG2sR4TKk0/VZcre6pQkuTe2nbJrBKDMkTjlaReT+bk3HVcC3R3OpgH7jnMOv3SvKaCgxq/NQDEz+2TQmurr/5tEYCU0yzA55/Z8uvuokPeXmHpNGFJamUbO1YH0BeDVcIsaphax6gsODSN1eeGXV3/iXRUtzro5h+J3iyQC4uf2dLxfYhhBPRQYPBhGA65s/hQf6MhHwxfPPu9OSbZEnZUZeHj0/QlmWy+EGpeedJNIutHpXUH1xXDNl94DPaZOjZOPzwRma2fe6LVaboOrGv8QJAE4Rpk2jhssMvsv+UreVpWcj1OlljYQbeprz/ki9huILxoputj4Xno99l3SI/VQ3CTB5aImmD1dYHEgrRJBwWNYFJ9uNgxZsIcBVrRkNCPO/q9ClVKDaUvUDQl0w/hgo5EGhs73akUtEqkcvx2FUaCxzASJw3XrPWgvkIRiM1Xu1pUofDm+KA4PpTNhjlMtRvkWyvalX47gwBH28UFa1USdzn5kBuieLw/0xADLrMRNwpWdZyR1ZedGMKQ== zhonghaoyu555@gmail.com |