/coding-scrapbook

A collection of scraps and bits and pieces for different coding ideas

Primary LanguageElixir

๐Ÿ–Œ๏ธ Coding Scrapbook

This repository contains bits and pieces of different projects that might come handy (or not).

Getting around

This repository is organized in categories that contain projects.

For example Python, could be a great category for projects written in Python language.

Projects can be about anything (and nothing) and mostly serve as pen tests.

The projects files are organized as follows:

./
    - README.md
    - Makefile
    - Python/
        - flower_bot/
            - README.md     (project's readme)
            - ...           (all the other files)
        - ...               (all other projects)
    - ...                   (all other categories)

More abstract representation:

./
    - ... 
    - <Category>/
        - <Project>/
            - README.md
            - ...

Managing projects

The Makefile with a some helpful targets is used to manage this scrapbook.

Get help with make help

To get a list of available targets with their descriptions:

$ make help
๐Ÿ‘‹ Hello.
~~~~~~~~~
See the list of all available targets below:
--------------------------------------------
 help:      Get documentation of available make targets.
 new-project (np): ...
 ...

Start new projects with make new-project

To create a new project, run make new-project (or make np) specifying the category and project name as arguments.

For example:

# or `make np category=Python project=flower_bot`
$ make new-project category=Python project=flower_bot
๐Ÿ‘ท Opening a new branch for your project...
Switched to a new branch 'tp-flower_bot-Python-init'
๐Ÿ—๏ธ Creating a new directory...
๐Ÿ“ Updating the workspace registry...
๐Ÿงน Cleaning up your workspace...
โœ… Done!
๐Ÿ’ก To go your new project:
        cd ./Python/flower_bot

List existing projects with make list

To find all available project directories:

$ make list
๐Ÿ” See the following categories and projects:
-> ./Python/flower_bot
...

Special Makefile syntax

To manage help strings, this Makefile uses a special syntax:

Reserved item Purpose Example
#@ <target name> Indicating a beginning of a help string for a given target so that it is automatically recognized when using make help #@ help: Get documentation of available make targets