Created
January 20, 2014 01:17
-
-
Save jof/8513383 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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