Skip to content

Instantly share code, notes, and snippets.

@timjstewart
Created April 23, 2018 20:27
Show Gist options
  • Save timjstewart/de9de47a0d86c2fc1318580a7399c544 to your computer and use it in GitHub Desktop.
Save timjstewart/de9de47a0d86c2fc1318580a7399c544 to your computer and use it in GitHub Desktop.
Turns text into an ASCII text comment.
#! /bin/bash
# Makes an ASCII art rendition of the arguments and embeds it in a '#' comment.
# Requires figlet (e.g. homebrew install figlet)
# Only uses '#' comment style. Your JavaScript and C++ will not be happy.
figlet -w 80 -c $* | sed 's/^/#/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment