-
-
Save saraid/93a5b928f808077169c2 to your computer and use it in GitHub Desktop.
This file contains 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 | |
WORDS = ['you', 'thou', 'you', 'they', 'this', 'that', 'here', 'there', 'who', | |
'what', 'where', 'when', 'how', 'not', 'all', 'many', 'some', 'few', 'other', | |
'one', 'two', 'three', 'four', 'five', 'big', 'long', 'wide', 'thick', 'heavy', | |
'small', 'short', 'narrow', 'thin', 'woman', 'man', 'man', 'child', 'wife', | |
'husband', 'mother', 'father', 'animal', 'fish', 'bird', 'dog', 'louse', 'snake', | |
'worm', 'tree', 'forest', 'stick', 'fruit', 'seed', 'leaf', 'root', 'bark', 'flower', | |
'grass', 'rope', 'skin', 'meat', 'blood', 'bone', 'fat', 'egg', 'horn', 'tail', | |
'feather', 'hair', 'head', 'ear', 'eye', 'nose', 'mouth', 'tooth', 'tongue', | |
'fingernail', 'foot', 'leg', 'knee', 'hand', 'wing', 'belly', 'guts', 'neck', | |
'back', 'breast', 'heart', 'liver', 'drink', 'eat', 'bite', 'suck', 'spit', | |
'vomit', 'blow', 'breathe', 'laugh', 'see', 'hear', 'know', 'think', 'smell', | |
'fear', 'sleep', 'live', 'die', 'kill', 'fight', 'hunt', 'hit', 'cut', 'split', | |
'stab', 'scratch', 'dig', 'swim', 'fly', 'walk', 'come', 'lie', 'sit', 'stand', | |
'turn', 'fall', 'give', 'hold', 'squeeze', 'rub', 'wash', 'wipe', 'pull', 'push', | |
'throw', 'tie', 'sew', 'count', 'say', 'sing', 'play', 'float', 'flow', 'freeze', | |
'swell', 'sun', 'moon', 'star', 'water', 'rain', 'river', 'lake', 'sea', 'salt', | |
'stone', 'sand', 'dust', 'earth', 'cloud', 'fog', 'sky', 'wind', 'snow', 'ice', | |
'smoke', 'fire', 'ashes', 'burn', 'road', 'mountain', 'red', 'green', 'yellow', | |
'white', 'black', 'night', 'day', 'year', 'warm', 'cold', 'full', 'new', 'old', | |
'good', 'bad', 'rotten', 'dirty', 'straight', 'round', 'sharp', 'dull', 'smooth', | |
'wet', 'dry', 'correct', 'near', 'far', 'right', 'left', 'with', 'and', 'because', 'name'] | |
class Array | |
def pick | |
self[rand(size)-1] | |
end | |
end | |
def query | |
words_to_have = rand(5) + 2 | |
string = [] | |
words_to_have.times do | |
string << WORDS.pick | |
end | |
cmd = "open \"https://www.bing.com/search?setmkt=en-US&q=#{string.join('+')}\"" | |
puts "#{Time.now}: #{cmd}" | |
system cmd | |
end | |
raise 'you did it wrong' unless ARGV.length == 1 | |
ARGV.first.to_i.times do | |
query | |
sleep(rand(30) + 30) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment