- Edit SSH Config
# edit config file
vim ~/.ssh/config
# Add Following
Host repo1
HostName github.com
; add if not added | |
scoop bucket add versions | |
scoop install python27 python | |
scoop reset python27 ; switch to python2.7 | |
scoop reset python ; switch to python3 |
表现: 无法安装软件, 提示 安全警告: 您的安全设置不允许将此应用程序安装到您的计算机上
修复:
win + R -> regedit
打开: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\Security\TrustManager\PromptingLevel
更新: MyComputer=Enabled; LocalIntranet=Enabled; Internet=Enabled; TrustedSites=Enabled; UntrustedSites=Disabled;
def seconds_to_datetime_str(seconds: str, format: str = '%Y-%m-%d'): | |
return time.strftime(format, time.gmtime(seconds)) |
# Reference: http://www.codeblocq.com/2016/01/Untrack-files-already-added-to-git-repository-based-on-gitignore/ | |
# commit all changes | |
git commit -m "Style: Before Lint" | |
# remove everything from repository | |
git rm -r --cached . | |
# re-add things | |
git add. |
Preferences
| Languages & Frameworks
| JavaScript
| Libraries
Download
Download and Install
async function check() { | |
throw new Error('Async Function Throw Error'); | |
} | |
expect('Throw Error', () => { | |
test('Throw', () => { | |
await expect(check()).rejects.toEqual(new Error('Test')) | |
}) | |
}) |
// 1. Take full screenshot | |
//// full screen | |
//// not support single camera | |
//// bad efficiency | |
void CaptureFullScreen() { | |
Application.CaptureScreenshot("Screenshot.png", 0); | |
} | |
Texture2D CaptureFullScreen() { | |
return Application.CaptureScreenshotAsTexture(); |
Vector2 GetScreenSize() { | |
return new Vector2(Screen.width, Screen.height); | |
} |
def merge_dict(dict1, dict2): | |
res = {**dict1, **dict2} | |
return res |