Browse Source

initial commit

Signed-off-by: Erik Hollensbe <github@hollensbe.org>
master
Erik Hollensbe 11 months ago
commit
c8fb5cc56c
7 changed files with 512018 additions and 0 deletions
  1. +3
    -0
      README.md
  2. +102401
    -0
      file1.txt
  3. +102401
    -0
      file2.txt
  4. +102401
    -0
      file3.txt
  5. +102401
    -0
      file4.txt
  6. +102401
    -0
      file5.txt
  7. +10
    -0
      randomwords.rb

+ 3
- 0
README.md View File

@ -0,0 +1,3 @@
This is a small program for my friend that generates random words, to teach programming.
The file1..5 are just `/usr/share/dict/words`; they are all the same file.

+ 102401
- 0
file1.txt
File diff suppressed because it is too large
View File


+ 102401
- 0
file2.txt
File diff suppressed because it is too large
View File


+ 102401
- 0
file3.txt
File diff suppressed because it is too large
View File


+ 102401
- 0
file4.txt
File diff suppressed because it is too large
View File


+ 102401
- 0
file5.txt
File diff suppressed because it is too large
View File


+ 10
- 0
randomwords.rb View File

@ -0,0 +1,10 @@
%w[
file1.txt
file2.txt
file3.txt
file4.txt
file5.txt
].each do |filename|
lines = File.read(filename).split(/\r?\n/)
puts lines.sample(1)
end

Loading…
Cancel
Save