-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added header snippets for shellscript and python
- Loading branch information
Thierry Delafontaine
committed
Jul 19, 2022
1 parent
9a3a9d6
commit ee2c0ba
Showing
5 changed files
with
87 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"InES Header": { | ||
"prefix": "inesh", | ||
"body": [ | ||
"${1:#!/usr/bin/env python}", | ||
"\"\"\"", | ||
"${2:<brief description>}", | ||
"", | ||
"------------------------------------------------------------------", | ||
"-- _____ ______ _____ --", | ||
"-- |_ _| | ____|/ ____| --", | ||
"-- | | _ __ | |__ | (___ Institute of Embedded Systems --", | ||
"-- | | | '_ \\\\| __| \\___ \\ Zurich University of --", | ||
"-- _| |_| | | | |____ ____) | Applied Sciences --", | ||
"-- |_____|_| |_|______|_____/ 8401 Winterthur, Switzerland --", | ||
"------------------------------------------------------------------", | ||
"@author: ${3:<author>}", | ||
"@contact: <${4:<email>}@zhaw.ch>", | ||
"@copyright: ${CURRENT_YEAR} ZHAW Institute of Embedded Systems", | ||
"@date: ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}", | ||
"", | ||
"${5}", | ||
"------------------------------------------------------------------", | ||
"\"\"\"", | ||
"", | ||
"", | ||
"$0" | ||
], | ||
"description": "The InES file header" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"InES Header": { | ||
"prefix": "inesh", | ||
"body": [ | ||
"${1|#!/bin/sh,#!/bin/bash,#!/bin/fish,#!/bin/zsh|}", | ||
"${LINE_COMMENT}#################################################################", | ||
"${LINE_COMMENT}# _____ ______ _____ ##", | ||
"${LINE_COMMENT}# |_ _| | ____|/ ____| ##", | ||
"${LINE_COMMENT}# | | _ __ | |__ | (___ Institute of Embedded Systems ##", | ||
"${LINE_COMMENT}# | | | '_ \\\\| __| \\___ \\ Zurich University of ##", | ||
"${LINE_COMMENT}# _| |_| | | | |____ ____) | Applied Sciences ##", | ||
"${LINE_COMMENT}# |_____|_| |_|______|_____/ 8401 Winterthur, Switzerland ##", | ||
"${LINE_COMMENT}#################################################################", | ||
"${LINE_COMMENT} File: ${TM_FILENAME}", | ||
"${LINE_COMMENT} Author: ${2:<author>} <${3:<email>}@zhaw.ch>", | ||
"${LINE_COMMENT} Copyright: ${CURRENT_YEAR} ZHAW Institute of Embedded Systems", | ||
"${LINE_COMMENT} Date: ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}", | ||
"${LINE_COMMENT} Brief: ${4:<brief description>}", | ||
"${LINE_COMMENT} ", | ||
"${LINE_COMMENT} ${5}", | ||
"${LINE_COMMENT}#################################################################", | ||
"", | ||
"$0" | ||
], | ||
"description": "The InES file header" | ||
} | ||
} |