Last active
May 16, 2019 17:00
Revisions
-
vladalive revised this gist
May 16, 2019 . 2 changed files with 1 addition 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 +0,0 @@ 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 @@ text.gsub(/\w+/){ |w| a = w.split(/^(.)(.*)(.+)$/); a[2] = a[2] && a[2].split(//).shuffle; a.join} -
vladalive revised this gist
Jun 20, 2011 . 1 changed file with 1 addition 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 @@ -1,2 +1 @@ text.gsub(/\w+/){ |w| a = w.split(/^(.)(.*)(.)$/); a[2] = a[2].split(//).shuffle; a.join} -
vladalive created this gist
Jun 20, 2011 .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,2 @@ text.gsub(/\w+/){ |w| a = w.split(/^(.)(.*)(.)$/); a[2] = a[2].split(//).shuffle; a.join}