Skip to content

Instantly share code, notes, and snippets.

@trueheart78
Last active July 23, 2021 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trueheart78/8900a350f723e3d64a278ea46de4072b to your computer and use it in GitHub Desktop.
Save trueheart78/8900a350f723e3d64a278ea46de4072b to your computer and use it in GitHub Desktop.
Simple reminder script to flood the terminal.
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'colorize'
end
# String.color_samples
unless ARGV.any?
puts 'Error: missing reminder string 😢'.red
exit 1
end
# Joins every argument passed in so that quotes aren't required
reminder = ARGV.join(' ')
100.times do
puts ['--> Reminder: '.light_blue, reminder.green, ' <--'.light_blue].join
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment