\usepackage{tkz-euclide} % checked for version 3.02c
This file contains hidden or 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
Param ($order = $(throw "Order parameter is required")) | |
$outfile = "【22春】9年级新思维精讲-第{0}节课.mp4" -f $order | |
$listfile = "list.txt" | |
New-Item -Force $listfile | |
Get-ChildItem -Name *.flv | ForEach-Object { | |
$tmp = "file './{0}'" -f $_ | |
Add-Content -Path $listfile -Value $tmp |
This file contains hidden or 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
BeginPackage["立体几何`"]; | |
法向量::usage = "法向量[A,B,C]得到平面ABC的一个法向量"; | |
单位法向量::usage = "单位法向量[A,B,C]得到平面ABC的一个单位法向量"; | |
点面距离::usage = "点面距离[P,{A,B,C}]得到点P到平面ABC的距离"; | |
四面体体积::usage = "四面体体积[A,B,C,D]得到四面体ABCD的体积"; |
This file contains hidden or 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/crossdev 2022-12-17 00:33:21.559942156 +0800 | |
+++ /opt/crossdev 2023-01-10 16:23:25.131824325 +0800 | |
@@ -1310,7 +1310,7 @@ | |
force+=" multilib" | |
;; | |
*) | |
- mask+=" multilib";; | |
+ mask+=" $( [[ ${MULTILIB_USE} == "yes" ]] && echo - )multilib";; | |
esac |
This file contains hidden or 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
--- gentoo/eclass/rust-toolchain.eclass 2022-12-28 00:48:32.000000000 +0800 | |
+++ local/eclass/rust-toolchain.eclass 2023-01-08 19:02:42.048876389 +0800 | |
@@ -36,6 +36,7 @@ | |
case ${CTARGET%%*-} in | |
aarch64*gnu) echo aarch64-unknown-linux-gnu;; | |
aarch64*musl) echo aarch64-unknown-linux-musl;; | |
+ mips64el*) echo mips64el-unknown-linux-gnuabi64;; | |
mips64*) echo mips64-unknown-linux-gnuabi64;; | |
powerpc64le*) echo powerpc64le-unknown-linux-gnu;; | |
powerpc64*) echo powerpc64-unknown-linux-gnu;; |
This file contains hidden or 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
#!/bin/bash | |
pacman -S --noconfirm acme.sh | |
yay -S --noconfirm acme.sh-systemd | |
# https://ram.console.aliyun.com/users | |
# require `AliyunDNSFullAccess` | |
export Ali_Key="***" | |
export Ali_Secret="***" |
This file contains hidden or 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 python3 | |
# pylint: disable=C0111, C0103 | |
""" | |
curl phus.lu/fileserver.py | env PORT=8001 python | |
""" | |
import os | |
import re | |
import sys |
This file contains hidden or 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 os | |
import opencc | |
cv = opencc.OpenCC('t2s.json') | |
for i in os.listdir(): | |
j = cv.convert(i) | |
if j != i: | |
os.rename(i, j) |
This file contains hidden or 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
pushd "%~dp0" | |
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt | |
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i" | |
del hyper-v.txt | |
Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL |
This file contains hidden or 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 <iostream> | |
#include <cuda_runtime.h> | |
#include <cuda.h> | |
int main() { | |
CUresult cuResult; | |
cuInit(0); | |
int deviceCount; | |
cuResult = cuDeviceGetCount(&deviceCount); |