Skip to content

Instantly share code, notes, and snippets.

@nreith
Last active September 8, 2020 17:25
Show Gist options
  • Save nreith/e2fd1273e2142d14280c93650527732f to your computer and use it in GitHub Desktop.
Save nreith/e2fd1273e2142d14280c93650527732f to your computer and use it in GitHub Desktop.
Python function to report sizes of current objects in memory from biggest to smallest as a pandas dataframe
{"lastUpload":"2020-09-08T17:25:16.155Z","extensionVersion":"v3.4.3"}
[
{
"metadata": {
"id": "819a23e1-b6c6-41cf-9029-e653b537d996",
"publisherId": "ms-vscode.azure-account",
"publisherDisplayName": "ms-vscode"
},
"name": "azure-account",
"publisher": "ms-vscode",
"version": "0.9.2"
},
{
"metadata": {
"id": "829c21df-d3df-46ff-b6a0-9e6661119392",
"publisherId": "ms-vscode-deploy-azure.azure-deploy",
"publisherDisplayName": "ms-vscode-deploy-azure"
},
"name": "azure-deploy",
"publisher": "ms-vscode-deploy-azure",
"version": "1.1.2"
},
{
"metadata": {
"id": "7032281c-aa10-4e95-9049-46a8bd112af3",
"publisherId": "ms-azure-devops.azure-pipelines",
"publisherDisplayName": "ms-azure-devops"
},
"name": "azure-pipelines",
"publisher": "ms-azure-devops",
"version": "1.174.2"
},
{
"metadata": {
"id": "5a6e2b21-1d61-4acd-b31b-907f9c23f18a",
"publisherId": "CoenraadS.bracket-pair-colorizer-2",
"publisherDisplayName": "CoenraadS"
},
"name": "bracket-pair-colorizer-2",
"publisher": "CoenraadS",
"version": "0.2.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": "961c6678-1125-43a1-8482-df5a0766d313",
"publisherId": "tomphilbin.gruvbox-themes",
"publisherDisplayName": "tomphilbin"
},
"name": "gruvbox-themes",
"publisher": "tomphilbin",
"version": "1.0.0"
},
{
"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": "75c6c7f3-b13f-407b-bfa2-27e574ee200d",
"publisherId": "andilutten92.pop-theme-switcher",
"publisherDisplayName": "andilutten92"
},
"name": "pop-theme-switcher",
"publisher": "andilutten92",
"version": "1.0.2"
},
{
"metadata": {
"id": "882f52a3-35a9-4463-82f1-a15972b8bedb",
"publisherId": "ArtisanByteCrafter.poptheme",
"publisherDisplayName": "ArtisanByteCrafter"
},
"name": "poptheme",
"publisher": "ArtisanByteCrafter",
"version": "1.0.3"
},
{
"metadata": {
"id": "f1f59ae4-9318-4f3c-a9b5-81b2eaa5f8a5",
"publisherId": "ms-python.python",
"publisherDisplayName": "ms-python"
},
"name": "python",
"publisher": "ms-python",
"version": "2020.8.106424"
},
{
"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": "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.5"
},
{
"metadata": {
"id": "e2c479df-2c90-4915-9015-595ef0d79bd5",
"publisherId": "ms-vsts.team",
"publisherDisplayName": "ms-vsts"
},
"name": "team",
"publisher": "ms-vsts",
"version": "1.161.0"
},
{
"metadata": {
"id": "2ed5adbe-c4e1-4227-8e41-31e2095b30e3",
"publisherId": "ms-azuretools.vscode-azurefunctions",
"publisherDisplayName": "ms-azuretools"
},
"name": "vscode-azurefunctions",
"publisher": "ms-azuretools",
"version": "0.24.0"
},
{
"metadata": {
"id": "23d72dfc-8dd1-4e30-926e-8783b4378f13",
"publisherId": "ms-vscode-remote.vscode-remote-extensionpack",
"publisherDisplayName": "ms-vscode-remote"
},
"name": "vscode-remote-extensionpack",
"publisher": "ms-vscode-remote",
"version": "0.20.0"
},
{
"metadata": {
"id": "23fcb6f6-b9e9-4281-90c3-cbce30bf8837",
"publisherId": "ctf0.vscode-terminal-themes",
"publisherDisplayName": "ctf0"
},
"name": "vscode-terminal-themes",
"publisher": "ctf0",
"version": "0.1.0"
},
{
"metadata": {
"id": "97a08c5f-6667-4242-a5c5-045dfb6bd4b9",
"publisherId": "wayou.vscode-todo-highlight",
"publisherDisplayName": "wayou"
},
"name": "vscode-todo-highlight",
"publisher": "wayou",
"version": "1.0.4"
}
]
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+shift+alt+s ctrl+shift+alt+enter",
"command": "editor.action.insertLineAfter",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+enter",
"command": "workbench.action.terminal.runActiveFile"
},
{
"key": "ctrl+enter",
"command": "workbench.action.terminal.runSelectedText"
},
{
"key": "ctrl+enter",
"command": "-editor.action.insertLineAfter",
"when": "editorTextFocus && !editorReadonly"
}
]
{
"remote.SSH.remotePlatform": {
"xbnt": "linux",
"domino_quickstart": "linux",
"dominoquickstart": "linux",
"domino_known_issues": "linux",
"domino_knownissues": "linux",
"xanunder": "linux"
},
"editor.minimap.enabled": false,
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\wsl.exe",
"workbench.colorTheme": "Pop Dark",
"workbench.colorCustomizations": {
"terminal.foreground":"#F2F2F2",
"terminal.background":"#333333",
"terminal.border": "#73C48F", /*bold*/
"terminalCursor.foreground": "#49B9C7",
"terminalCursor.background": "#F6F6F6",
/*"terminal.selectionForeground": "#FFFFFF", highlight foreground*/
"terminal.selectionBackground": "#48B9C7",
"terminal.ansiBlack":"#333333",
"terminal.ansiBrightBlack":"#88807C",
"terminal.ansiBlue":"#3465A4",
"terminal.ansiBrightBlue":"#48B9C7",
"terminal.ansiCyan":"#06989A",
"terminal.ansiBrightCyan":"#34E2E2",
"terminal.ansiGreen":"#4E9A06",
"terminal.ansiBrightGreen":"#73C48F",
"terminal.ansiMagenta":"#75507B",
"terminal.ansiBrightMagenta":"#AD7FA8",
"terminal.ansiRed":"#CC0000",
"terminal.ansiBrightRed":"#F15D22",
"terminal.ansiWhite":"#D3D7CF",
"terminal.ansiBrightWhite":"#EEEEEC",
"terminal.ansiYellow":"#ece4c0",
"terminal.ansiBrightYellow":"#FFCE51"
},
"terminal_themes.style": "Non (remove all terminal styling)",
"todo-tree.tree.showScanModeButton": false,
"sync.gist": "e2fd1273e2142d14280c93650527732f",
"editor.tabSize": 2,
"team.showWelcomeMessage": false,
"terminal.integrated.inheritEnv": false,
"explorer.confirmDelete": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment