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
{ | |
"$schema": "schemas/IntegratedServicesRegionPolicySet.Schema.1.1.0.json", | |
"version": "1.0", | |
"policies": [ | |
{ | |
"$comment": "Edge is uninstallable.", | |
"guid": "{1bca278a-5d11-4acf-ad2f-f9ab6d7f93a6}", | |
"defaultState": "disabled", | |
"conditions": { | |
"region": { |
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
{ | |
"$schema": "schemas/IntegratedServicesRegionPolicySet.Schema.1.0.0.json", | |
"version": "1.0", | |
"policies": [ | |
{ | |
"$comment": "Edge is uninstallable.", | |
"guid": "{1bca278a-5d11-4acf-ad2f-f9ab6d7f93a6}", | |
"defaultState": "disabled", | |
"conditions": { | |
"region": { |
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
using namespace System.Management.Automation | |
using namespace System.Management.Automation.Language | |
if ($Host.Name -eq 'ConsoleHost') { | |
Import-Module PSReadLine | |
} | |
Import-Module Terminal-Icons -ErrorAction SilentlyContinue | |
if (Get-Command oh-my-posh -ErrorAction SilentlyContinue) { |
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
{ | |
"tasks": [ | |
{ | |
"type": "cppbuild", | |
"label": "C/C++: clang++.exe build active file", | |
"command": "C:/Program Files/MSYS2/mingw64/bin/clang++.exe", | |
"args": [ | |
"-fdiagnostics-color=always", | |
"-g", | |
"${workspaceFolder}/*.cpp", |
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
-Wall | |
-std=c++17 |
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 | |
# | |
printf "\033c" |
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
/* 在页面的 URL 中添加页面的名称,以实现静态访问 */ | |
(() => { | |
const url = window.location.href, // 当前页面的 URL | |
pathName = window.location.pathname; | |
const pageName = "index.html"; // 静态访问页面的名称 | |
let newUrl; // 将要产生的 URL | |
let flag_append = '/', // 标志 1,表示目录 | |
flag_insert = "/#"; // 标志 2,表示目录下的某级标题 | |
if (url.endsWith(flag_append) && pathName != flag_append) // 以标志 1 结尾,且不是根目录 | |
newUrl = url.concat(pageName); // 直接将页面名称追加到目录后 |