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
type TreeNode = [value: number, left: TreeNode | null, right: TreeNode | null] | |
const node: TreeNode = | |
[1, | |
[2, | |
[4, null, null], | |
null], | |
[3, | |
[5, null, null], | |
[6, null, null]]] |
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
func (c Collection) Validate() error { | |
v := vld.New() | |
strlen := vld.StrLen(1, 64) | |
v.Validate( | |
[]string{"name"}, | |
strlen(c.Name), | |
) | |
v.Validate( |
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
tell application "Safari" | |
set theName to get name of front document | |
set theURL to get the URL of front document | |
set theLink to "[" & theName & "](" & theURL & ")" | |
end tell | |
set the clipboard to theLink |
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
echo '[]' >"$HOME/Library/Application Support/Code/User/keybindings.json" | |
echo '{}' >"$HOME/Library/Application Support/Code/User/settings.json" | |
for ext in (code --list-extensions) | |
code --uninstall-extension $ext --force | |
end | |
echo '[]' >"$HOME/Library/Application Support/Code - Insiders/User/keybindings.json" | |
echo '{}' >"$HOME/Library/Application Support/Code - Insiders/User/settings.json" | |
for ext in (code-insiders --list-extensions) | |
code-insiders --uninstall-extension $ext --force |