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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
;~ if not A_IsAdmin ;确保管理员权限 | |
;~ { | |
;~ Run *RunAs "%A_ScriptFullPath%" ; 需要 v1.0.92.01+ | |
;~ ExitApp | |
;~ } | |
CoordMode, Mouse, Client |
This file has been truncated, but you can view the full file.
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
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | |
<!DOCTYPE boost_serialization> | |
<boost_serialization signature="serialization::archive" version="14"> | |
<Background_project>0</Background_project> | |
<Project class_id="0" tracking_level="0" version="6"> | |
<VersionMajor>2</VersionMajor> | |
<VersionMinor>2</VersionMinor> | |
<VersionRev>4</VersionRev> | |
<GitBranch>tags/2.2.4</GitBranch> | |
<GitCommit>cb4c91a919d6b00bf9d44f6e68e369eac06d14ac</GitCommit> |
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
CALL :SUDO %* | |
GOTO :EOF | |
:SUDO | |
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "Start-Process -Wait -FilePath powershell.exe -ArgumentList @('-NoProfile', '-InputFormat', 'None', '-ExecutionPolicy', 'Bypass', '-Command', 'cd', '%cd%', ';', """%*""") -verb RunAs" | |
GOTO :EOF |
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
#!/bin/bash | |
sed -e '2,${s/^# /## /}' -e 's/Change Log/Changelog/' -i CHANGELOG.md | |
npx prettier --write CHANGELOG.md |
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
#!/bin/sh | |
pkg install clang python-dev libzmq libzmq-dev | |
pip install jupyterlab |
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
#!/bin/sh | |
echo http://mirrors.163.com/tinycorelinux/ | sudo tee /opt/tcemirror | |
echo '[global] | |
index-url = https://mirrors.aliyun.com/pypi/simple' | sudo tee /etc/pip.conf |
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 { Component, Prop, Vue } from 'vue-property-decorator'; | |
/** | |
* Mixin for support `dialog.show` | |
*/ | |
@Component | |
export class ModalMixin extends Vue { | |
@Prop({ default: false, type: Boolean }) | |
public visible!: boolean; |
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 type { StyleValue } from 'vue'; | |
import { computed, reactive, ref } from 'vue'; | |
export default function useVirtualScroll({ | |
x, | |
y, | |
}: { | |
x?: { | |
totalCount: () => number; | |
itemWidth: () => number; |
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
new HtmlPlugin({ | |
/** @param {{compilation: import('webpack').compilation.Compilation}} */ | |
templateContent: ({ compilation }) => { | |
const { | |
hash, | |
publicPath, | |
assetsByChunkName, | |
assets, | |
} = compilation.getStats().toJson({ all: true }, true); | |
return JSON.stringify( |
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
export function getCommonPrefix(v: string[]): string { | |
if (v.length === 0) { | |
return ''; | |
} | |
if (v.length === 1) { | |
return v[0]; | |
} | |
// return range is [0, w) | |
let w = v[0].length; |
OlderNewer