Skip to content

Instantly share code, notes, and snippets.

@Alonoparag
Forked from anonymous/index.html
Last active December 31, 2020 08:24
Show Gist options
  • Save Alonoparag/6c422a74fba47f8a6bea512ed66a8f1f to your computer and use it in GitHub Desktop.
Save Alonoparag/6c422a74fba47f8a6bea512ed66a8f1f to your computer and use it in GitHub Desktop.
Portfolio
{"lastUpload":"2020-12-31T08:24:16.454Z","extensionVersion":"v3.4.3"}
[
{
"metadata": {
"id": "5a8b9107-e667-4ec8-a792-d066a93b9eff",
"publisherId": "ms-python.anaconda-extension-pack",
"publisherDisplayName": "ms-python"
},
"name": "anaconda-extension-pack",
"publisher": "ms-python",
"version": "1.0.1"
},
{
"metadata": {
"id": "bcc65744-5d6a-49db-8814-d9c13563fd7a",
"publisherId": "vscode.bat",
"publisherDisplayName": "vscode"
},
"name": "bat",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "64023ab7-80da-49bf-9217-c0a2e8a3dcd2",
"publisherId": "vscode.clojure",
"publisherDisplayName": "vscode"
},
"name": "clojure",
"publisher": "vscode",
"version": "1.52.1"
},
{
"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": "b88407ee-f2ca-4420-b484-e513e5efe6d8",
"publisherId": "vscode.coffeescript",
"publisherDisplayName": "vscode"
},
"name": "coffeescript",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "7f4c62bb-7e94-4f83-b326-2e58cc2a336c",
"publisherId": "vscode.configuration-editing",
"publisherDisplayName": "vscode"
},
"name": "configuration-editing",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "40e3bb25-afdb-41ae-90dc-a8863dc19b0b",
"publisherId": "vscode.cpp",
"publisherDisplayName": "vscode"
},
"name": "cpp",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "ff5cb113-9d3f-4bd2-8532-e3302b45d7e7",
"publisherId": "vscode.csharp",
"publisherDisplayName": "vscode"
},
"name": "csharp",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "b632ba82-4222-4b5e-b032-07a5bc736b85",
"publisherId": "vscode.css",
"publisherDisplayName": "vscode"
},
"name": "css",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "0ef6ea1e-8d8f-4de1-b203-2392d3c86449",
"publisherId": "vscode.css-language-features",
"publisherDisplayName": "vscode"
},
"name": "css-language-features",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "644dd983-e5c6-4767-9dd5-2b109138dfd0",
"publisherId": "vscode.debug-auto-launch",
"publisherDisplayName": "vscode"
},
"name": "debug-auto-launch",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "ddafef2c-b1e1-4095-bf52-0f90de2a94e9",
"publisherId": "vscode.debug-server-ready",
"publisherDisplayName": "vscode"
},
"name": "debug-server-ready",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "50574200-0107-4914-8b0a-6c9fb96f44aa",
"publisherId": "vscode.docker",
"publisherDisplayName": "vscode"
},
"name": "docker",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "0c5666b0-2b35-4127-9c63-51e8bb362d54",
"publisherId": "vscode.emmet",
"publisherDisplayName": "vscode"
},
"name": "emmet",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "859f7154-6338-427f-94f7-f5a16a635613",
"publisherId": "vscode.extension-editing",
"publisherDisplayName": "vscode"
},
"name": "extension-editing",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "662bdef9-5f3c-45d3-9ae7-e328ad3ae76f",
"publisherId": "vscode.fsharp",
"publisherDisplayName": "vscode"
},
"name": "fsharp",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "8376943c-110e-41a4-88a0-c8ea3dcec0f2",
"publisherId": "vscode.git",
"publisherDisplayName": "vscode"
},
"name": "git",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "204032a6-e212-49b6-95fb-50fa3bee509f",
"publisherId": "vscode.git-ui",
"publisherDisplayName": "vscode"
},
"name": "git-ui",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "c38f4595-f7b2-4bfa-8e86-a0a4a51e3b74",
"publisherId": "vscode.github",
"publisherDisplayName": "vscode"
},
"name": "github",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "17563072-1bf9-4d07-a0d5-b18440f18e7a",
"publisherId": "vscode.github-authentication",
"publisherDisplayName": "vscode"
},
"name": "github-authentication",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "29f5df1e-5609-430f-b9f7-eac02db4787c",
"publisherId": "vscode.go",
"publisherDisplayName": "vscode"
},
"name": "go",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "4b91c0a9-5222-417e-953c-7dd8481c9b62",
"publisherId": "vscode.groovy",
"publisherDisplayName": "vscode"
},
"name": "groovy",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "6428d7dc-1445-4e3d-8c5a-1b0c6161fbcb",
"publisherId": "vscode.handlebars",
"publisherDisplayName": "vscode"
},
"name": "handlebars",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "a57750a7-b75a-456d-b679-f5e5279138c8",
"publisherId": "vscode.hlsl",
"publisherDisplayName": "vscode"
},
"name": "hlsl",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "92b248b6-a2d6-4131-851d-3fbdfbd2dd85",
"publisherId": "vscode.html",
"publisherDisplayName": "vscode"
},
"name": "html",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "f9d34e1d-3349-4d33-884e-1f3cd9ad7626",
"publisherId": "vscode.html-language-features",
"publisherDisplayName": "vscode"
},
"name": "html-language-features",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "14fd7241-18c9-46a1-82aa-6081af23d84c",
"publisherId": "vscode.image-preview",
"publisherDisplayName": "vscode"
},
"name": "image-preview",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "4a497be5-d36b-42da-9404-9dd1eec935cf",
"publisherId": "vscode.ini",
"publisherDisplayName": "vscode"
},
"name": "ini",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "2395f8b9-7b0b-48dd-82ff-223c27b6cf49",
"publisherId": "vscode.java",
"publisherDisplayName": "vscode"
},
"name": "java",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "c8755bf2-6147-4efd-b072-d7e1496f7090",
"publisherId": "vscode.javascript",
"publisherDisplayName": "vscode"
},
"name": "javascript",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "25629058-ddac-4e17-abba-74678e126c5d",
"publisherId": "ms-vscode.js-debug",
"publisherDisplayName": "ms-vscode"
},
"name": "js-debug",
"publisher": "ms-vscode",
"version": "1.51.0"
},
{
"metadata": {
"id": "99cb0b7f-7354-4278-b8da-6cc79972169d",
"publisherId": "ms-vscode.js-debug-companion",
"publisherDisplayName": "ms-vscode"
},
"name": "js-debug-companion",
"publisher": "ms-vscode",
"version": "1.0.8"
},
{
"metadata": {
"id": "6a4dd153-118c-4855-87c1-669913a8cd01",
"publisherId": "vscode.json",
"publisherDisplayName": "vscode"
},
"name": "json",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "59108114-39a5-4ce4-99ab-c39fcff3d650",
"publisherId": "vscode.json-language-features",
"publisherDisplayName": "vscode"
},
"name": "json-language-features",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "d697a7e8-00fa-4039-9067-4b69a9a90f6e",
"publisherId": "kiteco.kite",
"publisherDisplayName": "kiteco"
},
"name": "kite",
"publisher": "kiteco",
"version": "0.134.0"
},
{
"metadata": {
"id": "bca2eb65-17f6-4b65-96f5-a1bde17aecf8",
"publisherId": "vscode.less",
"publisherDisplayName": "vscode"
},
"name": "less",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "61297b6d-68a5-4a14-b370-87ae36c73e0e",
"publisherId": "vscode.log",
"publisherDisplayName": "vscode"
},
"name": "log",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "f12b5b83-d2fa-4c29-8bba-43a7a7601b1e",
"publisherId": "vscode.lua",
"publisherDisplayName": "vscode"
},
"name": "lua",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "1f5eb737-5496-44a3-a8a1-36a85eee4979",
"publisherId": "magicstack.MagicPython",
"publisherDisplayName": "magicstack"
},
"name": "MagicPython",
"publisher": "magicstack",
"version": "1.1.1"
},
{
"metadata": {
"id": "5ee86569-8c5c-4c9d-bd4f-b2144ff5bc0e",
"publisherId": "vscode.make",
"publisherDisplayName": "vscode"
},
"name": "make",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "f3c5a467-1d8d-4a45-92c9-edc6fed3c1ea",
"publisherId": "vscode.markdown",
"publisherDisplayName": "vscode"
},
"name": "markdown",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "4eae1474-d740-441a-9958-c9ecfe3a4e1a",
"publisherId": "vscode.markdown-language-features",
"publisherDisplayName": "vscode"
},
"name": "markdown-language-features",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "df84d220-fc70-4b1e-9c8d-110fd7c3b471",
"publisherId": "vscode.merge-conflict",
"publisherDisplayName": "vscode"
},
"name": "merge-conflict",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "f3712d93-3780-4b39-9c1d-cbc80ec24cb0",
"publisherId": "vscode.microsoft-authentication",
"publisherDisplayName": "vscode"
},
"name": "microsoft-authentication",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "b6ded8fb-a0a0-4c1c-acbd-ab2a3bc995a6",
"publisherId": "ms-vscode.node-debug",
"publisherDisplayName": "ms-vscode"
},
"name": "node-debug",
"publisher": "ms-vscode",
"version": "1.44.14"
},
{
"metadata": {
"id": "36d19e17-7569-4841-a001-947eb18602b2",
"publisherId": "ms-vscode.node-debug2",
"publisherDisplayName": "ms-vscode"
},
"name": "node-debug2",
"publisher": "ms-vscode",
"version": "1.42.5"
},
{
"metadata": {
"id": "0a150a35-d2b9-4301-8b1e-697b64868888",
"publisherId": "vscode.php-language-features",
"publisherDisplayName": "vscode"
},
"name": "php-language-features",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "d95cb424-7a5a-4e08-9698-107d6fd590cf",
"publisherId": "jebbs.plantuml",
"publisherDisplayName": "jebbs"
},
"name": "plantuml",
"publisher": "jebbs",
"version": "2.13.12"
},
{
"metadata": {
"id": "f1f59ae4-9318-4f3c-a9b5-81b2eaa5f8a5",
"publisherId": "ms-python.python",
"publisherDisplayName": "ms-python"
},
"name": "python",
"publisher": "ms-python",
"version": "2020.10.332292344"
},
{
"metadata": {
"id": "19e1cdbe-42df-443e-89c0-bfecc7204b1d",
"publisherId": "tht13.python",
"publisherDisplayName": "tht13"
},
"name": "python",
"publisher": "tht13",
"version": "0.2.3"
},
{
"metadata": {
"id": "dc489f46-520d-4556-ae85-1f9eab3c412d",
"publisherId": "ms-vscode.references-view",
"publisherDisplayName": "ms-vscode"
},
"name": "references-view",
"publisher": "ms-vscode",
"version": "0.0.75"
},
{
"metadata": {
"id": "5c3e68a9-0b7e-498f-afed-ed1e0babc5ff",
"publisherId": "robole.snippets-ranger",
"publisherDisplayName": "robole"
},
"name": "snippets-ranger",
"publisher": "robole",
"version": "0.5.0"
},
{
"metadata": {
"id": "14a9ffe0-da32-40ec-8a7d-1011c2a85370",
"publisherId": "vscode.theme-abyss",
"publisherDisplayName": "vscode"
},
"name": "theme-abyss",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "98660c93-f477-4a89-908d-c3b42cda1d02",
"publisherId": "vscode.theme-quietlight",
"publisherDisplayName": "vscode"
},
"name": "theme-quietlight",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "b7092679-46b5-4b9b-b37b-5adc42d8b178",
"publisherId": "vscode.vb",
"publisherDisplayName": "vscode"
},
"name": "vb",
"publisher": "vscode",
"version": "1.52.1"
},
{
"metadata": {
"id": "8699dfcb-4beb-4760-b976-c46dcdd87df2",
"publisherId": "KnisterPeter.vscode-github",
"publisherDisplayName": "KnisterPeter"
},
"name": "vscode-github",
"publisher": "KnisterPeter",
"version": "0.30.4"
},
{
"metadata": {
"id": "69ddd764-339a-4ecc-97c1-9c4ece58e36d",
"publisherId": "GitHub.vscode-pull-request-github",
"publisherDisplayName": "GitHub"
},
"name": "vscode-pull-request-github",
"publisher": "GitHub",
"version": "0.21.0"
},
{
"metadata": {
"id": "912fd5ae-d9f2-4c31-8a0b-d7fb669afbb4",
"publisherId": "littlefoxteam.vscode-python-test-adapter",
"publisherDisplayName": "littlefoxteam"
},
"name": "vscode-python-test-adapter",
"publisher": "littlefoxteam",
"version": "0.6.5"
},
{
"metadata": {
"id": "ff96f1b4-a4b8-45ef-8ecf-c232c0cb75c8",
"publisherId": "hbenl.vscode-test-explorer",
"publisherDisplayName": "hbenl"
},
"name": "vscode-test-explorer",
"publisher": "hbenl",
"version": "2.19.3"
},
{
"metadata": {
"id": "2061917f-f76a-458a-8da9-f162de22b97e",
"publisherId": "redhat.vscode-yaml",
"publisherDisplayName": "redhat"
},
"name": "vscode-yaml",
"publisher": "redhat",
"version": "0.13.0"
},
{
"metadata": {
"id": "876e8f93-74d0-4f4f-91b7-34a09f19f444",
"publisherId": "VisualStudioExptTeam.vscodeintellicode",
"publisherDisplayName": "VisualStudioExptTeam"
},
"name": "vscodeintellicode",
"publisher": "VisualStudioExptTeam",
"version": "1.2.10"
}
]
["/usr/share/jupyter/kernels/python3/kernel.json"]
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+alt+c",
"command": "workbench.output.action.clearOutput"
},
{
"key": "ctrl+k b",
"command": "HookyQR.beautifyFile"
},
{
"key": "ctrl+shift+l",
"command": "-extension.log",
"when": "editorTextFocus"
},
{
"key": "ctrl+k ctrl+shift+l",
"command": "editor.action.selectHighlights",
"when": "editorFocus"
},
{
"key": "ctrl+shift+l",
"command": "-editor.action.selectHighlights",
"when": "editorFocus"
},
{
"key": "ctrl+n",
"command": "explorer.newFile"
},
{
"key": "ctrl+n",
"command": "-workbench.action.files.newUntitledFile"
},
{
"key": "ctrl+j ctrl+t",
"command": "java.test.explorer.run"
},
{
"key": "ctrl+j ctrl+g",
"command": "extension.javaGenerateAll"
},
{
"key": "ctrl+j ctrl+e",
"command": "extension.javaGenerateConstructor"
},
{
"key": "ctrl+shift+l",
"command": "-extension.insertLogStatement",
"when": "editorTextFocus"
},
{
"key": "ctrl+k ctrl+n",
"command": "explorer.newFolder"
},
{
"key": "ctrl+k ctrl+shift+n",
"command": "workbench.action.files.newUntitledFile"
},
{
"key": "ctrl+k shift+/",
"command": "workbench.action.openSnippets"
}
]
{
"window.zoomLevel": 1,
"editor.renderWhitespace": "all",
"editor.renderControlCharacters": true,
"editor.defaultFormatter": "tombonnike.vscode-status-bar-format-toggle",
"editor.formatOnSave": false,
"editor.formatOnPaste": false,
"editor.formatOnType": false,
"html.format.endWithNewline": true,
"html.format.indentHandlebars": true,
"html.format.indentInnerHtml": true,
"javascript.format.insertSpaceAfterConstructor": true,
"prettier.useTabs": true,
"files.associations": {
"*.ejs": "javascript"
},
"editor.minimap.enabled": false,
"java.configuration.checkProjectSettingsExclusions": false,
"maven.executable.path": "c:\\Users\\Alon Parag\\.m2\\wrapper\\dists\\apache-maven-3.6.3-bin\\1iopthnavndlasol9gbrbg6bf2\\apache-maven-3.6.3\\bin\\mvn.cmd",
"java.project.referencedLibraries": [
"lib/**/*.jar",
"C:\\Program Files\\Amazon Corretto\\jdk11.0.6_10\\lib\\junit\\junit-platform-console-standalone-1.6.2.jar"
],
"java.semanticHighlighting.enabled": true,
"sync.gist": "6c422a74fba47f8a6bea512ed66a8f1f",
"sync.forceUpload": true,
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"python.languageServer": "Microsoft",
"workbench.colorTheme": "Solarized Dark",
"telemetry.enableTelemetry": false,
"python.autoComplete.showAdvancedMembers": false,
"python.dataScience.disableJupyterAutoStart": true,
"python.dataScience.exportWithOutputEnabled": true
}
{
// Place your snippets for html here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
}
{
// Place your snippets for json here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"JSON snippet": {
"prefix": "snippet",
"body": [
"\t${1:\"Name\"}: {",
"\t\t\"prefix\": ${2:\"prefix\"},",
"\t\t\"body\": [",
"\t\t\t${3:\"Code\"}",
"\t\t],",
"\t\t\"description\": \"${4:Description}\" ",
"\t}"
],
"description": "Log output to console"
}
}
{
// Place your snippets for jupyter here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"graph boilerplate": {
"prefix": "graph",
"body": [
"import math",
"import numpy as np",
"import matplotlib.pyplot as plt",
"def f(x)",
"return $1",
"x = np.linspace($2, $3, $4)",
"y=np.vectorize(f(x))",
"fig = plt.figure()",
"ax = plt.gca()",
"ax.plot(x, y)",
"ax.plot(x, y)",
"ax.text($5, round($6, 3), '({}, {})'.format($8, round(($7), $9),))",
"ax.tick_params(",
"axis='x', # changes apply to the x-axis",
"which='both', # both major and minor ticks are affected",
"bottom=False, # ticks along the bottom edge are off",
"top=False, # ticks along the top edge are off",
"labelbottom=False) ",
"ax.grid(True)",
"ax.spines['left'].set_position('zero')",
"ax.spines['right'].set_color('none')",
"ax.spines['bottom'].set_position('zero')",
"ax.spines['top'].set_color('none')",
"ax.axis('equal')",
"ax.axis('equal')",
],
"description": "Boilerplate for y=ax graph"
}
}
{
// Place your snippets for python here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"Bug Report boilerplate":{
"prefix": "bug_report",
"body":[
"## BUG ${1:Date} ${2:Hour}",
"## Output",
"## Error",
"## Hypothesis",
"## Experiment",
"## Result",
],
"description": "Bug report for python"
},
"Docstring Boilerplate":{
"prefix": "docstring",
"body":[
"\"\"\"",
"Assumes",
"Returns",
"\"\"\"",
],
"description": "Standart docstring boilerplate for Python"
},
"Standard equation graph": {
"prefix": "graph_standard_equation",
"body": [
"import numpy as np",
"import matplotlib as mpl",
"import matplotlib.pyplot as plt",
"",
"mpl.rcParams['lines.color'] = 'k'",
"mpl.rcParams['axes.prop_cycle'] = mpl.cycler('color', ['k'])",
"",
"x = np.linspace(-9, 9, 400)",
"y = np.linspace(-5, 5, 400)",
"x, y = np.meshgrid(x, y)",
"",
"def axes():",
" plt.axhline(0, alpha=.1)",
" plt.axvline(0, alpha=.1)",
"",
"a, b, c, d, e, f = ${1:a}, ${2:b}, ${3:c}, ${4:d}, ${5:e}, ${6:f}",
"# assert b**2 - 4*a*c < 0",
"axes()",
"plt.contour(x, y,(a*x**2 + b*x*y + c*y**2 + d*x + e*y + f), [0], colors='k')",
"plt.show()"
],
"description": "Plot a graph for a given standard equation of a conic section"
},
"graph boilerplate": {
"prefix": "graph",
"body": [
"import math",
"import numpy as np",
"import matplotlib.pyplot as plt",
"def f(x)",
"return $1",
"x = np.linspace($2, $3, $4)",
"y=np.vectorize(f(x))",
"fig = plt.figure()",
"ax = plt.gca()",
"ax.plot(x, y)",
"ax.plot(x, y)",
"ax.text($5, round($6, 3), '({}, {})'.format($8, round(($7), $9),))",
"ax.tick_params(",
"axis='x', # changes apply to the x-axis",
"which='both', # both major and minor ticks are affected",
"bottom=False, # ticks along the bottom edge are off",
"top=False, # ticks along the top edge are off",
"labelbottom=False) ",
"ax.grid(True)",
"ax.spines['left'].set_position('zero')",
"ax.spines['right'].set_color('none')",
"ax.spines['bottom'].set_position('zero')",
"ax.spines['top'].set_color('none')",
"ax.axis('equal')",
"ax.axis('equal')",
],
"description": "Boilerplate for y=ax graph"
},
"Polar graph boilerplate": {
"prefix": "graph_boilerplate",
"body": [
"import numpy as np",
"import matplotlib.pyplot as plt",
" ",
" ",
"# setting the axes projection as polar",
"plt.axes(projection = 'polar')",
" ",
"# setting the radius",
"r = $1",
" ",
"# creating an array containing the",
"# radian values",
"rads = np.arange(0, (2 * np.pi), 0.01)",
" ",
"# plotting the circle",
"for rad in rads:",
" plt.polar(rad, r, 'g.')",
" ",
"# display the Polar plot",
"plt.show()"
],
"description": "A boilerplate for graphing a polar equation"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment