Skip to content

Instantly share code, notes, and snippets.

@johanb
Created April 21, 2011 08:39
Show Gist options
  • Save johanb/933987 to your computer and use it in GitHub Desktop.
Save johanb/933987 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby -wKU
# define our list of candidate snippets
s = ["%snippet:typo1%","%snippet:typo2%","%snippet:typo3%"]
# select one at random and write it to STDOUT
STDOUT.write s[rand(s.size)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment