Skip to content

Instantly share code, notes, and snippets.

@jof
Created January 20, 2014 01:17
Show Gist options
  • Save jof/8513383 to your computer and use it in GitHub Desktop.
Save jof/8513383 to your computer and use it in GitHub Desktop.
jof@cucumis ~/tmp % ruby greenspeak.rb 10
locally-sourced, hyperlocal photons
cage-free internet
grass-fed bits
hyperlocal, local web browsing
sustainable photons
locally-sourced, hyperlocal packets
cage-free, sustainable routes
local, locally-sourced photons
grass-fed, cage-free bits
sustainable bits
#!/usr/bin/env ruby
quips = ARGV[0] ? ARGV[0] : 1
quips = quips.to_i
adjectives = ['cage-free', 'artisanal', 'grass-fed', 'sustainable', 'fresh', 'local', 'hyperlocal', 'locally-sourced']
nouns = ['internet', 'bits', 'packets', 'routes', 'flows', 'web browsing', 'information', 'photons']
quips.times do
s=""
s << adjectives.sample([1,2].sample).join(", ")
s << " #{nouns.sample}"
puts s
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment