curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
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
| # EditorConfig is awesome: https://EditorConfig.org | |
| # top-most EditorConfig file | |
| root = true | |
| [*] | |
| indent_style = space | |
| indent_size = 4 | |
| end_of_line = lf | |
| charset = utf-8 |
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
| vscode: | |
| extensions: | |
| - streetsidesoftware.code-spell-checker | |
| - codezombiech.gitignore | |
| - eamodio.gitlens | |
| - yzhang.markdown-all-in-one | |
| - esbenp.prettier-vscode |
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 Method to get the Value from nested dictionary | |
| from functools import reduce | |
| def deep_get(dictionary, keys, default=None): | |
| return reduce(lambda d, key: d.get(key, default) if isinstance(d, dict) else default, keys.split("."), dictionary) | |
| person = {'person': {'name': {'first': 'John'}}} |
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
| [ | |
| { | |
| "keys": ["alt+up"], "command": "swap_line_up" | |
| }, | |
| { | |
| "keys": ["alt+down"], "command": "swap_line_down" | |
| }, | |
| { | |
| "keys": ["ctrl+shift+down"], "command": "duplicate_line" | |
| }, |
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
| import re | |
| EMAIL_REGEX = r"(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)" | |
| def is_email_valid(email): | |
| if(re.search(EMAIL_REGEX, email)): | |
| return True | |
| else: | |
| return False |
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
| { | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "server.js", | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1", | |
| "start": "node server.js" | |
| }, | |
| "engines": { | |
| "node": "14.16.1" |
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
| pm.test("Set Access Token", () => { | |
| pm.expect(pm.response.code).to.equal(201) | |
| const jsonData = JSON.parse(responseBody); | |
| console.log("JSJS: ", jsonData) | |
| pm.collectionVariables.set("ACCESS_TOKEN", jsonData.access_token); | |
| }) |
NewerOlder