When you are writing a big script, sometimes you need a small functions or some sorta snippet to continue your job and finish the script. So, this respo. has many of these small snippets that you might need and use while writing your script. In addition, this can be helpful for beginners too, to learn such small functions and its uses.
I hope this helps!