Last active
August 29, 2015 14:09
-
-
Save tenten0213/f1b2ea04b066a9d8b4df to your computer and use it in GitHub Desktop.
Revisions
-
tenten0213 revised this gist
Nov 12, 2014 . 2 changed files with 23 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ def gen_bonjovi bonjovi = %w(ボ ン ジョ ヴィ)] random_jovis = [] count = 0 while(random_jovis.last(8).join != "ジョン・ボン・ジョヴィ") do 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ def gen_bonjovi bonjovi = %w(ボ ン ジョ ヴィ) expect = %w(ジョ ン ・ ボ ン ・ ジョ ヴィ) random_jovis = [] count = 0 while(random_jovis != expect) do count += 1 random_jovis.push("・") if count % 2 == 0 random_jovis.push(bonjovi.sample) print random_jovis.shift(random_jovis.size - expect.size).join if random_jovis.size > expect.size end print random_jovis.join puts "\n\n #{count} Bon Jovis" puts " _人人人人人人人人人人人人人人_ > You Give Love a Bad Name <  ̄Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y ̄ " end gen_bonjovi -
tenten0213 revised this gist
Nov 11, 2014 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,9 +4,10 @@ def gen_bonjovi count = 0 while(random_jovis.last(8).join != "ジョン・ボン・ジョヴィ") do count += 1 random_jovis.push("・") if count % 2 == 0 random_jovis.push(bonjovi.sample) end puts random_jovis.join puts "\n\n #{count} Bon Jovis" puts " _人人人人人人人人人人人人人人_ -
tenten0213 revised this gist
Nov 11, 2014 . 1 changed file with 1 addition and 6 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,16 +1,11 @@ def gen_bonjovi bonjovi = ["ボ", "ン", "ジョ", "ヴィ"] random_jovis = [] count = 0 while(random_jovis.last(8).join != "ジョン・ボン・ジョヴィ") do count += 1 random_jovis.push(bonjovi.sample) end random_jovis.each { |w| print w } puts "\n\n #{count} Bon Jovis" puts " -
tenten0213 revised this gist
Nov 11, 2014 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -8,8 +8,9 @@ def gen_bonjovi count += 1 random_jovis.push(bonjovi.sample) break if random_jovis.last(8).join == "ジョン・ボン・ジョヴィ" random_jovis.push("・") if count % 2 == 0 end random_jovis.each { |w| print w } puts "\n\n #{count} Bon Jovis" puts " -
tenten0213 revised this gist
Nov 11, 2014 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,7 @@ def gen_bonjovi break if random_jovis.last(8).join == "ジョン・ボン・ジョヴィ" random_jovis.push("・") if count % 2 == 0- end random_jovis.each { |w| print w } puts "\n\n #{count} Bon Jovis" puts " _人人人人人人人人人人人人人人_ @@ -19,4 +19,4 @@ def gen_bonjovi " end gen_bonjovi -
tenten0213 revised this gist
Nov 11, 2014 . 1 changed file with 3 additions and 8 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -6,14 +6,9 @@ def gen_bonjovi loop do count += 1 random_jovis.push(bonjovi.sample) break if random_jovis.last(8).join == "ジョン・ボン・ジョヴィ" random_jovis.push("・") if count % 2 == 0- end puts "\n\n #{count} Bon Jovis" -
tenten0213 revised this gist
Nov 11, 2014 . No changes.There are no files selected for viewing
-
tenten0213 revised this gist
Nov 11, 2014 . 1 changed file with 5 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -9,8 +9,11 @@ def gen_bonjovi char = bonjovi.sample random_jovis.push(char) print char if count % 2 == 0 print "・" random_jovis.push("・") end end puts "\n\n #{count} Bon Jovis" -
tenten0213 revised this gist
Nov 11, 2014 . No changes.There are no files selected for viewing
-
tenten0213 revised this gist
Nov 11, 2014 . 1 changed file with 14 additions and 8 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,18 +1,24 @@ def gen_bonjovi bonjovi = ["ボ", "ン", "ジョ", "ヴィ"] random_jovis = [] count = 0 loop do count += 1 char = bonjovi.sample random_jovis.push(char) print char break if random_jovis.last(6).join == "ジョンボンジョヴィ" print "・" if count % 2 == 0 end puts "\n\n #{count} Bon Jovis" puts " _人人人人人人人人人人人人人人_ > You Give Love a Bad Name <  ̄Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y ̄ " end gen_bonjovi -
tenten0213 revised this gist
Nov 11, 2014 . 1 changed file with 8 additions and 12 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,22 +1,18 @@ def gen_bonjovi bonjovi = ["ボ", "ン", "ジョ", "ヴィ"] bons = [] count = 0 while(bons.last(6).join != "ジョンボンジョヴィ") do count += 1 bons.push(bonjovi.sample) end puts "#{count} Bon Jovis" puts "_人人人人人人人人人人人人人人_ > You Give Love a Bad Name <  ̄Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y ̄" end gen_bonjovi -
tenten0213 created this gist
Nov 10, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ def gen_bonjovi bonjovi_list = ["ボ", "ン", "ジョ", "ヴィ"] bonjovi = [] count = 0 # 無限リスト作る # 6文字取ってきて2文字毎に中点区切る # もし正しいボン・ジョヴィならbreak # 中点でるごと?のカウントも loop do print bonjovi.push(bonjovi_list[rand(4)]).each.lazy.map { |badname| count=count+1; badname} .first(10) end puts "#{count} Bon Jovis" puts "_人人人人人人人人人人人人人人_ > You Give Love a Bad Name <  ̄Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y ̄" end gen_bonjovi