Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nathanielng/code-templates


https://github.com/nathanielng/code-templates

Last synced: 25 days ago
JSON representation

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