Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nathanielng/code-templates
https://github.com/nathanielng/code-templates
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nathanielng/code-templates
- Owner: nathanielng
- License: apache-2.0
- Created: 2017-03-31T06:52:01.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-01-02T13:23:39.000Z (about 3 years ago)
- Last Synced: 2024-11-08T13:12:27.576Z (3 months ago)
- Language: Python
- Size: 19.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Code Templates
- **Description**: templates in C, Fortran, Python, and Bash
for frequently-used code snippets and subroutines.
Other languages may be added later.- **Date**: Wednesday 26 April, 2017
- **Version**: 0.0.3
## Templates
Location: `src/`
- `template.c` - file permissions, file size;
- `template.f03` - basic command line argument handling
- `template.py` - executes shell commands; handles command line arguments via argparse
- `template.sh` - extraction of filename, path, basename and extension, yes/no prompts
**Note**: all templates implement some form of command line argument handling## Code Snippets
Location: `snippets/`
- `bash/transfer-ssh-keys.sh` - transfer ssh keys to a remote server
- `bash/rename_with_regex.sh` - renaming multiple files using regular expressions