Spaces:
Sleeping
Sleeping
Vatsal Gupta commited on
Commit ·
25aa202
unverified ·
0
Parent(s):
Initial commit
Browse files- .devcontainer/devcontainer.json +59 -0
- .devcontainer/postCreateScript.sh +73 -0
- .github/FUNDING.yaml +12 -0
- .github/ISSUE_TEMPLATE/bug_report.md +41 -0
- .github/ISSUE_TEMPLATE/custom.md +8 -0
- .github/ISSUE_TEMPLATE/feature_request.md +20 -0
- .github/dependabot.yaml +14 -0
- .github/workflows/dependabot-pr.yaml +17 -0
- .github/workflows/pre-commit-pr.yaml +17 -0
- .gitignore +115 -0
- .markdownlint.json +5 -0
- .pre-commit-config.yaml +150 -0
- .yamllint.yaml +3 -0
- CHANGELOG.md +13 -0
- CODEOWNERS +1 -0
- CODE_OF_CONDUCT.md +27 -0
- CONTRIBUTING.md +28 -0
- LICENSE +201 -0
- README.md +50 -0
- snippets/bat.code-snippets +60 -0
- snippets/c_cpp.code-snippets +139 -0
- snippets/csharp.code-snippets +93 -0
- snippets/css.code-snippets +56 -0
- snippets/dockercompose.code-snippets +57 -0
- snippets/dockerfile.code-snippets +79 -0
- snippets/go.code-snippets +62 -0
- snippets/java.code-snippets +57 -0
- snippets/js.code-snippets +98 -0
- snippets/make.code-snippets +67 -0
- snippets/markdown.code-snippets +73 -0
- snippets/perl.code-snippets +67 -0
- snippets/php.code-snippets +64 -0
- snippets/powershell.code-snippets +61 -0
- snippets/python.code-snippets +97 -0
- snippets/ruby.code-snippets +62 -0
- snippets/rust.code-snippets +65 -0
- snippets/sh.code-snippets +67 -0
- snippets/typescript.code-snippets +66 -0
- snippets/vb.code-snippets +62 -0
- snippets/yaml.code-snippets +50 -0
.devcontainer/devcontainer.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"capAdd": [
|
| 3 |
+
"SYS_PTRACE"
|
| 4 |
+
],
|
| 5 |
+
"customizations": {
|
| 6 |
+
"vscode": {
|
| 7 |
+
"extensions": [
|
| 8 |
+
"DavidAnson.vscode-markdownlint",
|
| 9 |
+
"EditorConfig.EditorConfig",
|
| 10 |
+
"Tyriar.sort-lines",
|
| 11 |
+
"bradzacher.vscode-copy-filename",
|
| 12 |
+
"esbenp.prettier-vscode",
|
| 13 |
+
"foxundermoon.shell-format",
|
| 14 |
+
"ms-azuretools.vscode-docker",
|
| 15 |
+
"streetsidesoftware.code-spell-checker",
|
| 16 |
+
"timonwong.shellcheck",
|
| 17 |
+
"usernamehw.errorlens"
|
| 18 |
+
],
|
| 19 |
+
"settings": {
|
| 20 |
+
"editor.bracketPairColorization.enabled": true,
|
| 21 |
+
"editor.comments.insertSpace": true,
|
| 22 |
+
"editor.detectIndentation": false,
|
| 23 |
+
"editor.insertSpaces": true,
|
| 24 |
+
"editor.snippetSuggestions": "top",
|
| 25 |
+
"editor.tabCompletion": "on",
|
| 26 |
+
"editor.tabSize": 2,
|
| 27 |
+
"editor.trimAutoWhitespace": true,
|
| 28 |
+
"explorer.confirmDelete": false,
|
| 29 |
+
"extensions.ignoreRecommendations": true,
|
| 30 |
+
"files.associations": {
|
| 31 |
+
"*.code-snippets": "jsonc"
|
| 32 |
+
},
|
| 33 |
+
"files.autoSave": "afterDelay",
|
| 34 |
+
"files.eol": "auto",
|
| 35 |
+
"files.exclude": {
|
| 36 |
+
"**/.vscode": true
|
| 37 |
+
},
|
| 38 |
+
"remote.downloadExtensionsLocally": false,
|
| 39 |
+
"search.exclude": {
|
| 40 |
+
"**/*.code-search": true,
|
| 41 |
+
"**/*.git": true,
|
| 42 |
+
"**/*.vscode-server": true,
|
| 43 |
+
"**/bower_components": true,
|
| 44 |
+
"**/node_modules": true
|
| 45 |
+
},
|
| 46 |
+
"workbench.startupEditor": "none"
|
| 47 |
+
}
|
| 48 |
+
}
|
| 49 |
+
},
|
| 50 |
+
"image": "mcr.microsoft.com/devcontainers/base:debian",
|
| 51 |
+
"mounts": [
|
| 52 |
+
"source=${localWorkspaceFolder}/snippets,target=${containerWorkspaceFolder}/.vscode,type=bind,consistency=cached"
|
| 53 |
+
],
|
| 54 |
+
"postCreateCommand": "chmod +x ${containerWorkspaceFolder}/.devcontainer/postCreateScript.sh && ${containerWorkspaceFolder}/.devcontainer/postCreateScript.sh",
|
| 55 |
+
"runArgs": [
|
| 56 |
+
"--rm",
|
| 57 |
+
"--name=vsc-${localEnv:USER}-${containerWorkspaceFolderBasename}-${devcontainerId}"
|
| 58 |
+
]
|
| 59 |
+
}
|
.devcontainer/postCreateScript.sh
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
|
| 3 |
+
##########################################################################################
|
| 4 |
+
# File: postCreateScript.sh
|
| 5 |
+
# Author: Vatsal Gupta
|
| 6 |
+
# Date: 09-Jul-2024
|
| 7 |
+
# Description:
|
| 8 |
+
|
| 9 |
+
# This script runs automatically after the DevContainer environment has been created.
|
| 10 |
+
# It performs various initialization tasks to ensure the development environment is properly configured.
|
| 11 |
+
|
| 12 |
+
# 1. Install necessary dependencies:
|
| 13 |
+
# Installs any required software packages, libraries, or tools that are not included in the base container image.
|
| 14 |
+
# 2. Set up environment variables:
|
| 15 |
+
# Configures environment variables needed for the project or development workflow.
|
| 16 |
+
# 3. Configure services:
|
| 17 |
+
# Sets up or configures additional services or daemons required by the project.
|
| 18 |
+
# 4. Perform custom setup tasks:
|
| 19 |
+
# Includes tasks such as generating configuration files, setting up initial data, or performing cleanup.
|
| 20 |
+
|
| 21 |
+
# Ensure that the development environment is consistently set up with the necessary tools and settings for a smooth workflow.
|
| 22 |
+
##########################################################################################
|
| 23 |
+
|
| 24 |
+
##########################################################################################
|
| 25 |
+
# License
|
| 26 |
+
##########################################################################################
|
| 27 |
+
# This script is licensed under the Apache 2.0 License.
|
| 28 |
+
# License information should be updated as necessary.
|
| 29 |
+
|
| 30 |
+
##########################################################################################
|
| 31 |
+
# Constants
|
| 32 |
+
##########################################################################################
|
| 33 |
+
readonly SNIPPETS_DIR="snippets"
|
| 34 |
+
readonly VSCODE_DIR=".vscode"
|
| 35 |
+
readonly SNIPPET_FILES_PATTERN="*.code-snippets"
|
| 36 |
+
|
| 37 |
+
readonly ALIAS_SRC_URL="https://raw.githubusercontent.com/gvatsal60/Linux-Aliases/HEAD/install.sh"
|
| 38 |
+
|
| 39 |
+
##########################################################################################
|
| 40 |
+
# Functions
|
| 41 |
+
##########################################################################################
|
| 42 |
+
|
| 43 |
+
##########################################################################################
|
| 44 |
+
# Main Script
|
| 45 |
+
##########################################################################################
|
| 46 |
+
|
| 47 |
+
# Install Linux aliases from external script using curl and execute immediately
|
| 48 |
+
# Note: Make sure to review scripts fetched from external sources for security reasons
|
| 49 |
+
if command -v curl >/dev/null 2>&1; then
|
| 50 |
+
curl -fsSL "${ALIAS_SRC_URL}" | sh
|
| 51 |
+
else
|
| 52 |
+
echo "Error: curl is not installed. Unable to use Linux aliases"
|
| 53 |
+
exit 1
|
| 54 |
+
fi
|
| 55 |
+
|
| 56 |
+
# As bind mounts not supported in GitHub Codespaces
|
| 57 |
+
if [ -n "${CODESPACE_NAME}" ]; then
|
| 58 |
+
# Generate symlinks for snippet files
|
| 59 |
+
# Create the .vscode directory if it doesn't already exist.
|
| 60 |
+
mkdir -p "${VSCODE_DIR}"
|
| 61 |
+
# Unlink all symbolic links in the '.vscode' directory
|
| 62 |
+
find "${VSCODE_DIR}" -type l -name "${SNIPPET_FILES_PATTERN}" | while read -r file; do
|
| 63 |
+
unlink "${file}"
|
| 64 |
+
done
|
| 65 |
+
# Check if the 'snippets' directory exists
|
| 66 |
+
if [ -d "${SNIPPETS_DIR}" ]; then
|
| 67 |
+
# Find all .code-snippet files in the 'snippets' directory and create symbolic links
|
| 68 |
+
find "${SNIPPETS_DIR}" -type f -name "${SNIPPET_FILES_PATTERN}" | while read -r file; do
|
| 69 |
+
# Create a symbolic link in '.vscode' with the same base name
|
| 70 |
+
ln -s "$(realpath "${file}")" "${VSCODE_DIR}/$(basename "${file}")"
|
| 71 |
+
done
|
| 72 |
+
fi
|
| 73 |
+
fi
|
.github/FUNDING.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
| 2 |
+
patreon: # Replace with a single Patreon username
|
| 3 |
+
open_collective: # Replace with a single Open Collective username
|
| 4 |
+
ko_fi: # Replace with a single Ko-fi username
|
| 5 |
+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
| 6 |
+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
| 7 |
+
liberapay: # Replace with a single Liberapay username
|
| 8 |
+
issuehunt: # Replace with a single IssueHunt username
|
| 9 |
+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
|
| 10 |
+
polar: # Replace with a single Polar username
|
| 11 |
+
buy_me_a_coffee: gvatsal60
|
| 12 |
+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
.github/ISSUE_TEMPLATE/bug_report.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: Bug report
|
| 3 |
+
about: Create a report to help us improve
|
| 4 |
+
title: ''
|
| 5 |
+
labels: ''
|
| 6 |
+
assignees: ''
|
| 7 |
+
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
**Describe the bug**
|
| 11 |
+
A clear and concise description of what the bug is.
|
| 12 |
+
|
| 13 |
+
**To Reproduce**
|
| 14 |
+
Steps to reproduce the behavior:
|
| 15 |
+
|
| 16 |
+
1. Go to '...'
|
| 17 |
+
2. Click on '....'
|
| 18 |
+
3. Scroll down to '....'
|
| 19 |
+
4. See error
|
| 20 |
+
|
| 21 |
+
**Expected behavior**
|
| 22 |
+
A clear and concise description of what you expected to happen.
|
| 23 |
+
|
| 24 |
+
**Screenshots**
|
| 25 |
+
If applicable, add screenshots to help explain your problem.
|
| 26 |
+
|
| 27 |
+
**Desktop (please complete the following information):**
|
| 28 |
+
|
| 29 |
+
- OS: [e.g. iOS](https)
|
| 30 |
+
- Browser [e.g. chrome, safari](https)
|
| 31 |
+
- Version [e.g. 22](https)
|
| 32 |
+
|
| 33 |
+
**Smartphone (please complete the following information):**
|
| 34 |
+
|
| 35 |
+
- Device: [e.g. iPhone6](https)
|
| 36 |
+
- OS: [e.g. iOS8.1](https)
|
| 37 |
+
- Browser [e.g. stock browser, safari](https)
|
| 38 |
+
- Version [e.g. 22](https)
|
| 39 |
+
|
| 40 |
+
**Additional context**
|
| 41 |
+
Add any other context about the problem here.
|
.github/ISSUE_TEMPLATE/custom.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: Custom issue template
|
| 3 |
+
about: Describe this issue template's purpose here.
|
| 4 |
+
title: ''
|
| 5 |
+
labels: ''
|
| 6 |
+
assignees: ''
|
| 7 |
+
|
| 8 |
+
---
|
.github/ISSUE_TEMPLATE/feature_request.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: Feature request
|
| 3 |
+
about: Suggest an idea for this project
|
| 4 |
+
title: ''
|
| 5 |
+
labels: ''
|
| 6 |
+
assignees: ''
|
| 7 |
+
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
**Is your feature request related to a problem? Please describe.**
|
| 11 |
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...](https)
|
| 12 |
+
|
| 13 |
+
**Describe the solution you'd like**
|
| 14 |
+
A clear and concise description of what you want to happen.
|
| 15 |
+
|
| 16 |
+
**Describe alternatives you've considered**
|
| 17 |
+
A clear and concise description of any alternative solutions or features you've considered.
|
| 18 |
+
|
| 19 |
+
**Additional context**
|
| 20 |
+
Add any other context or screenshots about the feature request here.
|
.github/dependabot.yaml
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# To get started with Dependabot version updates, you'll need to specify which
|
| 2 |
+
# package ecosystems to update and where the package manifests are located.
|
| 3 |
+
# Please see the documentation for all configuration options:
|
| 4 |
+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
| 5 |
+
version: 2
|
| 6 |
+
updates:
|
| 7 |
+
- package-ecosystem: "devcontainers"
|
| 8 |
+
directory: "/"
|
| 9 |
+
schedule:
|
| 10 |
+
interval: "weekly"
|
| 11 |
+
- package-ecosystem: "github-actions"
|
| 12 |
+
directory: "/"
|
| 13 |
+
schedule:
|
| 14 |
+
interval: "weekly"
|
.github/workflows/dependabot-pr.yaml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Dependabot Auto Approve & Merge
|
| 2 |
+
on: pull_request
|
| 3 |
+
permissions:
|
| 4 |
+
pull-requests: write
|
| 5 |
+
contents: write
|
| 6 |
+
jobs:
|
| 7 |
+
dependabot:
|
| 8 |
+
runs-on: ubuntu-latest
|
| 9 |
+
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.event.pull_request.user.type == 'Bot'
|
| 10 |
+
steps:
|
| 11 |
+
- name: Approve & Auto-Merge PR
|
| 12 |
+
run: |
|
| 13 |
+
gh pr review --approve "${PR_URL}"
|
| 14 |
+
gh pr merge --auto --squash "${PR_URL}"
|
| 15 |
+
env:
|
| 16 |
+
PR_URL: ${{github.event.pull_request.html_url}}
|
| 17 |
+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
.github/workflows/pre-commit-pr.yaml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Pre-commit Auto Approve & Merge
|
| 2 |
+
on: pull_request
|
| 3 |
+
permissions:
|
| 4 |
+
pull-requests: write
|
| 5 |
+
contents: write
|
| 6 |
+
jobs:
|
| 7 |
+
pre-commit:
|
| 8 |
+
runs-on: ubuntu-latest
|
| 9 |
+
if: github.event.pull_request.user.login == 'pre-commit-ci[bot]' && github.event.pull_request.user.type == 'Bot'
|
| 10 |
+
steps:
|
| 11 |
+
- name: Approve & Auto-Merge PR
|
| 12 |
+
run: |
|
| 13 |
+
gh pr review --approve "${PR_URL}"
|
| 14 |
+
gh pr merge --auto --squash "${PR_URL}"
|
| 15 |
+
env:
|
| 16 |
+
PR_URL: ${{github.event.pull_request.html_url}}
|
| 17 |
+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
.gitignore
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Compiled source #
|
| 2 |
+
###################
|
| 3 |
+
*.com
|
| 4 |
+
*.class
|
| 5 |
+
*.dll
|
| 6 |
+
*.out
|
| 7 |
+
*.exe
|
| 8 |
+
*.o
|
| 9 |
+
*.so
|
| 10 |
+
|
| 11 |
+
# Packages #
|
| 12 |
+
############
|
| 13 |
+
# It's better to unpack these files and commit the raw source
|
| 14 |
+
# git has its own built in compression methods for making the transfer
|
| 15 |
+
*.7z
|
| 16 |
+
*.dmg
|
| 17 |
+
*.gz
|
| 18 |
+
*.iso
|
| 19 |
+
*.jar
|
| 20 |
+
*.rar
|
| 21 |
+
*.tar
|
| 22 |
+
*.zip
|
| 23 |
+
|
| 24 |
+
# Logs and databases #
|
| 25 |
+
######################
|
| 26 |
+
*.log
|
| 27 |
+
|
| 28 |
+
# OS generated files #
|
| 29 |
+
######################
|
| 30 |
+
.DS_Store
|
| 31 |
+
.DS_Store?
|
| 32 |
+
._*
|
| 33 |
+
.Spotlight-V100
|
| 34 |
+
.Trashes
|
| 35 |
+
ehthumbs.db
|
| 36 |
+
Thumbs.db
|
| 37 |
+
|
| 38 |
+
# Editor-specific files #
|
| 39 |
+
########################
|
| 40 |
+
*~
|
| 41 |
+
*.swp
|
| 42 |
+
.vscode/
|
| 43 |
+
.idea/
|
| 44 |
+
*.sublime-project
|
| 45 |
+
*.sublime-workspace
|
| 46 |
+
|
| 47 |
+
# Language specific #
|
| 48 |
+
#####################
|
| 49 |
+
# Node.js
|
| 50 |
+
node_modules/
|
| 51 |
+
npm-debug.log
|
| 52 |
+
yarn-error.log
|
| 53 |
+
|
| 54 |
+
# Python
|
| 55 |
+
*.pyc
|
| 56 |
+
*.pyo
|
| 57 |
+
__pycache__/
|
| 58 |
+
|
| 59 |
+
# Java
|
| 60 |
+
*.class
|
| 61 |
+
|
| 62 |
+
# Ruby
|
| 63 |
+
.bundle
|
| 64 |
+
config/
|
| 65 |
+
Gemfile.lock
|
| 66 |
+
vendor/bundle/
|
| 67 |
+
|
| 68 |
+
# PHP
|
| 69 |
+
*.php.bak
|
| 70 |
+
|
| 71 |
+
# Swift
|
| 72 |
+
build/
|
| 73 |
+
Packages/
|
| 74 |
+
|
| 75 |
+
# Compiled TypeScript
|
| 76 |
+
*.js.map
|
| 77 |
+
|
| 78 |
+
# Docker
|
| 79 |
+
docker-compose.override.yml
|
| 80 |
+
|
| 81 |
+
# Logs
|
| 82 |
+
logs/
|
| 83 |
+
|
| 84 |
+
# Dependency directories
|
| 85 |
+
.bundler/
|
| 86 |
+
.bundle/
|
| 87 |
+
|
| 88 |
+
# Environment variables
|
| 89 |
+
.env
|
| 90 |
+
|
| 91 |
+
# Yarn
|
| 92 |
+
.yarn/
|
| 93 |
+
|
| 94 |
+
# Jest testing framework
|
| 95 |
+
coverage/
|
| 96 |
+
|
| 97 |
+
# TypeScript
|
| 98 |
+
*.tsbuildinfo
|
| 99 |
+
|
| 100 |
+
# Puppeteer
|
| 101 |
+
.puppeteer/
|
| 102 |
+
|
| 103 |
+
# Helm
|
| 104 |
+
*.tpl
|
| 105 |
+
|
| 106 |
+
# Next.js
|
| 107 |
+
.next/
|
| 108 |
+
|
| 109 |
+
# Binaries, node_modules, and other folders #
|
| 110 |
+
############################################
|
| 111 |
+
bin/
|
| 112 |
+
lib/
|
| 113 |
+
dist/
|
| 114 |
+
bower_components/
|
| 115 |
+
*.min.js
|
.markdownlint.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"MD013": {
|
| 3 |
+
"line_length": 999
|
| 4 |
+
}
|
| 5 |
+
}
|
.pre-commit-config.yaml
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
repos:
|
| 2 |
+
# Syncs pre-commit dependencies with the latest versions.
|
| 3 |
+
- repo: https://github.com/mxr/sync-pre-commit-deps
|
| 4 |
+
rev: "v0.0.3"
|
| 5 |
+
hooks:
|
| 6 |
+
- id: sync-pre-commit-deps
|
| 7 |
+
# Pre-commit hooks for general file checks
|
| 8 |
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
| 9 |
+
rev: "v6.0.0"
|
| 10 |
+
hooks:
|
| 11 |
+
- id: check-added-large-files
|
| 12 |
+
- id: check-ast
|
| 13 |
+
- id: check-builtin-literals
|
| 14 |
+
- id: check-case-conflict
|
| 15 |
+
- id: check-docstring-first
|
| 16 |
+
- id: check-executables-have-shebangs
|
| 17 |
+
- id: check-json
|
| 18 |
+
exclude: '\.ipynb$' # Exclude Jupyter notebooks
|
| 19 |
+
- id: check-merge-conflict
|
| 20 |
+
- id: check-shebang-scripts-are-executable
|
| 21 |
+
- id: check-symlinks
|
| 22 |
+
- id: check-toml
|
| 23 |
+
- id: check-vcs-permalinks
|
| 24 |
+
- id: check-xml
|
| 25 |
+
- id: check-yaml
|
| 26 |
+
- id: debug-statements
|
| 27 |
+
- id: destroyed-symlinks
|
| 28 |
+
# - id: detect-aws-credentials
|
| 29 |
+
- id: detect-private-key
|
| 30 |
+
- id: double-quote-string-fixer
|
| 31 |
+
- id: end-of-file-fixer
|
| 32 |
+
- id: fix-byte-order-marker
|
| 33 |
+
- id: mixed-line-ending
|
| 34 |
+
- id: name-tests-test
|
| 35 |
+
- id: pretty-format-json
|
| 36 |
+
args: [--autofix]
|
| 37 |
+
exclude: '\.ipynb$' # Exclude Jupyter notebooks
|
| 38 |
+
- id: requirements-txt-fixer
|
| 39 |
+
- id: trailing-whitespace
|
| 40 |
+
# Uses pygrep to enforce Python type annotations.
|
| 41 |
+
- repo: https://github.com/pre-commit/pygrep-hooks
|
| 42 |
+
rev: "v1.10.0"
|
| 43 |
+
hooks:
|
| 44 |
+
- id: python-use-type-annotations
|
| 45 |
+
# Clang-format for formatting C, C++, and JavaScript files
|
| 46 |
+
- repo: https://github.com/pre-commit/mirrors-clang-format
|
| 47 |
+
rev: "v21.1.0"
|
| 48 |
+
hooks:
|
| 49 |
+
- id: clang-format
|
| 50 |
+
# ESLint for linting JavaScript and TypeScript files
|
| 51 |
+
- repo: https://github.com/pre-commit/mirrors-eslint
|
| 52 |
+
rev: "v9.35.0"
|
| 53 |
+
hooks:
|
| 54 |
+
- id: eslint
|
| 55 |
+
# Runs mypy to check Python type annotations.
|
| 56 |
+
- repo: https://github.com/pre-commit/mirrors-mypy
|
| 57 |
+
rev: "v1.18.1"
|
| 58 |
+
hooks:
|
| 59 |
+
- id: mypy
|
| 60 |
+
# Lints SCSS files to enforce style and best practices.
|
| 61 |
+
- repo: https://github.com/pre-commit/mirrors-scss-lint
|
| 62 |
+
rev: "v0.60.0"
|
| 63 |
+
hooks:
|
| 64 |
+
- id: scss-lint
|
| 65 |
+
# Runs JSHint to analyze JavaScript code for potential errors.
|
| 66 |
+
- repo: https://github.com/pre-commit/mirrors-jshint
|
| 67 |
+
rev: "v2.13.6"
|
| 68 |
+
hooks:
|
| 69 |
+
- id: jshint
|
| 70 |
+
# Uses fixmyjs to automatically fix simple JavaScript issues.
|
| 71 |
+
- repo: https://github.com/pre-commit/mirrors-fixmyjs
|
| 72 |
+
rev: "v2.0.0"
|
| 73 |
+
hooks:
|
| 74 |
+
- id: fixmyjs
|
| 75 |
+
# Runs CSSLint to check CSS files for errors and stylistic issues.
|
| 76 |
+
- repo: https://github.com/pre-commit/mirrors-csslint
|
| 77 |
+
rev: "v1.0.5"
|
| 78 |
+
hooks:
|
| 79 |
+
- id: csslint
|
| 80 |
+
# ShellCheck hook for linting shell scripts
|
| 81 |
+
- repo: https://github.com/shellcheck-py/shellcheck-py
|
| 82 |
+
rev: "v0.11.0.1"
|
| 83 |
+
hooks:
|
| 84 |
+
- id: shellcheck
|
| 85 |
+
name: shellcheck
|
| 86 |
+
description: This hook runs shellcheck for linting shell scripts
|
| 87 |
+
# Bashate hook for linting shell scripts
|
| 88 |
+
- repo: https://github.com/openstack/bashate
|
| 89 |
+
rev: "2.1.1"
|
| 90 |
+
hooks:
|
| 91 |
+
- id: bashate
|
| 92 |
+
name: bashate
|
| 93 |
+
description: This hook runs bashate for linting shell scripts
|
| 94 |
+
entry: bashate
|
| 95 |
+
language: python
|
| 96 |
+
types: [shell]
|
| 97 |
+
# Actionlint for linting GitHub Actions YAML files
|
| 98 |
+
- repo: https://github.com/rhysd/actionlint
|
| 99 |
+
rev: "v1.7.7"
|
| 100 |
+
hooks:
|
| 101 |
+
- id: actionlint
|
| 102 |
+
# Yamlfmt for formatting YAML files
|
| 103 |
+
- repo: https://github.com/google/yamlfmt
|
| 104 |
+
rev: "v0.17.2"
|
| 105 |
+
hooks:
|
| 106 |
+
- id: yamlfmt
|
| 107 |
+
# Codespell for detecting common misspellings in code
|
| 108 |
+
- repo: https://github.com/codespell-project/codespell
|
| 109 |
+
rev: "v2.4.1"
|
| 110 |
+
hooks:
|
| 111 |
+
- id: codespell
|
| 112 |
+
# Checkmake for linting Makefiles
|
| 113 |
+
- repo: https://github.com/mrtazz/checkmake
|
| 114 |
+
rev: "0.2.2"
|
| 115 |
+
hooks:
|
| 116 |
+
- id: checkmake
|
| 117 |
+
# SQLFluff for linting and fixing SQL files
|
| 118 |
+
- repo: https://github.com/sqlfluff/sqlfluff
|
| 119 |
+
rev: "3.4.2"
|
| 120 |
+
hooks:
|
| 121 |
+
- id: sqlfluff-lint
|
| 122 |
+
- id: sqlfluff-fix
|
| 123 |
+
# RuboCop for linting Ruby files
|
| 124 |
+
- repo: https://github.com/rubocop/rubocop
|
| 125 |
+
rev: "v1.80.2"
|
| 126 |
+
hooks:
|
| 127 |
+
- id: rubocop
|
| 128 |
+
# Terraform-py for formatting and validating Terraform files
|
| 129 |
+
- repo: https://github.com/AleksaC/terraform-py
|
| 130 |
+
rev: "v1.13.2"
|
| 131 |
+
hooks:
|
| 132 |
+
- id: tf-fmt
|
| 133 |
+
- id: tf-validate
|
| 134 |
+
# Gitleaks for detecting secrets in Git repositories
|
| 135 |
+
- repo: https://github.com/gitleaks/gitleaks
|
| 136 |
+
rev: "v8.28.0"
|
| 137 |
+
hooks:
|
| 138 |
+
- id: gitleaks
|
| 139 |
+
# Talisman for pre-commit Git hooks to detect sensitive files
|
| 140 |
+
- repo: https://github.com/thoughtworks/talisman
|
| 141 |
+
rev: "v1.37.0"
|
| 142 |
+
hooks:
|
| 143 |
+
- id: talisman-commit
|
| 144 |
+
entry: cmd --githook pre-commit
|
| 145 |
+
# Markdownlint for linting Markdown files
|
| 146 |
+
- repo: https://github.com/DavidAnson/markdownlint-cli2
|
| 147 |
+
rev: v0.18.1
|
| 148 |
+
hooks:
|
| 149 |
+
- id: markdownlint-cli2
|
| 150 |
+
args: [--fix]
|
.yamllint.yaml
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
rules:
|
| 2 |
+
line-length:
|
| 3 |
+
max: 200
|
CHANGELOG.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Changelog
|
| 2 |
+
|
| 3 |
+
All notable changes to [Project Name](https) will be documented in this file.
|
| 4 |
+
|
| 5 |
+
## [Unreleased](#unreleased)
|
| 6 |
+
|
| 7 |
+
## [1.0.0](#100---yyyy-mm-dd) - YYYY-MM-DD
|
| 8 |
+
|
| 9 |
+
- Initial release
|
| 10 |
+
|
| 11 |
+
## Older Releases
|
| 12 |
+
|
| 13 |
+
[Older release notes can go here](#older-releases)
|
CODEOWNERS
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
* @gvatsal60
|
CODE_OF_CONDUCT.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Code of Conduct
|
| 2 |
+
|
| 3 |
+
## Our Pledge
|
| 4 |
+
|
| 5 |
+
In the interest of fostering an open and welcoming environment,
|
| 6 |
+
we as contributors and maintainers pledge to make participation
|
| 7 |
+
in our project and our community a harassment-free experience for everyone,
|
| 8 |
+
regardless of age, body size, disability, ethnicity, gender identity
|
| 9 |
+
and expression, level of experience, nationality, personal appearance,
|
| 10 |
+
race, religion, or sexual identity and orientation.
|
| 11 |
+
|
| 12 |
+
## Responsibilities
|
| 13 |
+
|
| 14 |
+
Project maintainers are responsible for clarifying the standards of acceptable
|
| 15 |
+
behavior and are expected to take appropriate and fair corrective action in
|
| 16 |
+
response to any instances of unacceptable behavior.
|
| 17 |
+
|
| 18 |
+
## Enforcement
|
| 19 |
+
|
| 20 |
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
| 21 |
+
reported by contacting the project team at [contact email](github-actions[bot]@users.noreply.github.com).
|
| 22 |
+
All complaints will be reviewed and investigated promptly and fairly.
|
| 23 |
+
|
| 24 |
+
## Attribution
|
| 25 |
+
|
| 26 |
+
This [Code of Conduct](<https://www.contributor-covenant.org/version/2/0/code_of_conduct.html>)
|
| 27 |
+
is adapted from the Contributor Covenant, version 2.0.
|
CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Contributing to [Project Name](#contributing-to-project-name)
|
| 2 |
+
|
| 3 |
+
Thank you for your interest in contributing to [Project Name](https)!
|
| 4 |
+
Please follow these guidelines to ensure a smooth process.
|
| 5 |
+
|
| 6 |
+
## How to Contribute
|
| 7 |
+
|
| 8 |
+
1. Fork the repository and create your branch from `master`.
|
| 9 |
+
2. Open an issue or feature request on GitHub or pick an existing one.
|
| 10 |
+
3. Work on your changes.
|
| 11 |
+
4. Ensure your code follows our coding standards and conventions.
|
| 12 |
+
5. Test your changes thoroughly.
|
| 13 |
+
6. Submit a pull request referencing the original issue.
|
| 14 |
+
|
| 15 |
+
## Code Style
|
| 16 |
+
|
| 17 |
+
[Describe your coding style guidelines here, if applicable.](#code-style)
|
| 18 |
+
We follow the [coding style guide](link_to_style_guide) for this project.
|
| 19 |
+
|
| 20 |
+
## Reporting Bugs
|
| 21 |
+
|
| 22 |
+
Please report bugs using the GitHub issue tracker.
|
| 23 |
+
Include steps to reproduce the bug and any relevant error messages.
|
| 24 |
+
|
| 25 |
+
## Contact
|
| 26 |
+
|
| 27 |
+
If you have questions or need further assistance,
|
| 28 |
+
feel free to contact us at [contact email](github-actions[bot]@users.noreply.github.com).
|
LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
| 178 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 179 |
+
|
| 180 |
+
To apply the Apache License to your work, attach the following
|
| 181 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 182 |
+
replaced with your own identifying information. (Don't include
|
| 183 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 184 |
+
comment syntax for the file format. We also recommend that a
|
| 185 |
+
file or class name and description of purpose be included on the
|
| 186 |
+
same "printed page" as the copyright notice for easier
|
| 187 |
+
identification within third-party archives.
|
| 188 |
+
|
| 189 |
+
Copyright [yyyy] [name of copyright owner]
|
| 190 |
+
|
| 191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 192 |
+
you may not use this file except in compliance with the License.
|
| 193 |
+
You may obtain a copy of the License at
|
| 194 |
+
|
| 195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 196 |
+
|
| 197 |
+
Unless required by applicable law or agreed to in writing, software
|
| 198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 200 |
+
See the License for the specific language governing permissions and
|
| 201 |
+
limitations under the License.
|
README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 🚀 Project Template
|
| 2 |
+
|
| 3 |
+
[](https://img.shields.io/github/license/gvatsal60/project-template)
|
| 4 |
+
[](https://results.pre-commit.ci/latest/github/gvatsal60/project-template/HEAD)
|
| 5 |
+
[](https://app.codacy.com/gh/gvatsal60/project-template/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
|
| 6 |
+
[](https://www.codefactor.io/repository/github/gvatsal60/project-template)
|
| 7 |
+

|
| 8 |
+

|
| 9 |
+

|
| 10 |
+

|
| 11 |
+
|
| 12 |
+
Welcome to the `Project Template` repository! This serves as your starting point for new projects,
|
| 13 |
+
packed with the essential tools to ensure smooth development, code quality, and consistent documentation.
|
| 14 |
+
Inside, you'll find:
|
| 15 |
+
|
| 16 |
+
1. 📄 README.md
|
| 17 |
+
2. 📝 LICENSE
|
| 18 |
+
3. 🚫 .gitignore
|
| 19 |
+
4. 🧑🤝🧑 CODE_OF_CONDUCT.md
|
| 20 |
+
5. ✍️ CONTRIBUTING.md
|
| 21 |
+
6. 💰 FUNDING.yml
|
| 22 |
+
7. 📜 CHANGELOG.md
|
| 23 |
+
|
| 24 |
+
## 🛠️ Installation
|
| 25 |
+
|
| 26 |
+
To set up your project using this template, just follow these simple steps:
|
| 27 |
+
|
| 28 |
+
1. **Clone the repository:**
|
| 29 |
+
|
| 30 |
+
```sh
|
| 31 |
+
git clone https://github.com/gvatsal60/project-template.git
|
| 32 |
+
cd project-template
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
2. **Customize According to Your Project:**
|
| 36 |
+
* 🎯 Replace `[Project Name]`
|
| 37 |
+
* 📧 Update `[contact email]`
|
| 38 |
+
* 💡 Follow `[coding style guide]`
|
| 39 |
+
|
| 40 |
+
## 💬 Contributing
|
| 41 |
+
|
| 42 |
+
We love contributions! If you'd like to help improve this project, please review our
|
| 43 |
+
[Contribution Guidelines](https://github.com/gvatsal60/project-template/blob/HEAD/CONTRIBUTING.md)
|
| 44 |
+
before submitting pull requests.
|
| 45 |
+
|
| 46 |
+
## 🛡️ License
|
| 47 |
+
|
| 48 |
+
This project is licensed under the Apache License 2.0 License -
|
| 49 |
+
see the [LICENSE](https://github.com/gvatsal60/project-template/blob/HEAD/LICENSE)
|
| 50 |
+
file for details.
|
snippets/bat.code-snippets
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @file bat.code-snippets
|
| 3 |
+
* @brief Contains custom code snippets for Windows Bat
|
| 4 |
+
*
|
| 5 |
+
* This file provides a collection of code snippets designed to facilitate rapid
|
| 6 |
+
* development by offering quick access to commonly used patterns and boilerplate
|
| 7 |
+
* code. The snippets include function templates, common data structures, and
|
| 8 |
+
* useful macros.
|
| 9 |
+
*
|
| 10 |
+
* To utilize these snippets, integrate this file into your IDE's snippet manager
|
| 11 |
+
* or configuration. Feel free to modify and expand the snippets to meet your
|
| 12 |
+
* specific coding requirements.
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
{
|
| 16 |
+
/***************************************************************************************
|
| 17 |
+
* File Template
|
| 18 |
+
**************************************************************************************/
|
| 19 |
+
"Windows Bat File Template": {
|
| 20 |
+
"scope": "bat",
|
| 21 |
+
"prefix": "template",
|
| 22 |
+
"body": [
|
| 23 |
+
"@echo off",
|
| 24 |
+
"rem ##########################################################################################",
|
| 25 |
+
"rem File: ${TM_FILENAME}",
|
| 26 |
+
"rem Author: ${USER}",
|
| 27 |
+
"rem Date: ${CURRENT_DATE}-${CURRENT_MONTH_NAME_SHORT}-${CURRENT_YEAR}",
|
| 28 |
+
"rem Description: Brief description of the script purpose.",
|
| 29 |
+
"rem ##########################################################################################",
|
| 30 |
+
"",
|
| 31 |
+
"rem ##########################################################################################",
|
| 32 |
+
"rem License",
|
| 33 |
+
"rem ##########################################################################################",
|
| 34 |
+
"rem This script is licensed under the MIT License.",
|
| 35 |
+
"rem License information should be updated as necessary.",
|
| 36 |
+
"rem ##########################################################################################",
|
| 37 |
+
"",
|
| 38 |
+
"rem ##########################################################################################",
|
| 39 |
+
"rem Constants",
|
| 40 |
+
"rem ##########################################################################################",
|
| 41 |
+
"",
|
| 42 |
+
"rem ##########################################################################################",
|
| 43 |
+
"rem Functions",
|
| 44 |
+
"rem ##########################################################################################",
|
| 45 |
+
"",
|
| 46 |
+
"rem ##########################################################################################",
|
| 47 |
+
"rem Main Script",
|
| 48 |
+
"rem ##########################################################################################",
|
| 49 |
+
"",
|
| 50 |
+
"rem Main script logic goes here",
|
| 51 |
+
""
|
| 52 |
+
],
|
| 53 |
+
"description": "Windows bat file template",
|
| 54 |
+
"isFileTemplate": true
|
| 55 |
+
}
|
| 56 |
+
/***************************************************************************************
|
| 57 |
+
* Debugging
|
| 58 |
+
**************************************************************************************/
|
| 59 |
+
// TODO
|
| 60 |
+
}
|
snippets/c_cpp.code-snippets
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @file c_cpp.code-snippets
|
| 3 |
+
* @brief Contains custom code snippets for C and C++
|
| 4 |
+
*
|
| 5 |
+
* This file provides a collection of code snippets designed to facilitate rapid
|
| 6 |
+
* development by offering quick access to commonly used patterns and boilerplate
|
| 7 |
+
* code. The snippets include function templates, common data structures, and
|
| 8 |
+
* useful macros.
|
| 9 |
+
*
|
| 10 |
+
* To utilize these snippets, integrate this file into your IDE's snippet manager
|
| 11 |
+
* or configuration. Feel free to modify and expand the snippets to meet your
|
| 12 |
+
* specific coding requirements.
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
{
|
| 16 |
+
/***************************************************************************************
|
| 17 |
+
* Header File Template
|
| 18 |
+
**************************************************************************************/
|
| 19 |
+
"C/C++ Header File Template": {
|
| 20 |
+
"scope": "c, cpp",
|
| 21 |
+
"prefix": "htemplate",
|
| 22 |
+
"body": [
|
| 23 |
+
"/***************************************************************************************",
|
| 24 |
+
" * File: ${TM_FILENAME}",
|
| 25 |
+
" * Author: ${USER}",
|
| 26 |
+
" * Date: ${CURRENT_DATE}-${CURRENT_MONTH_NAME_SHORT}-${CURRENT_YEAR}",
|
| 27 |
+
" * Description: Brief description of the file's purpose.",
|
| 28 |
+
" **************************************************************************************/",
|
| 29 |
+
"",
|
| 30 |
+
"/***************************************************************************************",
|
| 31 |
+
" * License",
|
| 32 |
+
" **************************************************************************************/",
|
| 33 |
+
"/*",
|
| 34 |
+
" * This file is licensed under the MIT License.",
|
| 35 |
+
" * License information should be updated as necessary.",
|
| 36 |
+
" */",
|
| 37 |
+
"",
|
| 38 |
+
"/***************************************************************************************",
|
| 39 |
+
" * Includes",
|
| 40 |
+
" **************************************************************************************/",
|
| 41 |
+
"#ifndef _${TM_FILENAME_BASE/(.*)/${1:/upcase}/}_H_",
|
| 42 |
+
"#define _${TM_FILENAME_BASE/(.*)/${1:/upcase}/}_H_",
|
| 43 |
+
"",
|
| 44 |
+
"#include <> ${LINE_COMMENT} TODO",
|
| 45 |
+
"",
|
| 46 |
+
"/***************************************************************************************",
|
| 47 |
+
" * Constants",
|
| 48 |
+
" **************************************************************************************/",
|
| 49 |
+
"",
|
| 50 |
+
"/***************************************************************************************",
|
| 51 |
+
" * Structure Declarations",
|
| 52 |
+
" **************************************************************************************/",
|
| 53 |
+
"",
|
| 54 |
+
"/***************************************************************************************",
|
| 55 |
+
" * Class Declarations",
|
| 56 |
+
" **************************************************************************************/",
|
| 57 |
+
"",
|
| 58 |
+
"",
|
| 59 |
+
"#endif"
|
| 60 |
+
],
|
| 61 |
+
"description": "C/C++ header file template",
|
| 62 |
+
"isFileTemplate": true
|
| 63 |
+
},
|
| 64 |
+
/***************************************************************************************
|
| 65 |
+
* Source File Template
|
| 66 |
+
**************************************************************************************/
|
| 67 |
+
"C/C++ Source File Template": {
|
| 68 |
+
"scope": "c, cpp",
|
| 69 |
+
"prefix": "stemplate",
|
| 70 |
+
"body": [
|
| 71 |
+
"/***************************************************************************************",
|
| 72 |
+
" * File: ${TM_FILENAME}",
|
| 73 |
+
" * Author: ${USER}",
|
| 74 |
+
" * Date: ${CURRENT_DATE}-${CURRENT_MONTH_NAME_SHORT}-${CURRENT_YEAR}",
|
| 75 |
+
" * Description: Brief description of the file's purpose.",
|
| 76 |
+
" **************************************************************************************/",
|
| 77 |
+
"",
|
| 78 |
+
"/***************************************************************************************",
|
| 79 |
+
" * Includes",
|
| 80 |
+
" **************************************************************************************/",
|
| 81 |
+
"",
|
| 82 |
+
"#include \"${TM_FILENAME_BASE}\"",
|
| 83 |
+
"",
|
| 84 |
+
"/***************************************************************************************",
|
| 85 |
+
" * Global Functions Definitions",
|
| 86 |
+
" **************************************************************************************/",
|
| 87 |
+
"",
|
| 88 |
+
"/***************************************************************************************",
|
| 89 |
+
" * Class Methods Definitions",
|
| 90 |
+
" **************************************************************************************/",
|
| 91 |
+
""
|
| 92 |
+
],
|
| 93 |
+
"description": "C/C++ source file template",
|
| 94 |
+
"isFileTemplate": true
|
| 95 |
+
},
|
| 96 |
+
/***************************************************************************************
|
| 97 |
+
* Debugging
|
| 98 |
+
**************************************************************************************/
|
| 99 |
+
"Print Pointer Address": {
|
| 100 |
+
"scope": "c, cpp",
|
| 101 |
+
"prefix": "plog",
|
| 102 |
+
"body": [
|
| 103 |
+
"printf(\"%s:%d $1: %p\\n\", \"${TM_FILENAME}\", __LINE__, $1); ${LINE_COMMENT} REMOVE"
|
| 104 |
+
],
|
| 105 |
+
"description": "Prints pointer address to console"
|
| 106 |
+
},
|
| 107 |
+
"Print Hex Value": {
|
| 108 |
+
"scope": "c, cpp",
|
| 109 |
+
"prefix": "hlog",
|
| 110 |
+
"body": [
|
| 111 |
+
"printf(\"%s:%d $1: 0x%02x\\n\", \"${TM_FILENAME}\", __LINE__, $1); ${LINE_COMMENT} REMOVE"
|
| 112 |
+
],
|
| 113 |
+
"description": "Print hex value to console"
|
| 114 |
+
},
|
| 115 |
+
"Print String Value": {
|
| 116 |
+
"scope": "c, cpp",
|
| 117 |
+
"prefix": "slog",
|
| 118 |
+
"body": [
|
| 119 |
+
"printf(\"%s:%d $1: %s\\n\", \"${TM_FILENAME}\", __LINE__, $1); ${LINE_COMMENT} REMOVE"
|
| 120 |
+
],
|
| 121 |
+
"description": "Print string value to console"
|
| 122 |
+
},
|
| 123 |
+
"Print Function Name": {
|
| 124 |
+
"scope": "c, cpp",
|
| 125 |
+
"prefix": "log0",
|
| 126 |
+
"body": [
|
| 127 |
+
"printf(\"%s:%d %s $1\\n\", \"${TM_FILENAME}\", __LINE__, __FUNCTION__); ${LINE_COMMENT} REMOVE"
|
| 128 |
+
],
|
| 129 |
+
"description": "Print filename with linenumber to console"
|
| 130 |
+
},
|
| 131 |
+
"Print Integer Values": {
|
| 132 |
+
"scope": "c, cpp",
|
| 133 |
+
"prefix": "log1",
|
| 134 |
+
"body": [
|
| 135 |
+
"printf(\"%s:%d $1: %d\\n\", \"${TM_FILENAME}\", __LINE__, $1); ${LINE_COMMENT} REMOVE"
|
| 136 |
+
],
|
| 137 |
+
"description": "Print values to console"
|
| 138 |
+
}
|
| 139 |
+
}
|
snippets/csharp.code-snippets
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @file csharp.code-snippets
|
| 3 |
+
* @brief Contains custom code snippets for C#
|
| 4 |
+
*
|
| 5 |
+
* This file provides a collection of code snippets designed to facilitate rapid
|
| 6 |
+
* development by offering quick access to commonly used patterns and boilerplate
|
| 7 |
+
* code. The snippets include function templates, common data structures, and
|
| 8 |
+
* useful macros.
|
| 9 |
+
*
|
| 10 |
+
* To utilize these snippets, integrate this file into your IDE's snippet manager
|
| 11 |
+
* or configuration. Feel free to modify and expand the snippets to meet your
|
| 12 |
+
* specific coding requirements.
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
{
|
| 16 |
+
/***************************************************************************************
|
| 17 |
+
* Header File Template
|
| 18 |
+
**************************************************************************************/
|
| 19 |
+
"C# File Template": {
|
| 20 |
+
"scope": "csharp",
|
| 21 |
+
"prefix": "template",
|
| 22 |
+
"body": [
|
| 23 |
+
"/***************************************************************************************",
|
| 24 |
+
" * File: ${TM_FILENAME}",
|
| 25 |
+
" * Author: ${USER}",
|
| 26 |
+
" * Date: ${CURRENT_DATE}-${CURRENT_MONTH_NAME_SHORT}-${CURRENT_YEAR}",
|
| 27 |
+
" * Description: Brief description of the file's purpose.",
|
| 28 |
+
" **************************************************************************************/",
|
| 29 |
+
"",
|
| 30 |
+
"/***************************************************************************************",
|
| 31 |
+
" * License",
|
| 32 |
+
" **************************************************************************************/",
|
| 33 |
+
"/*",
|
| 34 |
+
" * This file is licensed under the MIT License.",
|
| 35 |
+
" * License information should be updated as necessary.",
|
| 36 |
+
" */",
|
| 37 |
+
"",
|
| 38 |
+
"/***************************************************************************************",
|
| 39 |
+
" * Includes",
|
| 40 |
+
" **************************************************************************************/",
|
| 41 |
+
"using System;",
|
| 42 |
+
"",
|
| 43 |
+
"namespace ${TM_FILENAME_BASE/(.*)/${1:/upcase}/}",
|
| 44 |
+
"{",
|
| 45 |
+
"/***************************************************************************************",
|
| 46 |
+
" * Constants",
|
| 47 |
+
" **************************************************************************************/",
|
| 48 |
+
"",
|
| 49 |
+
"/***************************************************************************************",
|
| 50 |
+
" * Structure Declarations",
|
| 51 |
+
" **************************************************************************************/",
|
| 52 |
+
"",
|
| 53 |
+
"/***************************************************************************************",
|
| 54 |
+
" * Class Declarations",
|
| 55 |
+
" **************************************************************************************/",
|
| 56 |
+
"",
|
| 57 |
+
"}"
|
| 58 |
+
],
|
| 59 |
+
"description": "CSharp file template",
|
| 60 |
+
"isFileTemplate": true
|
| 61 |
+
},
|
| 62 |
+
/***************************************************************************************
|
| 63 |
+
* Debugging
|
| 64 |
+
**************************************************************************************/
|
| 65 |
+
"Log Hex Value": {
|
| 66 |
+
"scope": "csharp",
|
| 67 |
+
"prefix": "hlog",
|
| 68 |
+
// FIXME
|
| 69 |
+
"body": [],
|
| 70 |
+
"description": "Log hex value to console"
|
| 71 |
+
},
|
| 72 |
+
"Log String Value": {
|
| 73 |
+
"scope": "csharp",
|
| 74 |
+
"prefix": "slog",
|
| 75 |
+
// FIXME
|
| 76 |
+
"body": [],
|
| 77 |
+
"description": "Log string value to console"
|
| 78 |
+
},
|
| 79 |
+
"Log Function Name": {
|
| 80 |
+
"scope": "csharp",
|
| 81 |
+
"prefix": "log0",
|
| 82 |
+
// FIXME
|
| 83 |
+
"body": [],
|
| 84 |
+
"description": "Log function name with line number to console"
|
| 85 |
+
},
|
| 86 |
+
"Log Variable Value": {
|
| 87 |
+
"scope": "csharp",
|
| 88 |
+
"prefix": "log1",
|
| 89 |
+
// FIXME
|
| 90 |
+
"body": [],
|
| 91 |
+
"description": "Log variable value to console"
|
| 92 |
+
}
|
| 93 |
+
}
|
snippets/css.code-snippets
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @file css.code-snippets
|
| 3 |
+
* @brief Contains custom code snippets for CSS
|
| 4 |
+
*
|
| 5 |
+
* This file provides a collection of code snippets designed to facilitate rapid
|
| 6 |
+
* development by offering quick access to commonly used patterns and boilerplate
|
| 7 |
+
* code. The snippets include function templates, common data structures, and
|
| 8 |
+
* useful macros.
|
| 9 |
+
*
|
| 10 |
+
* To utilize these snippets, integrate this file into your IDE's snippet manager
|
| 11 |
+
* or configuration. Feel free to modify and expand the snippets to meet your
|
| 12 |
+
* specific coding requirements.
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
{
|
| 16 |
+
/***************************************************************************************
|
| 17 |
+
* File Template
|
| 18 |
+
**************************************************************************************/
|
| 19 |
+
"CSS File Template": {
|
| 20 |
+
"scope": "css",
|
| 21 |
+
"prefix": "template",
|
| 22 |
+
"body": [
|
| 23 |
+
"/***************************************************************************************",
|
| 24 |
+
" * File: ${TM_FILENAME}",
|
| 25 |
+
" * Author: ${USER}",
|
| 26 |
+
" * Date: ${CURRENT_DATE}-${CURRENT_MONTH_NAME_SHORT}-${CURRENT_YEAR}",
|
| 27 |
+
" * Description: Brief description of the file's purpose.",
|
| 28 |
+
" **************************************************************************************/",
|
| 29 |
+
"",
|
| 30 |
+
"/***************************************************************************************",
|
| 31 |
+
" * License",
|
| 32 |
+
" **************************************************************************************/",
|
| 33 |
+
"/*",
|
| 34 |
+
" * This file is licensed under the MIT License.",
|
| 35 |
+
" * License information should be updated as necessary.",
|
| 36 |
+
" */",
|
| 37 |
+
"",
|
| 38 |
+
"/***************************************************************************************",
|
| 39 |
+
" * Constants",
|
| 40 |
+
" **************************************************************************************/",
|
| 41 |
+
"",
|
| 42 |
+
"/***************************************************************************************",
|
| 43 |
+
" * Styles",
|
| 44 |
+
" **************************************************************************************/",
|
| 45 |
+
"",
|
| 46 |
+
"/* Add your CSS rules here */",
|
| 47 |
+
""
|
| 48 |
+
],
|
| 49 |
+
"description": "css file template",
|
| 50 |
+
"isFileTemplate": true
|
| 51 |
+
}
|
| 52 |
+
/***************************************************************************************
|
| 53 |
+
* Debugging
|
| 54 |
+
**************************************************************************************/
|
| 55 |
+
// TODO
|
| 56 |
+
}
|
snippets/dockercompose.code-snippets
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @file dockercompose.code-snippets
|
| 3 |
+
* @brief Contains custom code snippets for Docker Compose
|
| 4 |
+
*
|
| 5 |
+
* This file provides a collection of code snippets designed to facilitate rapid
|
| 6 |
+
* development by offering quick access to commonly used patterns and boilerplate
|
| 7 |
+
* code. The snippets include function templates, common data structures, and
|
| 8 |
+
* useful macros.
|
| 9 |
+
*
|
| 10 |
+
* To utilize these snippets, integrate this file into your IDE's snippet manager
|
| 11 |
+
* or configuration. Feel free to modify and expand the snippets to meet your
|
| 12 |
+
* specific coding requirements.
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
{
|
| 16 |
+
/***************************************************************************************
|
| 17 |
+
* File Template
|
| 18 |
+
**************************************************************************************/
|
| 19 |
+
"Docker Compose File Template": {
|
| 20 |
+
"scope": "dockercompose",
|
| 21 |
+
"prefix": "template",
|
| 22 |
+
"body": [
|
| 23 |
+
"##########################################################################################",
|
| 24 |
+
"# File: ${TM_FILENAME}",
|
| 25 |
+
"# Author: ${USER}",
|
| 26 |
+
"# Date: ${CURRENT_DATE}-${CURRENT_MONTH_NAME_SHORT}-${CURRENT_YEAR}",
|
| 27 |
+
"# Description: Brief description of the script purpose.",
|
| 28 |
+
"##########################################################################################",
|
| 29 |
+
"",
|
| 30 |
+
"##########################################################################################",
|
| 31 |
+
"# License",
|
| 32 |
+
"##########################################################################################",
|
| 33 |
+
"# This Docker Compose file is licensed under the MIT License.",
|
| 34 |
+
"# License information should be updated as necessary.",
|
| 35 |
+
"##########################################################################################",
|
| 36 |
+
"",
|
| 37 |
+
"##########################################################################################",
|
| 38 |
+
"# Services",
|
| 39 |
+
"##########################################################################################",
|
| 40 |
+
"",
|
| 41 |
+
"##########################################################################################",
|
| 42 |
+
"# Main Docker Compose Configuration",
|
| 43 |
+
"##########################################################################################",
|
| 44 |
+
"",
|
| 45 |
+
"",
|
| 46 |
+
"##########################################################################################",
|
| 47 |
+
"# End of Docker Compose Configuration",
|
| 48 |
+
"##########################################################################################"
|
| 49 |
+
],
|
| 50 |
+
"description": "docker compose file template",
|
| 51 |
+
"isFileTemplate": true
|
| 52 |
+
}
|
| 53 |
+
/***************************************************************************************
|
| 54 |
+
* Debugging
|
| 55 |
+
**************************************************************************************/
|
| 56 |
+
// TODO
|
| 57 |
+
}
|
snippets/dockerfile.code-snippets
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @file dockerfile.code-snippets
|
| 3 |
+
* @brief Contains custom code snippets for Dockerfile
|
| 4 |
+
*
|
| 5 |
+
* This file provides a collection of code snippets designed to facilitate rapid
|
| 6 |
+
* development by offering quick access to commonly used patterns and boilerplate
|
| 7 |
+
* code. The snippets include function templates, common data structures, and
|
| 8 |
+
* useful macros.
|
| 9 |
+
*
|
| 10 |
+
* To utilize these snippets, integrate this file into your IDE's snippet manager
|
| 11 |
+
* or configuration. Feel free to modify and expand the snippets to meet your
|
| 12 |
+
* specific coding requirements.
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
{
|
| 16 |
+
/***************************************************************************************
|
| 17 |
+
* File Template
|
| 18 |
+
**************************************************************************************/
|
| 19 |
+
"Dockerfile File Template": {
|
| 20 |
+
"scope": "dockerfile",
|
| 21 |
+
"prefix": "template",
|
| 22 |
+
"body": [
|
| 23 |
+
"# ##########################################################################",
|
| 24 |
+
"# File: ${TM_FILENAME}",
|
| 25 |
+
"# Author: ${USER}",
|
| 26 |
+
"# Date: ${CURRENT_DATE}-${CURRENT_MONTH_NAME_SHORT}-${CURRENT_YEAR}",
|
| 27 |
+
"# Description: Brief description of the Dockerfile purpose.",
|
| 28 |
+
"# ##########################################################################",
|
| 29 |
+
"",
|
| 30 |
+
"# ##########################################################################",
|
| 31 |
+
"# License",
|
| 32 |
+
"# ##########################################################################",
|
| 33 |
+
"# This Dockerfile is licensed under the MIT License.",
|
| 34 |
+
"# License information should be updated as necessary.",
|
| 35 |
+
"# ##########################################################################",
|
| 36 |
+
"",
|
| 37 |
+
"# ##########################################################################",
|
| 38 |
+
"# Base Image",
|
| 39 |
+
"# ##########################################################################",
|
| 40 |
+
"FROM ",
|
| 41 |
+
"",
|
| 42 |
+
"# ##########################################################################",
|
| 43 |
+
"# Maintainer",
|
| 44 |
+
"# ##########################################################################",
|
| 45 |
+
"LABEL maintainer=\"${USER}\"",
|
| 46 |
+
"",
|
| 47 |
+
"# ##########################################################################",
|
| 48 |
+
"# Install Dependencies",
|
| 49 |
+
"# ##########################################################################",
|
| 50 |
+
"",
|
| 51 |
+
"# ##########################################################################",
|
| 52 |
+
"# Copy Files",
|
| 53 |
+
"# ##########################################################################",
|
| 54 |
+
"",
|
| 55 |
+
"# ##########################################################################",
|
| 56 |
+
"# Set Working Directory",
|
| 57 |
+
"# ##########################################################################",
|
| 58 |
+
"WORKDIR /",
|
| 59 |
+
"",
|
| 60 |
+
"# ##########################################################################",
|
| 61 |
+
"# Expose Port",
|
| 62 |
+
"# ##########################################################################",
|
| 63 |
+
"EXPOSE 8080",
|
| 64 |
+
"",
|
| 65 |
+
"# ##########################################################################",
|
| 66 |
+
"# Command to Run",
|
| 67 |
+
"# ##########################################################################",
|
| 68 |
+
"CMD [\"/bin/bash\"]",
|
| 69 |
+
""
|
| 70 |
+
],
|
| 71 |
+
|
| 72 |
+
"description": "dockerfile file template",
|
| 73 |
+
"isFileTemplate": true
|
| 74 |
+
}
|
| 75 |
+
/***************************************************************************************
|
| 76 |
+
* Debugging
|
| 77 |
+
**************************************************************************************/
|
| 78 |
+
// TODO
|
| 79 |
+
}
|
snippets/go.code-snippets
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @file go.code-snippets
|
| 3 |
+
* @brief Contains custom code snippets for Go
|
| 4 |
+
*
|
| 5 |
+
* This file provides a collection of code snippets designed to facilitate rapid
|
| 6 |
+
* development by offering quick access to commonly used patterns and boilerplate
|
| 7 |
+
* code. The snippets include function templates, common data structures, and
|
| 8 |
+
* useful macros.
|
| 9 |
+
*
|
| 10 |
+
* To utilize these snippets, integrate this file into your IDE's snippet manager
|
| 11 |
+
* or configuration. Feel free to modify and expand the snippets to meet your
|
| 12 |
+
* specific coding requirements.
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
{
|
| 16 |
+
/***************************************************************************************
|
| 17 |
+
* File Template
|
| 18 |
+
**************************************************************************************/
|
| 19 |
+
"Go File Template": {
|
| 20 |
+
"scope": "go",
|
| 21 |
+
"prefix": "template",
|
| 22 |
+
"body": [
|
| 23 |
+
"/***************************************************************************************",
|
| 24 |
+
" * File: ${TM_FILENAME}",
|
| 25 |
+
" * Author: ${USER}",
|
| 26 |
+
" * Date: ${CURRENT_DATE}-${CURRENT_MONTH_NAME_SHORT}-${CURRENT_YEAR}",
|
| 27 |
+
" * Description: Brief description of the file's purpose.",
|
| 28 |
+
" **************************************************************************************/",
|
| 29 |
+
"",
|
| 30 |
+
"/***************************************************************************************",
|
| 31 |
+
" * License",
|
| 32 |
+
" **************************************************************************************/",
|
| 33 |
+
"/*",
|
| 34 |
+
" * This file is licensed under the MIT License.",
|
| 35 |
+
" * License information should be updated as necessary.",
|
| 36 |
+
" */",
|
| 37 |
+
"",
|
| 38 |
+
"/***************************************************************************************",
|
| 39 |
+
" * Imports",
|
| 40 |
+
" **************************************************************************************/",
|
| 41 |
+
"",
|
| 42 |
+
"/***************************************************************************************",
|
| 43 |
+
" * Constants",
|
| 44 |
+
" **************************************************************************************/",
|
| 45 |
+
"",
|
| 46 |
+
"/***************************************************************************************",
|
| 47 |
+
" * Type Declarations",
|
| 48 |
+
" **************************************************************************************/",
|
| 49 |
+
"",
|
| 50 |
+
"/***************************************************************************************",
|
| 51 |
+
" * Functions",
|
| 52 |
+
" **************************************************************************************/",
|
| 53 |
+
""
|
| 54 |
+
],
|
| 55 |
+
"description": "go file template",
|
| 56 |
+
"isFileTemplate": true
|
| 57 |
+
}
|
| 58 |
+
/***************************************************************************************
|
| 59 |
+
* Debugging
|
| 60 |
+
**************************************************************************************/
|
| 61 |
+
// TODO
|
| 62 |
+
}
|
snippets/java.code-snippets
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @file java.code-snippets
|
| 3 |
+
* @brief Contains custom code snippets for Java
|
| 4 |
+
*
|
| 5 |
+
* This file provides a collection of code snippets designed to facilitate rapid
|
| 6 |
+
* development by offering quick access to commonly used patterns and boilerplate
|
| 7 |
+
* code. The snippets include function templates, common data structures, and
|
| 8 |
+
* useful macros.
|
| 9 |
+
*
|
| 10 |
+
* To utilize these snippets, integrate this file into your IDE's snippet manager
|
| 11 |
+
* or configuration. Feel free to modify and expand the snippets to meet your
|
| 12 |
+
* specific coding requirements.
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
{
|
| 16 |
+
/***************************************************************************************
|
| 17 |
+
* File Template
|
| 18 |
+
**************************************************************************************/
|
| 19 |
+
"Java File Template": {
|
| 20 |
+
"scope": "java",
|
| 21 |
+
"prefix": "template",
|
| 22 |
+
"body": [
|
| 23 |
+
"/***************************************************************************************",
|
| 24 |
+
" * File: ${TM_FILENAME}",
|
| 25 |
+
" * Author: ${USER}",
|
| 26 |
+
" * Date: ${CURRENT_DATE}-${CURRENT_MONTH_NAME_SHORT}-${CURRENT_YEAR}",
|
| 27 |
+
" * Description: Brief description of the file's purpose.",
|
| 28 |
+
" **************************************************************************************/",
|
| 29 |
+
"",
|
| 30 |
+
"/***************************************************************************************",
|
| 31 |
+
" * License",
|
| 32 |
+
" **************************************************************************************/",
|
| 33 |
+
"/*",
|
| 34 |
+
" * This file is licensed under the MIT License.",
|
| 35 |
+
" * License information should be updated as necessary.",
|
| 36 |
+
" */",
|
| 37 |
+
"",
|
| 38 |
+
"/***************************************************************************************",
|
| 39 |
+
" * Imports",
|
| 40 |
+
" **************************************************************************************/",
|
| 41 |
+
"",
|
| 42 |
+
"/***************************************************************************************",
|
| 43 |
+
" * Class Declaration",
|
| 44 |
+
" **************************************************************************************/",
|
| 45 |
+
"public class ${TM_FILENAME_BASE/(.*)/${1:/upcase}/} {",
|
| 46 |
+
"",
|
| 47 |
+
"}",
|
| 48 |
+
""
|
| 49 |
+
],
|
| 50 |
+
"description": "java file template",
|
| 51 |
+
"isFileTemplate": true
|
| 52 |
+
}
|
| 53 |
+
/***************************************************************************************
|
| 54 |
+
* Debugging
|
| 55 |
+
**************************************************************************************/
|
| 56 |
+
// TODO
|
| 57 |
+
}
|
snippets/js.code-snippets
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @file js.code-snippets
|
| 3 |
+
* @brief Contains custom code snippets for Javascript
|
| 4 |
+
*
|
| 5 |
+
* This file provides a collection of code snippets designed to facilitate rapid
|
| 6 |
+
* development by offering quick access to commonly used patterns and boilerplate
|
| 7 |
+
* code. The snippets include function templates, common data structures, and
|
| 8 |
+
* useful macros.
|
| 9 |
+
*
|
| 10 |
+
* To utilize these snippets, integrate this file into your IDE's snippet manager
|
| 11 |
+
* or configuration. Feel free to modify and expand the snippets to meet your
|
| 12 |
+
* specific coding requirements.
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
{
|
| 16 |
+
/***************************************************************************************
|
| 17 |
+
* File Template
|
| 18 |
+
**************************************************************************************/
|
| 19 |
+
"JavaScript File Template": {
|
| 20 |
+
"scope": "javascript",
|
| 21 |
+
"prefix": "template",
|
| 22 |
+
"body": [
|
| 23 |
+
"/***************************************************************************************",
|
| 24 |
+
" * File: ${TM_FILENAME}",
|
| 25 |
+
" * Author: ${USER}",
|
| 26 |
+
" * Date: ${CURRENT_DATE}-${CURRENT_MONTH_NAME_SHORT}-${CURRENT_YEAR}",
|
| 27 |
+
" * Description: Brief description of the file's purpose.",
|
| 28 |
+
" **************************************************************************************/",
|
| 29 |
+
"",
|
| 30 |
+
"/***************************************************************************************",
|
| 31 |
+
" * License",
|
| 32 |
+
" **************************************************************************************/",
|
| 33 |
+
"/*",
|
| 34 |
+
" * This file is licensed under the MIT License.",
|
| 35 |
+
" * License information should be updated as necessary.",
|
| 36 |
+
" */",
|
| 37 |
+
"",
|
| 38 |
+
"/***************************************************************************************",
|
| 39 |
+
" * Imports",
|
| 40 |
+
" **************************************************************************************/",
|
| 41 |
+
"",
|
| 42 |
+
"/***************************************************************************************",
|
| 43 |
+
" * Constants",
|
| 44 |
+
" **************************************************************************************/",
|
| 45 |
+
"",
|
| 46 |
+
"/***************************************************************************************",
|
| 47 |
+
" * Function Declarations",
|
| 48 |
+
" **************************************************************************************/",
|
| 49 |
+
"",
|
| 50 |
+
"/***************************************************************************************",
|
| 51 |
+
" * Main Code",
|
| 52 |
+
" **************************************************************************************/",
|
| 53 |
+
""
|
| 54 |
+
],
|
| 55 |
+
"description": "JavaScript file template",
|
| 56 |
+
"isFileTemplate": true
|
| 57 |
+
},
|
| 58 |
+
|
| 59 |
+
/***************************************************************************************
|
| 60 |
+
* Debugging
|
| 61 |
+
**************************************************************************************/
|
| 62 |
+
"Log Hex Value": {
|
| 63 |
+
"scope": "javascript",
|
| 64 |
+
"prefix": "hlog",
|
| 65 |
+
// FIXME
|
| 66 |
+
"body": [
|
| 67 |
+
"console.log('${TM_FILENAME}:%d', 0 ${BLOCK_COMMENT_START} lineNumber ${BLOCK_COMMENT_END}, $1); ${LINE_COMMENT} REMOVE"
|
| 68 |
+
],
|
| 69 |
+
"description": "Log hex value to console"
|
| 70 |
+
},
|
| 71 |
+
"Log String Value": {
|
| 72 |
+
"scope": "javascript",
|
| 73 |
+
"prefix": "slog",
|
| 74 |
+
// FIXME
|
| 75 |
+
"body": [
|
| 76 |
+
"console.log('${TM_FILENAME}:%d', 0 ${BLOCK_COMMENT_START} lineNumber ${BLOCK_COMMENT_END}, $1); ${LINE_COMMENT} REMOVE"
|
| 77 |
+
],
|
| 78 |
+
"description": "Log string value to console"
|
| 79 |
+
},
|
| 80 |
+
"Log Function Name": {
|
| 81 |
+
"scope": "javascript",
|
| 82 |
+
"prefix": "log0",
|
| 83 |
+
// FIXME
|
| 84 |
+
"body": [
|
| 85 |
+
"console.log('${TM_FILENAME}:%d', 0 ${BLOCK_COMMENT_START} lineNumber ${BLOCK_COMMENT_END}); ${LINE_COMMENT} REMOVE"
|
| 86 |
+
],
|
| 87 |
+
"description": "Log function name with line number to console"
|
| 88 |
+
},
|
| 89 |
+
"Log Variable Value": {
|
| 90 |
+
"scope": "javascript",
|
| 91 |
+
"prefix": "log1",
|
| 92 |
+
// FIXME
|
| 93 |
+
"body": [
|
| 94 |
+
"console.log('${TM_FILENAME}:%d', 0 ${BLOCK_COMMENT_START} lineNumber ${BLOCK_COMMENT_END}, $1); ${LINE_COMMENT} REMOVE"
|
| 95 |
+
],
|
| 96 |
+
"description": "Log variable value to console"
|
| 97 |
+
}
|
| 98 |
+
}
|
snippets/make.code-snippets
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @file make.code-snippets
|
| 3 |
+
* @brief Contains custom code snippets for Makefile
|
| 4 |
+
*
|
| 5 |
+
* This file provides a collection of code snippets designed to facilitate rapid
|
| 6 |
+
* development by offering quick access to commonly used patterns and boilerplate
|
| 7 |
+
* code. The snippets include function templates, common data structures, and
|
| 8 |
+
* useful macros.
|
| 9 |
+
*
|
| 10 |
+
* To utilize these snippets, integrate this file into your IDE's snippet manager
|
| 11 |
+
* or configuration. Feel free to modify and expand the snippets to meet your
|
| 12 |
+
* specific coding requirements.
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
{
|
| 16 |
+
/***************************************************************************************
|
| 17 |
+
* File Template
|
| 18 |
+
**************************************************************************************/
|
| 19 |
+
"Makefile File Template": {
|
| 20 |
+
"scope": "makefile",
|
| 21 |
+
"prefix": "template",
|
| 22 |
+
"body": [
|
| 23 |
+
"#***************************************************************************************",
|
| 24 |
+
"# * File: ${TM_FILENAME}",
|
| 25 |
+
"# * Author: ${USER}",
|
| 26 |
+
"# * Date: ${CURRENT_DATE}-${CURRENT_MONTH_NAME_SHORT}-${CURRENT_YEAR}",
|
| 27 |
+
"# * Description: Brief description of the Makefile's purpose.",
|
| 28 |
+
"# **************************************************************************************/",
|
| 29 |
+
"",
|
| 30 |
+
"#***************************************************************************************",
|
| 31 |
+
"# * License",
|
| 32 |
+
"# **************************************************************************************/",
|
| 33 |
+
"# This file is licensed under the MIT License.",
|
| 34 |
+
"# License information should be updated as necessary.",
|
| 35 |
+
"",
|
| 36 |
+
"#***************************************************************************************",
|
| 37 |
+
"# * Variables",
|
| 38 |
+
"# **************************************************************************************/",
|
| 39 |
+
"",
|
| 40 |
+
"#***************************************************************************************",
|
| 41 |
+
"# * Targets",
|
| 42 |
+
"# **************************************************************************************/",
|
| 43 |
+
"",
|
| 44 |
+
"# Phony targets",
|
| 45 |
+
".PHONY: all clean test",
|
| 46 |
+
"",
|
| 47 |
+
"# Default target",
|
| 48 |
+
"all: target1 target2",
|
| 49 |
+
"",
|
| 50 |
+
"# Clean up build artifacts",
|
| 51 |
+
"clean:",
|
| 52 |
+
"\t@echo 'Cleaning up...'",
|
| 53 |
+
"\trm -rf",
|
| 54 |
+
"",
|
| 55 |
+
"# Run tests",
|
| 56 |
+
"test:",
|
| 57 |
+
"\t@echo 'Running tests...'",
|
| 58 |
+
""
|
| 59 |
+
],
|
| 60 |
+
"description": "makefile file template",
|
| 61 |
+
"isFileTemplate": true
|
| 62 |
+
}
|
| 63 |
+
/***************************************************************************************
|
| 64 |
+
* Debugging
|
| 65 |
+
**************************************************************************************/
|
| 66 |
+
// TODO
|
| 67 |
+
}
|
snippets/markdown.code-snippets
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @file markdown.code-snippets
|
| 3 |
+
* @brief Contains custom code snippets for Markdown
|
| 4 |
+
*
|
| 5 |
+
* This file provides a collection of code snippets designed to facilitate rapid
|
| 6 |
+
* development by offering quick access to commonly used patterns and boilerplate
|
| 7 |
+
* code. The snippets include function templates, common data structures, and
|
| 8 |
+
* useful macros.
|
| 9 |
+
*
|
| 10 |
+
* To utilize these snippets, integrate this file into your IDE's snippet manager
|
| 11 |
+
* or configuration. Feel free to modify and expand the snippets to meet your
|
| 12 |
+
* specific coding requirements.
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
{
|
| 16 |
+
/***************************************************************************************
|
| 17 |
+
* File Template
|
| 18 |
+
**************************************************************************************/
|
| 19 |
+
"Markdown File Template": {
|
| 20 |
+
"scope": "markdown",
|
| 21 |
+
"prefix": "template",
|
| 22 |
+
"body": [
|
| 23 |
+
"<!-- *************************************************************************************",
|
| 24 |
+
"# * File: ${TM_FILENAME}",
|
| 25 |
+
"# * Author: ${USER}",
|
| 26 |
+
"# * Date: ${CURRENT_DATE}-${CURRENT_MONTH_NAME_SHORT}-${CURRENT_YEAR}",
|
| 27 |
+
"# * Description: Brief description of the document's purpose.",
|
| 28 |
+
"# ************************************************************************************ -->",
|
| 29 |
+
"",
|
| 30 |
+
"<!-- *************************************************************************************",
|
| 31 |
+
"# * License",
|
| 32 |
+
"# ************************************************************************************ -->",
|
| 33 |
+
"<!--",
|
| 34 |
+
"This document is licensed under the MIT License.",
|
| 35 |
+
"License information should be updated as necessary.",
|
| 36 |
+
"-->",
|
| 37 |
+
"",
|
| 38 |
+
"<!-- *************************************************************************************",
|
| 39 |
+
"# * Project",
|
| 40 |
+
"# ************************************************************************************ -->",
|
| 41 |
+
"# ProjectTitle",
|
| 42 |
+
"",
|
| 43 |
+
"<!-- *************************************************************************************",
|
| 44 |
+
"# * Table of Contents",
|
| 45 |
+
"# ************************************************************************************ -->",
|
| 46 |
+
"",
|
| 47 |
+
"* [Introduction](#introduction)",
|
| 48 |
+
"* [Requirements](#requirements)",
|
| 49 |
+
"* [Usage](#usage)",
|
| 50 |
+
"* [Contributing](#contributing)",
|
| 51 |
+
"* [License](#license)",
|
| 52 |
+
"",
|
| 53 |
+
"<!-- ******************************************************************************** -->",
|
| 54 |
+
"",
|
| 55 |
+
"# Introduction",
|
| 56 |
+
"",
|
| 57 |
+
"# Requirements",
|
| 58 |
+
"",
|
| 59 |
+
"# Usage",
|
| 60 |
+
"",
|
| 61 |
+
"# Contributing",
|
| 62 |
+
"",
|
| 63 |
+
"# License",
|
| 64 |
+
""
|
| 65 |
+
],
|
| 66 |
+
"description": "markdown file template",
|
| 67 |
+
"isFileTemplate": true
|
| 68 |
+
}
|
| 69 |
+
/***************************************************************************************
|
| 70 |
+
* Debugging
|
| 71 |
+
**************************************************************************************/
|
| 72 |
+
// TODO
|
| 73 |
+
}
|
snippets/perl.code-snippets
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @file perl.code-snippets
|
| 3 |
+
* @brief Contains custom code snippets for Perl
|
| 4 |
+
*
|
| 5 |
+
* This file provides a collection of code snippets designed to facilitate rapid
|
| 6 |
+
* development by offering quick access to commonly used patterns and boilerplate
|
| 7 |
+
* code. The snippets include function templates, common data structures, and
|
| 8 |
+
* useful macros.
|
| 9 |
+
*
|
| 10 |
+
* To utilize these snippets, integrate this file into your IDE's snippet manager
|
| 11 |
+
* or configuration. Feel free to modify and expand the snippets to meet your
|
| 12 |
+
* specific coding requirements.
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
{
|
| 16 |
+
/***************************************************************************************
|
| 17 |
+
* File Template
|
| 18 |
+
**************************************************************************************/
|
| 19 |
+
"Perl File Template": {
|
| 20 |
+
"scope": "perl, perl6",
|
| 21 |
+
"prefix": "template",
|
| 22 |
+
"body": [
|
| 23 |
+
"#***************************************************************************************",
|
| 24 |
+
"# * File: ${TM_FILENAME}",
|
| 25 |
+
"# * Author: ${USER}",
|
| 26 |
+
"# * Date: ${CURRENT_DATE}-${CURRENT_MONTH_NAME_SHORT}-${CURRENT_YEAR}",
|
| 27 |
+
"# * Description: Brief description of the script's purpose.",
|
| 28 |
+
"# **************************************************************************************/",
|
| 29 |
+
"",
|
| 30 |
+
"#***************************************************************************************",
|
| 31 |
+
"# * License",
|
| 32 |
+
"# **************************************************************************************/",
|
| 33 |
+
"#",
|
| 34 |
+
"# This file is licensed under the MIT License.",
|
| 35 |
+
"# License information should be updated as necessary.",
|
| 36 |
+
"#",
|
| 37 |
+
"",
|
| 38 |
+
"#***************************************************************************************",
|
| 39 |
+
"# * Use Statements",
|
| 40 |
+
"# **************************************************************************************/",
|
| 41 |
+
"use strict;",
|
| 42 |
+
"use warnings;",
|
| 43 |
+
"",
|
| 44 |
+
"#***************************************************************************************",
|
| 45 |
+
"# * Constants",
|
| 46 |
+
"# **************************************************************************************/",
|
| 47 |
+
"",
|
| 48 |
+
"#***************************************************************************************",
|
| 49 |
+
"# * Subroutines",
|
| 50 |
+
"# **************************************************************************************/",
|
| 51 |
+
"",
|
| 52 |
+
"#***************************************************************************************",
|
| 53 |
+
"# * Main Script Logic",
|
| 54 |
+
"# **************************************************************************************/",
|
| 55 |
+
"",
|
| 56 |
+
"#***************************************************************************************",
|
| 57 |
+
"# * End of Script",
|
| 58 |
+
"# **************************************************************************************/"
|
| 59 |
+
],
|
| 60 |
+
"description": "perl file template",
|
| 61 |
+
"isFileTemplate": true
|
| 62 |
+
}
|
| 63 |
+
/***************************************************************************************
|
| 64 |
+
* Debugging
|
| 65 |
+
**************************************************************************************/
|
| 66 |
+
// TODO
|
| 67 |
+
}
|
snippets/php.code-snippets
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @file php.code-snippets
|
| 3 |
+
* @brief Contains custom code snippets for PHP
|
| 4 |
+
*
|
| 5 |
+
* This file provides a collection of code snippets designed to facilitate rapid
|
| 6 |
+
* development by offering quick access to commonly used patterns and boilerplate
|
| 7 |
+
* code. The snippets include function templates, common data structures, and
|
| 8 |
+
* useful macros.
|
| 9 |
+
*
|
| 10 |
+
* To utilize these snippets, integrate this file into your IDE's snippet manager
|
| 11 |
+
* or configuration. Feel free to modify and expand the snippets to meet your
|
| 12 |
+
* specific coding requirements.
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
{
|
| 16 |
+
/***************************************************************************************
|
| 17 |
+
* File Template
|
| 18 |
+
**************************************************************************************/
|
| 19 |
+
"PHP File Template": {
|
| 20 |
+
"scope": "php",
|
| 21 |
+
"prefix": "template",
|
| 22 |
+
"body": [
|
| 23 |
+
"<?php",
|
| 24 |
+
"",
|
| 25 |
+
"/***************************************************************************************",
|
| 26 |
+
" * File: ${TM_FILENAME}",
|
| 27 |
+
" * Author: ${USER}",
|
| 28 |
+
" * Date: ${CURRENT_DATE}-${CURRENT_MONTH_NAME_SHORT}-${CURRENT_YEAR}",
|
| 29 |
+
" * Description: Brief description of the file's purpose.",
|
| 30 |
+
" **************************************************************************************/",
|
| 31 |
+
"",
|
| 32 |
+
"/***************************************************************************************",
|
| 33 |
+
" * License",
|
| 34 |
+
" **************************************************************************************/",
|
| 35 |
+
"/*",
|
| 36 |
+
" * This file is licensed under the MIT License.",
|
| 37 |
+
" * License information should be updated as necessary.",
|
| 38 |
+
" */",
|
| 39 |
+
"",
|
| 40 |
+
"/***************************************************************************************",
|
| 41 |
+
" * Includes",
|
| 42 |
+
" **************************************************************************************/",
|
| 43 |
+
"",
|
| 44 |
+
"/***************************************************************************************",
|
| 45 |
+
" * Constants",
|
| 46 |
+
" **************************************************************************************/",
|
| 47 |
+
"",
|
| 48 |
+
"/***************************************************************************************",
|
| 49 |
+
" * Functions",
|
| 50 |
+
" **************************************************************************************/",
|
| 51 |
+
"",
|
| 52 |
+
"/***************************************************************************************",
|
| 53 |
+
" * Main Script Logic",
|
| 54 |
+
" **************************************************************************************/",
|
| 55 |
+
""
|
| 56 |
+
],
|
| 57 |
+
"description": "php file template",
|
| 58 |
+
"isFileTemplate": true
|
| 59 |
+
}
|
| 60 |
+
/***************************************************************************************
|
| 61 |
+
* Debugging
|
| 62 |
+
**************************************************************************************/
|
| 63 |
+
// TODO
|
| 64 |
+
}
|
snippets/powershell.code-snippets
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @file powershell.code-snippets
|
| 3 |
+
* @brief Contains custom code snippets for Powershell
|
| 4 |
+
*
|
| 5 |
+
* This file provides a collection of code snippets designed to facilitate rapid
|
| 6 |
+
* development by offering quick access to commonly used patterns and boilerplate
|
| 7 |
+
* code. The snippets include function templates, common data structures, and
|
| 8 |
+
* useful macros.
|
| 9 |
+
*
|
| 10 |
+
* To utilize these snippets, integrate this file into your IDE's snippet manager
|
| 11 |
+
* or configuration. Feel free to modify and expand the snippets to meet your
|
| 12 |
+
* specific coding requirements.
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
{
|
| 16 |
+
/***************************************************************************************
|
| 17 |
+
* File Template
|
| 18 |
+
**************************************************************************************/
|
| 19 |
+
"Powershell File Template": {
|
| 20 |
+
"scope": "powershell",
|
| 21 |
+
"prefix": "template",
|
| 22 |
+
"body": [
|
| 23 |
+
"<#***************************************************************************************",
|
| 24 |
+
" * File: ${TM_FILENAME}",
|
| 25 |
+
" * Author: ${USER}",
|
| 26 |
+
" * Date: ${CURRENT_DATE}-${CURRENT_MONTH_NAME_SHORT}-${CURRENT_YEAR}",
|
| 27 |
+
" * Description: Brief description of the script's purpose.",
|
| 28 |
+
" **************************************************************************************#>",
|
| 29 |
+
"",
|
| 30 |
+
"<#***************************************************************************************",
|
| 31 |
+
" * License",
|
| 32 |
+
" **************************************************************************************#>",
|
| 33 |
+
"<#",
|
| 34 |
+
" * This file is licensed under the MIT License.",
|
| 35 |
+
" * License information should be updated as necessary.",
|
| 36 |
+
" -->",
|
| 37 |
+
"",
|
| 38 |
+
"<#***************************************************************************************",
|
| 39 |
+
" * Parameters",
|
| 40 |
+
" **************************************************************************************#>",
|
| 41 |
+
"",
|
| 42 |
+
"<#***************************************************************************************",
|
| 43 |
+
" * Functions",
|
| 44 |
+
" **************************************************************************************#>",
|
| 45 |
+
"",
|
| 46 |
+
"<#***************************************************************************************",
|
| 47 |
+
" * Script Logic",
|
| 48 |
+
" **************************************************************************************#>",
|
| 49 |
+
"",
|
| 50 |
+
"<#***************************************************************************************",
|
| 51 |
+
" * End of Script",
|
| 52 |
+
" **************************************************************************************#>"
|
| 53 |
+
],
|
| 54 |
+
"description": "powershell file template",
|
| 55 |
+
"isFileTemplate": true
|
| 56 |
+
}
|
| 57 |
+
/***************************************************************************************
|
| 58 |
+
* Debugging
|
| 59 |
+
**************************************************************************************/
|
| 60 |
+
// TODO
|
| 61 |
+
}
|
snippets/python.code-snippets
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @file python.code-snippets
|
| 3 |
+
* @brief Contains custom code snippets for Python
|
| 4 |
+
*
|
| 5 |
+
* This file provides a collection of code snippets designed to facilitate rapid
|
| 6 |
+
* development by offering quick access to commonly used patterns and boilerplate
|
| 7 |
+
* code. The snippets include function templates, common data structures, and
|
| 8 |
+
* useful macros.
|
| 9 |
+
*
|
| 10 |
+
* To utilize these snippets, integrate this file into your IDE's snippet manager
|
| 11 |
+
* or configuration. Feel free to modify and expand the snippets to meet your
|
| 12 |
+
* specific coding requirements.
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
{
|
| 16 |
+
/***************************************************************************************
|
| 17 |
+
* File Template
|
| 18 |
+
**************************************************************************************/
|
| 19 |
+
"Python File Template": {
|
| 20 |
+
"scope": "python",
|
| 21 |
+
"prefix": "template",
|
| 22 |
+
"body": [
|
| 23 |
+
"# ***************************************************************************************",
|
| 24 |
+
"# File: ${TM_FILENAME}",
|
| 25 |
+
"# Author: ${USER}",
|
| 26 |
+
"# Date: ${CURRENT_DATE}-${CURRENT_MONTH_NAME_SHORT}-${CURRENT_YEAR}",
|
| 27 |
+
"# Description: Brief description of the file's purpose.",
|
| 28 |
+
"# **************************************************************************************/",
|
| 29 |
+
"",
|
| 30 |
+
"# ***************************************************************************************",
|
| 31 |
+
"# License",
|
| 32 |
+
"# **************************************************************************************/",
|
| 33 |
+
"\"\"\"",
|
| 34 |
+
"# This file is licensed under the MIT License.",
|
| 35 |
+
"# License information should be updated as necessary.",
|
| 36 |
+
"\"\"\"",
|
| 37 |
+
"",
|
| 38 |
+
"# ***************************************************************************************",
|
| 39 |
+
"# Imports",
|
| 40 |
+
"# **************************************************************************************/",
|
| 41 |
+
"",
|
| 42 |
+
"# ***************************************************************************************",
|
| 43 |
+
"# Constants",
|
| 44 |
+
"# **************************************************************************************/",
|
| 45 |
+
"",
|
| 46 |
+
"# ***************************************************************************************",
|
| 47 |
+
"# Function Declarations",
|
| 48 |
+
"# **************************************************************************************/",
|
| 49 |
+
"",
|
| 50 |
+
"# ***************************************************************************************",
|
| 51 |
+
"# Main Code",
|
| 52 |
+
"# **************************************************************************************/",
|
| 53 |
+
""
|
| 54 |
+
],
|
| 55 |
+
"description": "Python file template",
|
| 56 |
+
"isFileTemplate": true
|
| 57 |
+
},
|
| 58 |
+
|
| 59 |
+
/***************************************************************************************
|
| 60 |
+
* Debugging
|
| 61 |
+
**************************************************************************************/
|
| 62 |
+
|
| 63 |
+
"Log Hex Value": {
|
| 64 |
+
"scope": "python",
|
| 65 |
+
"prefix": "hlog",
|
| 66 |
+
// FIXME
|
| 67 |
+
"body": [
|
| 68 |
+
"print(f'{\"${TM_FILENAME}\"}:{0} $1: 0x{$1:02X}') ${LINE_COMMENT} REMOVE"
|
| 69 |
+
],
|
| 70 |
+
"description": "Log hex value to console"
|
| 71 |
+
},
|
| 72 |
+
"Log String Value": {
|
| 73 |
+
"scope": "python",
|
| 74 |
+
"prefix": "slog",
|
| 75 |
+
// FIXME
|
| 76 |
+
"body": [
|
| 77 |
+
"print(f'{\"${TM_FILENAME}\"}:{0} $1: {$1}') ${LINE_COMMENT} REMOVE"
|
| 78 |
+
],
|
| 79 |
+
"description": "Log string value to console"
|
| 80 |
+
},
|
| 81 |
+
"Log Function Name": {
|
| 82 |
+
"scope": "python",
|
| 83 |
+
"prefix": "log0",
|
| 84 |
+
// FIXME
|
| 85 |
+
"body": ["print(f'{\"${TM_FILENAME}\"}:{0} ') ${LINE_COMMENT} REMOVE"],
|
| 86 |
+
"description": "Log function name with line number to console"
|
| 87 |
+
},
|
| 88 |
+
"Log Variable Value": {
|
| 89 |
+
"scope": "python",
|
| 90 |
+
"prefix": "log1",
|
| 91 |
+
// FIXME
|
| 92 |
+
"body": [
|
| 93 |
+
"print(f'{\"${TM_FILENAME}\"}:{0} $1 : {$1}') ${LINE_COMMENT} REMOVE"
|
| 94 |
+
],
|
| 95 |
+
"description": "Log variable value to console"
|
| 96 |
+
}
|
| 97 |
+
}
|
snippets/ruby.code-snippets
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @file ruby.code-snippets
|
| 3 |
+
* @brief Contains custom code snippets for Ruby
|
| 4 |
+
*
|
| 5 |
+
* This file provides a collection of code snippets designed to facilitate rapid
|
| 6 |
+
* development by offering quick access to commonly used patterns and boilerplate
|
| 7 |
+
* code. The snippets include function templates, common data structures, and
|
| 8 |
+
* useful macros.
|
| 9 |
+
*
|
| 10 |
+
* To utilize these snippets, integrate this file into your IDE's snippet manager
|
| 11 |
+
* or configuration. Feel free to modify and expand the snippets to meet your
|
| 12 |
+
* specific coding requirements.
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
{
|
| 16 |
+
/***************************************************************************************
|
| 17 |
+
* File Template
|
| 18 |
+
**************************************************************************************/
|
| 19 |
+
"Ruby File Template": {
|
| 20 |
+
"scope": "ruby",
|
| 21 |
+
"prefix": "template",
|
| 22 |
+
"body": [
|
| 23 |
+
"# ***************************************************************************************",
|
| 24 |
+
"# * File: ${TM_FILENAME}",
|
| 25 |
+
"# * Author: ${USER}",
|
| 26 |
+
"# * Date: ${CURRENT_DATE}-${CURRENT_MONTH_NAME_SHORT}-${CURRENT_YEAR}",
|
| 27 |
+
"# * Description: Brief description of the file's purpose.",
|
| 28 |
+
"# **************************************************************************************/",
|
| 29 |
+
"",
|
| 30 |
+
"# ***************************************************************************************",
|
| 31 |
+
"# * License",
|
| 32 |
+
"# **************************************************************************************/",
|
| 33 |
+
"#",
|
| 34 |
+
"# This file is licensed under the MIT License.",
|
| 35 |
+
"# License information should be updated as necessary.",
|
| 36 |
+
"#",
|
| 37 |
+
"",
|
| 38 |
+
"# ***************************************************************************************",
|
| 39 |
+
"# * Requires",
|
| 40 |
+
"# **************************************************************************************/",
|
| 41 |
+
"",
|
| 42 |
+
"# ***************************************************************************************",
|
| 43 |
+
"# * Constants",
|
| 44 |
+
"# **************************************************************************************/",
|
| 45 |
+
"",
|
| 46 |
+
"# ***************************************************************************************",
|
| 47 |
+
"# * Classes",
|
| 48 |
+
"# **************************************************************************************/",
|
| 49 |
+
"",
|
| 50 |
+
"# ***************************************************************************************",
|
| 51 |
+
"# * Main Script Logic",
|
| 52 |
+
"# **************************************************************************************/",
|
| 53 |
+
""
|
| 54 |
+
],
|
| 55 |
+
"description": "ruby file template",
|
| 56 |
+
"isFileTemplate": true
|
| 57 |
+
}
|
| 58 |
+
/***************************************************************************************
|
| 59 |
+
* Debugging
|
| 60 |
+
**************************************************************************************/
|
| 61 |
+
// TODO
|
| 62 |
+
}
|
snippets/rust.code-snippets
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @file rust.code-snippets
|
| 3 |
+
* @brief Contains custom code snippets for Rust
|
| 4 |
+
*
|
| 5 |
+
* This file provides a collection of code snippets designed to facilitate rapid
|
| 6 |
+
* development by offering quick access to commonly used patterns and boilerplate
|
| 7 |
+
* code. The snippets include function templates, common data structures, and
|
| 8 |
+
* useful macros.
|
| 9 |
+
*
|
| 10 |
+
* To utilize these snippets, integrate this file into your IDE's snippet manager
|
| 11 |
+
* or configuration. Feel free to modify and expand the snippets to meet your
|
| 12 |
+
* specific coding requirements.
|
| 13 |
+
*/
|
| 14 |
+
{
|
| 15 |
+
/***************************************************************************************
|
| 16 |
+
* File Template
|
| 17 |
+
**************************************************************************************/
|
| 18 |
+
"Rust File Template": {
|
| 19 |
+
"scope": "rust",
|
| 20 |
+
"prefix": "template",
|
| 21 |
+
"body": [
|
| 22 |
+
"/***************************************************************************************",
|
| 23 |
+
" * File: ${TM_FILENAME}",
|
| 24 |
+
" * Author: ${USER}",
|
| 25 |
+
" * Date: ${CURRENT_DATE}-${CURRENT_MONTH_NAME_SHORT}-${CURRENT_YEAR}",
|
| 26 |
+
" * Description: Brief description of the file's purpose.",
|
| 27 |
+
" **************************************************************************************/",
|
| 28 |
+
"",
|
| 29 |
+
"/***************************************************************************************",
|
| 30 |
+
" * License",
|
| 31 |
+
" **************************************************************************************/",
|
| 32 |
+
"/*",
|
| 33 |
+
" * This file is licensed under the MIT License.",
|
| 34 |
+
" * License information should be updated as necessary.",
|
| 35 |
+
" */",
|
| 36 |
+
"",
|
| 37 |
+
"/***************************************************************************************",
|
| 38 |
+
" * Crates",
|
| 39 |
+
" **************************************************************************************/",
|
| 40 |
+
"",
|
| 41 |
+
"/***************************************************************************************",
|
| 42 |
+
" * Modules",
|
| 43 |
+
" **************************************************************************************/",
|
| 44 |
+
"",
|
| 45 |
+
"/***************************************************************************************",
|
| 46 |
+
" * Structs",
|
| 47 |
+
" **************************************************************************************/",
|
| 48 |
+
"",
|
| 49 |
+
"/***************************************************************************************",
|
| 50 |
+
" * Enums",
|
| 51 |
+
" **************************************************************************************/",
|
| 52 |
+
"",
|
| 53 |
+
"/***************************************************************************************",
|
| 54 |
+
" * Functions",
|
| 55 |
+
" **************************************************************************************/",
|
| 56 |
+
""
|
| 57 |
+
],
|
| 58 |
+
"description": "rust file template",
|
| 59 |
+
"isFileTemplate": true
|
| 60 |
+
}
|
| 61 |
+
/***************************************************************************************
|
| 62 |
+
* Debugging
|
| 63 |
+
**************************************************************************************/
|
| 64 |
+
// TODO
|
| 65 |
+
}
|
snippets/sh.code-snippets
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @file sh.code-snippets
|
| 3 |
+
* @brief Contains custom code snippets for Shellscript
|
| 4 |
+
*
|
| 5 |
+
* This file provides a collection of code snippets designed to facilitate rapid
|
| 6 |
+
* development by offering quick access to commonly used patterns and boilerplate
|
| 7 |
+
* code. The snippets include function templates, common data structures, and
|
| 8 |
+
* useful macros.
|
| 9 |
+
*
|
| 10 |
+
* To utilize these snippets, integrate this file into your IDE's snippet manager
|
| 11 |
+
* or configuration. Feel free to modify and expand the snippets to meet your
|
| 12 |
+
* specific coding requirements.
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
{
|
| 16 |
+
/***************************************************************************************
|
| 17 |
+
* File Template
|
| 18 |
+
**************************************************************************************/
|
| 19 |
+
"Shell Script File Template": {
|
| 20 |
+
"scope": "shellscript",
|
| 21 |
+
"prefix": "template",
|
| 22 |
+
"body": [
|
| 23 |
+
"#!/bin/sh",
|
| 24 |
+
"",
|
| 25 |
+
"##########################################################################################",
|
| 26 |
+
"# File: ${TM_FILENAME}",
|
| 27 |
+
"# Author: ${USER}",
|
| 28 |
+
"# Date: ${CURRENT_DATE}-${CURRENT_MONTH_NAME_SHORT}-${CURRENT_YEAR}",
|
| 29 |
+
"# Description: Brief description of the script purpose.",
|
| 30 |
+
"##########################################################################################",
|
| 31 |
+
"",
|
| 32 |
+
"##########################################################################################",
|
| 33 |
+
"# License",
|
| 34 |
+
"##########################################################################################",
|
| 35 |
+
"# This script is licensed under the MIT License.",
|
| 36 |
+
"# License information should be updated as necessary.",
|
| 37 |
+
"",
|
| 38 |
+
"##########################################################################################",
|
| 39 |
+
"# Constants",
|
| 40 |
+
"##########################################################################################",
|
| 41 |
+
"",
|
| 42 |
+
"##########################################################################################",
|
| 43 |
+
"# Functions",
|
| 44 |
+
"##########################################################################################",
|
| 45 |
+
"",
|
| 46 |
+
"##########################################################################################",
|
| 47 |
+
"# Main Script",
|
| 48 |
+
"##########################################################################################",
|
| 49 |
+
"",
|
| 50 |
+
"# Main script logic goes here",
|
| 51 |
+
""
|
| 52 |
+
],
|
| 53 |
+
"description": "Shell script file template",
|
| 54 |
+
"isFileTemplate": true
|
| 55 |
+
},
|
| 56 |
+
/***************************************************************************************
|
| 57 |
+
* Debugging
|
| 58 |
+
**************************************************************************************/
|
| 59 |
+
"Print Hex Value": {
|
| 60 |
+
"scope": "shellscript",
|
| 61 |
+
"prefix": "hlog",
|
| 62 |
+
"body": [
|
| 63 |
+
"printf \"%s: '$1': 0x%X\\n\" \"${TM_FILENAME}\" \"$$1\" ${LINE_COMMENT} REMOVE"
|
| 64 |
+
],
|
| 65 |
+
"description": "Print hex value to console"
|
| 66 |
+
}
|
| 67 |
+
}
|
snippets/typescript.code-snippets
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @file typescript.code-snippets
|
| 3 |
+
* @brief Contains custom code snippets for Typescript
|
| 4 |
+
*
|
| 5 |
+
* This file provides a collection of code snippets designed to facilitate rapid
|
| 6 |
+
* development by offering quick access to commonly used patterns and boilerplate
|
| 7 |
+
* code. The snippets include function templates, common data structures, and
|
| 8 |
+
* useful macros.
|
| 9 |
+
*
|
| 10 |
+
* To utilize these snippets, integrate this file into your IDE's snippet manager
|
| 11 |
+
* or configuration. Feel free to modify and expand the snippets to meet your
|
| 12 |
+
* specific coding requirements.
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
{
|
| 16 |
+
/***************************************************************************************
|
| 17 |
+
* File Template
|
| 18 |
+
**************************************************************************************/
|
| 19 |
+
"Typescript File Template": {
|
| 20 |
+
"scope": "typescript",
|
| 21 |
+
"prefix": "template",
|
| 22 |
+
"body": [
|
| 23 |
+
"/***************************************************************************************",
|
| 24 |
+
" * File: ${TM_FILENAME}",
|
| 25 |
+
" * Author: ${USER}",
|
| 26 |
+
" * Date: ${CURRENT_DATE}-${CURRENT_MONTH_NAME_SHORT}-${CURRENT_YEAR}",
|
| 27 |
+
" * Description: Brief description of the file's purpose.",
|
| 28 |
+
" **************************************************************************************/",
|
| 29 |
+
"",
|
| 30 |
+
"/***************************************************************************************",
|
| 31 |
+
" * License",
|
| 32 |
+
" **************************************************************************************/",
|
| 33 |
+
"/*",
|
| 34 |
+
" * This file is licensed under the MIT License.",
|
| 35 |
+
" * License information should be updated as necessary.",
|
| 36 |
+
" */",
|
| 37 |
+
"",
|
| 38 |
+
"/***************************************************************************************",
|
| 39 |
+
" * Imports",
|
| 40 |
+
" **************************************************************************************/",
|
| 41 |
+
"",
|
| 42 |
+
"/***************************************************************************************",
|
| 43 |
+
" * Constants",
|
| 44 |
+
" **************************************************************************************/",
|
| 45 |
+
"",
|
| 46 |
+
"/***************************************************************************************",
|
| 47 |
+
" * Interfaces",
|
| 48 |
+
" **************************************************************************************/",
|
| 49 |
+
"",
|
| 50 |
+
"/***************************************************************************************",
|
| 51 |
+
" * Classes",
|
| 52 |
+
" **************************************************************************************/",
|
| 53 |
+
"",
|
| 54 |
+
"/***************************************************************************************",
|
| 55 |
+
" * Functions",
|
| 56 |
+
" **************************************************************************************/",
|
| 57 |
+
""
|
| 58 |
+
],
|
| 59 |
+
"description": "typescript file template",
|
| 60 |
+
"isFileTemplate": true
|
| 61 |
+
}
|
| 62 |
+
/***************************************************************************************
|
| 63 |
+
* Debugging
|
| 64 |
+
**************************************************************************************/
|
| 65 |
+
// TODO
|
| 66 |
+
}
|
snippets/vb.code-snippets
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @file vb.code-snippets
|
| 3 |
+
* @brief Contains custom code snippets for Visual Basic
|
| 4 |
+
*
|
| 5 |
+
* This file provides a collection of code snippets designed to facilitate rapid
|
| 6 |
+
* development by offering quick access to commonly used patterns and boilerplate
|
| 7 |
+
* code. The snippets include function templates, common data structures, and
|
| 8 |
+
* useful macros.
|
| 9 |
+
*
|
| 10 |
+
* To utilize these snippets, integrate this file into your IDE's snippet manager
|
| 11 |
+
* or configuration. Feel free to modify and expand the snippets to meet your
|
| 12 |
+
* specific coding requirements.
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
{
|
| 16 |
+
/***************************************************************************************
|
| 17 |
+
* File Template
|
| 18 |
+
**************************************************************************************/
|
| 19 |
+
"Visual Basic File Template": {
|
| 20 |
+
"scope": "vb",
|
| 21 |
+
"prefix": "template",
|
| 22 |
+
"body": [
|
| 23 |
+
"'****************************************************************************************",
|
| 24 |
+
"' * File: ${TM_FILENAME}",
|
| 25 |
+
"' * Author: ${USER}",
|
| 26 |
+
"' * Date: ${CURRENT_DATE}-${CURRENT_MONTH_NAME_SHORT}-${CURRENT_YEAR}",
|
| 27 |
+
"' * Description: Brief description of the file's purpose.",
|
| 28 |
+
"' ***************************************************************************************",
|
| 29 |
+
"",
|
| 30 |
+
"'****************************************************************************************",
|
| 31 |
+
"' * License",
|
| 32 |
+
"' ***************************************************************************************",
|
| 33 |
+
"'",
|
| 34 |
+
"' This file is licensed under the MIT License.",
|
| 35 |
+
"' License information should be updated as necessary.",
|
| 36 |
+
"'",
|
| 37 |
+
"",
|
| 38 |
+
"'****************************************************************************************",
|
| 39 |
+
"' * Imports",
|
| 40 |
+
"' ***************************************************************************************",
|
| 41 |
+
"Imports System",
|
| 42 |
+
"",
|
| 43 |
+
"' ***************************************************************************************",
|
| 44 |
+
"' * Constants",
|
| 45 |
+
"' ***************************************************************************************",
|
| 46 |
+
"",
|
| 47 |
+
"'****************************************************************************************",
|
| 48 |
+
"' * Class Declarations",
|
| 49 |
+
"' ***************************************************************************************",
|
| 50 |
+
"Public Class ${TM_FILENAME_BASE/(.*)/${1:/upcase}/}",
|
| 51 |
+
"",
|
| 52 |
+
"",
|
| 53 |
+
"End Class",
|
| 54 |
+
],
|
| 55 |
+
"description": "vb file template",
|
| 56 |
+
"isFileTemplate": true
|
| 57 |
+
}
|
| 58 |
+
/***************************************************************************************
|
| 59 |
+
* Debugging
|
| 60 |
+
**************************************************************************************/
|
| 61 |
+
// TODO
|
| 62 |
+
}
|
snippets/yaml.code-snippets
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @file yaml.code-snippets
|
| 3 |
+
* @brief Contains custom code snippets for Yaml
|
| 4 |
+
*
|
| 5 |
+
* This file provides a collection of code snippets designed to facilitate rapid
|
| 6 |
+
* development by offering quick access to commonly used patterns and boilerplate
|
| 7 |
+
* code. The snippets include function templates, common data structures, and
|
| 8 |
+
* useful macros.
|
| 9 |
+
*
|
| 10 |
+
* To utilize these snippets, integrate this file into your IDE's snippet manager
|
| 11 |
+
* or configuration. Feel free to modify and expand the snippets to meet your
|
| 12 |
+
* specific coding requirements.
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
{
|
| 16 |
+
/***************************************************************************************
|
| 17 |
+
* File Template
|
| 18 |
+
**************************************************************************************/
|
| 19 |
+
"Yaml File Template": {
|
| 20 |
+
"scope": "yaml",
|
| 21 |
+
"prefix": "template",
|
| 22 |
+
"body": [
|
| 23 |
+
"#***************************************************************************************",
|
| 24 |
+
"# * File: ${TM_FILENAME}",
|
| 25 |
+
"# * Author: ${USER}",
|
| 26 |
+
"# * Date: ${CURRENT_DATE}-${CURRENT_MONTH_NAME_SHORT}-${CURRENT_YEAR}",
|
| 27 |
+
"# * Description: Brief description of the file's purpose.",
|
| 28 |
+
"# **************************************************************************************/",
|
| 29 |
+
"",
|
| 30 |
+
"#***************************************************************************************",
|
| 31 |
+
"# * License",
|
| 32 |
+
"# **************************************************************************************/",
|
| 33 |
+
"#",
|
| 34 |
+
"# This file is licensed under the MIT License.",
|
| 35 |
+
"# License information should be updated as necessary.",
|
| 36 |
+
"#",
|
| 37 |
+
"",
|
| 38 |
+
"#***************************************************************************************",
|
| 39 |
+
"# * Configuration",
|
| 40 |
+
"# **************************************************************************************/",
|
| 41 |
+
""
|
| 42 |
+
],
|
| 43 |
+
"description": "yaml file template",
|
| 44 |
+
"isFileTemplate": true
|
| 45 |
+
}
|
| 46 |
+
/***************************************************************************************
|
| 47 |
+
* Debugging
|
| 48 |
+
**************************************************************************************/
|
| 49 |
+
// TODO
|
| 50 |
+
}
|