Created
March 27, 2012 11:47
-
-
Save brainopia/2215241 to your computer and use it in GitHub Desktop.
Revisions
-
Ravil Bayramgalin revised this gist
Oct 11, 2012 . No changes.There are no files selected for viewing
-
Ravil Bayramgalin revised this gist
Mar 27, 2012 . 1 changed file 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 @@ -3,7 +3,7 @@ bom = "\xEF\xBB\xBF".force_encoding('binary') Path.glob('**/*.rb') do |file| next if file.binread(3) == bom previous = file.binread file.write bom + previous end -
Ravil Bayramgalin revised this gist
Mar 27, 2012 . 1 changed file with 3 additions and 3 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 @@ -3,7 +3,7 @@ bom = "\xEF\xBB\xBF".force_encoding('binary') Path.glob('**/*.rb') do |file| next if file.binread(3) == bom previous = file.binread file.write bom + previous end -
Ravil Bayramgalin renamed this gist
Mar 27, 2012 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Ravil Bayramgalin created this gist
Mar 27, 2012 .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,9 @@ #!/usr/bin/env ruby require 'epath' bom = "\xEF\xBB\xBF".force_encoding('binary') Path.glob('**/*.rb') do |file| next if file.binread(3) == bom previous = file.binread file.write bom + previous end