Last active
August 27, 2020 13:06
-
-
Save georgepar/94cb45c6a36cc886c9cd861acfcf433d to your computer and use it in GitHub Desktop.
Visual Studio Code Settings Sync Gist
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
{"lastUpload":"2020-08-27T13:06:54.146Z","extensionVersion":"v3.4.3"} |
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
[ | |
{ | |
"metadata": { | |
"id": "7a0110bb-231a-4598-aa1b-0769ea46d28b", | |
"publisherId": "aaron-bond.better-comments", | |
"publisherDisplayName": "aaron-bond" | |
}, | |
"name": "better-comments", | |
"publisher": "aaron-bond", | |
"version": "2.1.0" | |
}, | |
{ | |
"metadata": { | |
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd", | |
"publisherId": "Shan.code-settings-sync", | |
"publisherDisplayName": "Shan" | |
}, | |
"name": "code-settings-sync", | |
"publisher": "Shan", | |
"version": "3.4.3" | |
}, | |
{ | |
"metadata": { | |
"id": "5db78037-f674-459f-a236-db622c427c5b", | |
"publisherId": "PKief.material-icon-theme", | |
"publisherDisplayName": "PKief" | |
}, | |
"name": "material-icon-theme", | |
"publisher": "PKief", | |
"version": "4.2.0" | |
}, | |
{ | |
"metadata": { | |
"id": "bf2e8e73-fa4c-48c4-81cd-0be1a0f7c470", | |
"publisherId": "SBSnippets.pytorch-snippets", | |
"publisherDisplayName": "SBSnippets" | |
}, | |
"name": "pytorch-snippets", | |
"publisher": "SBSnippets", | |
"version": "1.0.2" | |
}, | |
{ | |
"metadata": { | |
"id": "93ce222b-5f6f-49b7-9ab1-a0463c6238df", | |
"publisherId": "ms-vscode-remote.remote-containers", | |
"publisherDisplayName": "ms-vscode-remote" | |
}, | |
"name": "remote-containers", | |
"publisher": "ms-vscode-remote", | |
"version": "0.134.1" | |
}, | |
{ | |
"metadata": { | |
"id": "607fd052-be03-4363-b657-2bd62b83d28a", | |
"publisherId": "ms-vscode-remote.remote-ssh", | |
"publisherDisplayName": "ms-vscode-remote" | |
}, | |
"name": "remote-ssh", | |
"publisher": "ms-vscode-remote", | |
"version": "0.51.0" | |
}, | |
{ | |
"metadata": { | |
"id": "bfeaf631-bcff-4908-93ed-fda4ef9a0c5c", | |
"publisherId": "ms-vscode-remote.remote-ssh-edit", | |
"publisherDisplayName": "ms-vscode-remote" | |
}, | |
"name": "remote-ssh-edit", | |
"publisher": "ms-vscode-remote", | |
"version": "0.51.0" | |
}, | |
{ | |
"metadata": { | |
"id": "5d9b66c1-7da3-4004-8c92-2b0852ec0c9b", | |
"publisherId": "ms-vscode-remote.remote-ssh-explorer", | |
"publisherDisplayName": "ms-vscode-remote" | |
}, | |
"name": "remote-ssh-explorer", | |
"publisher": "ms-vscode-remote", | |
"version": "0.51.0" | |
}, | |
{ | |
"metadata": { | |
"id": "f0c5397b-d357-4197-99f0-cb4202f22818", | |
"publisherId": "ms-vscode-remote.remote-wsl", | |
"publisherDisplayName": "ms-vscode-remote" | |
}, | |
"name": "remote-wsl", | |
"publisher": "ms-vscode-remote", | |
"version": "0.44.4" | |
} | |
] |
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
// Empty |
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
// Empty |
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
{ | |
"python.autoComplete.addBrackets": true, | |
"python.jediEnabled": false, | |
"python.pythonPath": "/home/george/anaconda3/bin/python", | |
"python.autoComplete.extraPaths": [ | |
"${workspaceFolder}/thesis/" | |
], | |
"workbench.iconTheme": "material-icon-theme", | |
"editor.fontFamily": "Hack", | |
"editor.fontLigatures": true, | |
"files.autoSave": "onFocusChange", | |
"python.workspaceSymbols.exclusionPatterns": ["${workspaceFolder}/thesis/datasets"], | |
"autoDocstring.docstringFormat": "google", | |
"python.terminal.launchArgs": [ | |
"-m", | |
"IPython" | |
], | |
"gitlens.views.repositories.location": "gitlens", | |
"gitlens.views.fileHistory.location": "gitlens", | |
"gitlens.views.lineHistory.location": "gitlens", | |
"gitlens.views.search.location": "gitlens", | |
"sync.gist": "94cb45c6a36cc886c9cd861acfcf433d", | |
"window.zoomLevel": 0 | |
} |
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
{ | |
"Create Class": { | |
"prefix": "cls", | |
"body": [ | |
"class ${1:MyClass}(${2:object}):", | |
" def __init__(self, ${3:params}):", | |
" super(${1:MyClass}, self).__init__(${4})" | |
], | |
"description": "Create Class" | |
}, | |
"Initialize Property": { | |
"prefix": "prp", | |
"body": [ | |
"self.${1:member} = ${1:value}" | |
], | |
"description": "initialize property" | |
}, | |
"Define Function": { | |
"prefix": "fn", | |
"body": [ | |
"def ${1:my_function}(${2:params}):", | |
" ${3:pass}" | |
], | |
"description": "Define Function" | |
}, | |
"Define Method": { | |
"prefix": "method", | |
"body": [ | |
"def ${1:my_method}(self, ${2:params}):", | |
" ${3:pass}" | |
], | |
"description": "Define Method" | |
}, | |
"Load Pickle": { | |
"prefix": "load:pickle", | |
"body": [ | |
"with open(${1:filename}, 'rb') as fd:", | |
" ${2:data} = pickle.load(fd)" | |
], | |
"description": "Load Pickle" | |
}, | |
"Dump Pickle": { | |
"prefix": "dump:pickle", | |
"body": [ | |
"with open(${1:filename}, 'wd') as fd:", | |
" pickle.dump(${2:data}, fd)" | |
], | |
"description": "Dump Pickle" | |
}, | |
"List Comprehension": { | |
"prefix": "lc", | |
"body": [ | |
"${1:ys} = [${2:x} for ${2:x} in ${3:xs}]" | |
], | |
"description": "List Comprehension" | |
}, | |
"List Comprehension Filter": { | |
"prefix": "lcf", | |
"body": [ | |
"${1:ys} = [${2:x} for ${2:x} in ${3:xs} if ${4:condition}]" | |
], | |
"description": "List Comprehension Filter" | |
}, | |
"forenum": { | |
"prefix": "For Loop Enumerate", | |
"body": [ | |
"for ${1:i}, ${2:x} in enumerate(${3:xs}):", | |
" ${4:pass}" | |
], | |
"description": "forenum" | |
}, | |
"Dictionary iteration": { | |
"prefix": "fordict", | |
"body": [ | |
"for ${1:k}, ${2:v} in ${3:d}.items():", | |
" ${4:pass}" | |
], | |
"description": "Dictionary iteration" | |
}, | |
"Argument Parser": { | |
"prefix": "parseargs", | |
"body": [ | |
"parser = argparse.ArgumentParser(description='${1:The Description}')", | |
"${2}", | |
"args = parser.parse_args()", | |
"" | |
], | |
"description": "Argument Parser" | |
}, | |
"Add generic argparse argument": { | |
"prefix": "parseargs:arg", | |
"body": [ | |
"parser.add_argument(", | |
" '-${1:s}','--${2:long-arg}', type=${3:int}, default=${4:None},", | |
" help='${5:Be kind. Include help msg} (default: ${4})')" | |
], | |
"description": "Add generic argparse argument" | |
}, | |
"Add bool argparse argument": { | |
"prefix": "parseargs:bool", | |
"body": [ | |
"parser.add_argument(", | |
" '-${1:f}', '--${2:flag}', action='store_true', default=${3:False},", | |
" help='${4:Happy little help message} (default ${3})')" | |
], | |
"description": "Add bool argparse argument" | |
}, | |
"Add list argparse argument": { | |
"prefix": "parseargs:list", | |
"body": [ | |
"parser.add_argument(", | |
" '-${1:s}', '--${2:long}, nargs='+', type=${3:int}, default=${4:None},", | |
" help='${5:Helpful help message}, (default: ${4})', )", | |
"" | |
], | |
"description": "Add list argparse argument" | |
}, | |
"Pytorch Dataset": { | |
"prefix": "pytorch:dataset", | |
"body": [ | |
"class ${1:MyDataset}(Dataset):", | |
" def __init__(self, ${2:params}):", | |
" ${3:self.data = []}", | |
"", | |
" def __len__(self):", | |
" return len(self.${4:data})", | |
"", | |
" def __getitem__(self, idx):", | |
" ${5:sample = self.data[idx]}", | |
" return sample" | |
], | |
"description": "Pytorch Dataset" | |
}, | |
"Pytorch Transform": { | |
"prefix": "pytorch:transform", | |
"body": [ | |
"class ${1:MyTransform}(object):", | |
" def __init__(self, ${2:params}):", | |
" ${3}", | |
"", | |
" def __call__(self, x):", | |
" ${4: return x}" | |
], | |
"description": "Pytorch Transform" | |
}, | |
"Load Json": { | |
"prefix": "load:json", | |
"body": [ | |
"with open(${1:filename}, 'r') as fd:", | |
" ${2:data} = json.load(fd)" | |
], | |
"description": "Load Json" | |
}, | |
"Dump Json": { | |
"prefix": "dump:json", | |
"body": [ | |
"with open(${1:filename}, 'w') as fd:", | |
" json.dump(${2:data}, fd)" | |
], | |
"description": "Dump Json" | |
}, | |
"Magic": { | |
"prefix": "__", | |
"body": [ | |
"__{$1:magic}__" | |
], | |
"description": "Magic" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment