| Command Name | Keyboard Shortcut |
|---|---|
| Show Command Palette | CTRL + SHIFT + p |
| Quick Open, Go to File... | CTRL + p |
| Quick Open, Go to File... | <LEADER> + f |
| Comment out line | CTRL + / |
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
| """ | |
| Just a simple Python REST Client example for reqres.in API for future reference | |
| """ | |
| import logging | |
| import requests | |
| # Configure the logger | |
| logging.basicConfig( |
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
Show hidden characters
| // For format details, see https://aka.ms/devcontainer.json. For config options, see the | |
| // README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile | |
| { | |
| "name": "Airflow Dev Container", | |
| "build": { | |
| // Sets the run context to one level up instead of the .devcontainer folder. | |
| "context": "..", | |
| // Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. | |
| "dockerfile": "../Dockerfile" | |
| }, |
uv init
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
| {"name":"Default","settings":"{\"settings\":\"{\\n // =============================================\\n // ================ GENERAL ====================\\n // =============================================\\n \\\"breadcrumbs.enabled\\\": true,\\n \\\"zenMode.hideLineNumbers\\\": false,\\n \\\"files.trimTrailingWhitespace\\\": true,\\n \\\"security.workspace.trust.untrustedFiles\\\": \\\"open\\\",\\n \\\"workbench.sideBar.location\\\": \\\"right\\\",\\n\\n // =============================================\\n // ================ EDITOR =====================\\n // =============================================\\n \\\"editor.fontSize\\\": 16,\\n \\\"editor.fontFamily\\\": \\\"'Cascadia Code NF', 'Liga ComicCode Nerd Font', SymbolsNerdFont\\\",\\n \\\"editor.fontLigatures\\\": \\\"'ss01', 'ss02', 'ss03', 'ss04', 'ss05', 'ss06', 'ss07', 'ss08', 'calt', 'dlig', 'liga'\\\",\\n \\\"editor.lineNumbers\\\": \\\"relative\\\",\\n \\\"editor.renderWhitespace\\\": \\\"boundary\\\",\\n \\\"editor.wordWrap\\\": \ |
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 Makefile using pip | |
| # ========================= | |
| .ONESHELL: | |
| # Define variables | |
| VENV := .venv | |
| BIN := $(VENV)/bin | |
| PIP := $(BIN)/pip |
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
| # syntax=docker/dockerfile:1 | |
| # Keep this syntax directive! It's used to enable Docker BuildKit | |
| # Based on https://github.com/python-poetry/poetry/discussions/1879?sort=top#discussioncomment-216865 | |
| # but I try to keep it updated (see history) | |
| ################################ | |
| # PYTHON-BASE | |
| # Sets up all our shared environment variables | |
| ################################ |
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
| #!/usr/bin/env bash | |
| # This script will create a new Golang project with a Makefile and some basic directories and files. | |
| # It will also initialize a Git repository and make an initial commit. | |
| # Use this script by running the following command: chmod +x init.sh && ./init.sh | |
| # Get user input for the module path | |
| read -p "Enter the module path (e.g., github.com/<username>/<project-name>): " module_path | |
| # Create project directories |
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
| # Makefile | |
| # https://www.alexedwards.net/blog/a-time-saving-makefile-for-your-go-projects | |
| # https://earthly.dev/blog/golang-makefile/ | |
| # target: dependencies | |
| # action | |
| # Variables | |
| BINARY_DIR = ./bin | |
| CMD_DIR = ./cmd |
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
| // https://francoisbest.com/posts/2023/dotenv-is-dead?_hsmi=279178909 | |
| import { z } from 'zod' | |
| const envSchema = z.object({ | |
| // TODO: CHANGE THESE TO MATCH YOUR CODE IMPLEMENTATION | |
| // See https://cjihrig.com/node_env_considered_harmful | |
| NODE_ENV: z.enum(['development', 'production', 'test']).default('production'), | |
NewerOlder