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
class 人: | |
def __init__(self, name: str) -> None: | |
self.name = name | |
@property | |
def 名字(self) -> str: | |
return self.name | |
def 说话(self) -> None: | |
print("你好!") |
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
class 修会(Enum): | |
本笃会 = "Benedictines" | |
熙笃会 = "Cistercians" | |
严规熙笃隐修会 = "Trappists" | |
class 默僧(人): | |
def __init__(self, name: str, order: 修会) -> None: | |
super().__init__(name) | |
self.order = order |
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
class 男人(人): | |
def __init__(self, name: str, beard_density: float) -> None: | |
super().__init__(name) | |
self.beard_density = beard_density | |
@property | |
def 胡须密度(self) -> float: | |
return self.beard_density | |
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
git config --global https.proxy http://127.0.0.1:1080 | |
git config --global https.proxy https://127.0.0.1:1080 | |
git config --global --unset http.proxy | |
git config --global --unset https.proxy | |
npm config delete proxy |
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
In [1]: tree = BinarySearchTree() | |
In [2]: tree.insert(2).insert(1).insert(4).insert(3).insert(6).delete(6) | |
In [3]: tree | |
Out[3]: Tree(Node(2, left=Node(1), right=Node(4, left=Node(3)))) |
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
{ | |
"workbench.colorCustomizations": { | |
"activityBar.background": "#cc92c4", | |
"activityBar.activeBorder": "#e7ebd4", | |
"activityBar.foreground": "#15202b", | |
"activityBar.inactiveForeground": "#15202b99", | |
"activityBarBadge.background": "#e7ebd4", | |
"activityBarBadge.foreground": "#15202b", | |
"titleBar.activeBackground": "#bc6fb1", | |
"titleBar.inactiveBackground": "#bc6fb199", |
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
var genRandomWords = require("rword").rword.generate; | |
var mostMistypedLetter = ""; | |
var mostMistypedCount = 0; | |
for (var [key, value] of result.miss) { | |
if (mostMistypedCount < value) { | |
mostMistypedCount = value; | |
mostMistypedLetter = key; | |
} | |
} |
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
@echo off | |
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe | |
rem add it for all file types | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f | |
rem add it for folders | |
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f |
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
map h previousTab | |
map l nextTab | |
map f LinkHints.activateModeToOpenInNewTab | |
map F LinkHints.activateMode | |
map , goBack | |
map . goForward | |
map c restoreTab | |
map i focusInput | |
map e visitPreviousTab | |
map v lastTab |
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
map "h" previousTab | |
map "l" nextTab | |
map "," goBack | |
map "." goForward | |
map "c" lastClosedTabBackground | |
map "f" createTabbedHint | |
map "i" goToInput |