from google.colab import drive
drive.mount('/content/gdrive')
!pip install torch==1.2.0 torchvision==0.4.0 -f https://download.pytorch.org/whl/torch_stable.html
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 |
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 |
#!/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'): |
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 + "`"" |
{ | |
"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}", |
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)) |
/** | |
* 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 |
Shader "Hidden/Bloom" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
} | |
HLSLINCLUDE | |
#include "Packages/com.unity.render-pipelines.lightweight/ShaderLibrary/Core.hlsl" | |
struct appdata |